// Copyright 2020 Andreas Kurth
//// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//! Various utilities
// CC BY-SA 4.0 Sven Marnach
// Adapted from https://stackoverflow.com/a/55041833.
pubfntrim_newline(muts: String)-> String{if s.ends_with('\n'){
s.pop();if s.ends_with('\r'){
s.pop();}}
s
}