All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
stringutils.cpp File Reference
#include "G3D/platform.h"
#include "G3D/stringutils.h"
#include "G3D/BinaryInput.h"
#include <algorithm>
+ Include dependency graph for stringutils.cpp:




static bool G3D::iswspace (int ch)
void G3D::parseCommaSeparated (const std::string s, Array< std::string > &array, bool stripQuotes=true)
bool G3D::beginsWith (const std::string &test, const std::string &pattern)
 Returns true if the test string begins with the pattern string. More...
std::string G3D::replace (const std::string &s, const std::string &pattern, const std::string &replacement)
bool G3D::isValidIdentifier (const std::string &s)
bool G3D::endsWith (const std::string &test, const std::string &pattern)
 Returns true if the test string ends with the pattern string. More...
std::string G3D::wordWrap (const std::string &input, int numCols)
 Produces a new string that is the input string wrapped at a certain number of columns (where the line is broken at the latest space before the column limit.) Platform specific NEWLINEs are inserted to wrap. More...
int G3D::stringCompare (const std::string &s1, const std::string &s2)
int G3D::stringPtrCompare (const std::string *s1, const std::string *s2)
std::string G3D::toUpper (const std::string &x)
std::string G3D::toLower (const std::string &x)
G3D::Array< std::string > G3D::stringSplit (const std::string &x, char splitChar)
std::string G3D::stringJoin (const G3D::Array< std::string > &a, char joinChar)
std::string G3D::stringJoin (const G3D::Array< std::string > &a, const std::string &joinStr)
std::string G3D::trimWhitespace (const std::string &s)

Detailed Description

Morgan McGuire,

2000-09-09 2011-08-20