SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
StringUtil.cc File Reference
#include <Core/Utils/Legacy/StringUtil.h>
#include <Core/Utils/Legacy/Assert.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits>

Namespaces

 SCIRun
 STL datatypes needed.
 

Functions

char * ccast_unsafe (const std::string &str)
 Unsafe cast from string to char *, used to export strings to C functions. More...
 
std::vector< std::string > split_string (const std::string &str, char sep)
 
std::string string_Cify (const std::string &str)
 C++ify a string, turn newlines into
, use , , \ ", etc. More...
 
std::string replace_substring (std::string str, const std::string &substr, const std::string &replacement)
 
bool ends_with (const std::string &str, const std::string &substr)
 
std::string string_toupper (std::string str)
 
std::string string_tolower (std::string str)
 
bool from_string (const std::string &str, double &value)
 
bool from_string (const std::string &str, float &value)
 
bool from_string (const std::string &str, int &value)
 
bool from_string (const std::string &str, unsigned int &value)
 
bool from_string (const std::string &str, long &value)
 
bool from_string (const std::string &str, unsigned long &value)
 
bool from_string (const std::string &str, long long &value)
 
bool from_string (const std::string &str, unsigned long long &value)
 
void strip_spaces (std::string &str)
 
void strip_surrounding_spaces (std::string &str)