DATRW++ library: seismic data I/O with multiple formats
|
utilities used by more than one type of data reader (implementation) More...
Go to the source code of this file.
Namespaces | |
datrw | |
Root namespace of library. | |
datrw::util | |
Some components used by several I/O format modules. | |
Macros | |
#define | DATRW_UTIL_CC_VERSION "DATRW_UTIL_CC V1.2" |
Functions | |
std::string | datrw::util::clipstring (std::string &s, const std::string &delim=":") |
strip substringStrips off first substring up to given delimiter. The string is passed as a reference and will be modified (i.e. the stripped substring as well as the delimiter will be erased). More... | |
std::string | datrw::util::commatospace (std::string s) |
int | datrw::util::nsignificantdigits (double v, const bool &debug) |
return number of significant digits More... | |
int | datrw::util::ntrailingdigits (double v, const bool &debug=false) |
return number of trailing digits (after decimal point) More... | |
std::string | datrw::util::trimws (std::string s) |
remove leading and trailing whitespace More... | |
utilities used by more than one type of data reader (implementation)
utilities used by more than one type of data reader (implementation)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software
Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)
REVISIONS and CHANGES
Definition in file util.cc.