stringtools.hpp
Go to the documentation of this file.
19// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
Definition: exception.hpp:34 static double ParseType(const char *s) Definition: stringtools.hpp:128 static double ParseType(const char *s) Definition: stringtools.hpp:137 static int ParseType(const char *s) Definition: stringtools.hpp:119 Definition: stringtools.hpp:108 static A ParseType(const char *s) Definition: stringtools.hpp:110 not_this_one begin(...) Definition: exception.hpp:31 std::vector< std::string > GetTokens(const std::string &s) std::vector< std::string > GetQuotedTokens(const std::string &s) I ParseAsciiArrayFast(std::string &s, I begin, size_t n) Not safe. Replaces whitespace in s with \0. Definition: stringtools.hpp:191 std::string GetStem(const std::string &filename) Get the stem of the filename (filename without path and extension) std::string Chomp(const std::string &s) std::string AddExtension(const std::string &filename, const std::string &extension) Add an extension to the filename. std::string Whitespace() String with different kinds of whitespace characters. Definition: stringtools.hpp:102 std::string ReplaceExtension(const std::string &filename, const std::string &extension) Replace file extension. bool IsNumber(const std::string &s) std::string RemovePath(const std::string &filename) Get file name only (no path) from full file name. std::string PrependDir(const std::string &prefix, const std::string &str) void Substitute(std::string &text, const std::string &out, const std::string &in) In string text replace all occurences odf string "out" with string "in". std::string ToString(const T obj, int precision=-99999) Definition: stringtools.hpp:177 std::string extension(const std::string &fname) x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x(y+z) |