LevelS C++ support library  3.83
Functions
string_utils.h File Reference
#include <vector>
#include <map>
#include "datatypes.h"

Go to the source code of this file.

Functions

std::string trim (const std::string &orig)
 
template<typename T >
std::string dataToString (const T &x)
 
std::string intToString (int64 x, tsize width)
 
template<typename T >
void stringToData (const std::string &x, T &value)
 
template<typename T >
stringToData (const std::string &x)
 
void parse_file (const std::string &filename, std::map< std::string, std::string > &dict)
 
bool equal_nocase (const std::string &a, const std::string &b)
 
std::string tolower (const std::string &input)
 
template<typename T >
void split (const std::string &inp, std::vector< T > &list)
 
template<typename T >
std::vector< T > split (const std::string &inp)
 
void tokenize (const std::string &inp, char delim, std::vector< std::string > &list)
 
std::vector< std::string > tokenize (const std::string &inp, char delim)
 
void parse_words_from_file (const std::string &filename, std::vector< std::string > &words)
 

Detailed Description

Various functions for manipulating strings.

Copyright (C) 2002-2017 Max-Planck-Society

Author
Martin Reinecke

Definition in file string_utils.h.


Generated on Wed Nov 13 2024 12:18:16 for LevelS C++ support library