Support Forum G3D Web Page |
G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License. More...
Namespaces | |
G3D | |
Functions | |
bool | G3D::alphabeticalIgnoringCaseG3DFirstLessThan (const String &a, const String &b) |
Compares a < b ignoring case, but puts names beginning with "G3D" first in a sort. More... | |
bool | G3D::beginsWith (const String &test, const String &pattern) |
Returns true if the test string begins with the pattern string. More... | |
void | G3D::buildPrefixTree (const Array< String > &list, DepthFirstTreeBuilder< String > &tree) |
Does a depth first traversal of a prefix tree generated from the passed list. More... | |
int | G3D::countNewlines (const String &s) |
Number of new lines in the given string (handles \r\n and \n ). More... | |
bool | G3D::endsWith (const String &test, const String &pattern) |
Returns true if the test string ends with the pattern string. More... | |
size_t | G3D::findLastSlash (const String &f, size_t start=String::npos) |
Finds the index of the first '\' or '/' character, starting at index start (if start is -1, starts at the end of the string). More... | |
size_t | G3D::findSlash (const String &f, size_t start=0) |
Finds the index of the first '\' or '/' character, starting at index start. More... | |
String | G3D::greatestCommonPrefix (const String a, const String b) |
Finds the greatest common prefix of two strings of ' ', ':', ';', '/', and '\' separated words. More... | |
bool | G3D::isDigit (const unsigned char c) |
These standard C functions are renamed for clarity/naming conventions and to return bool, not int. More... | |
bool | G3D::isDigitFast (const unsigned char c) |
Much faster than isDigit in MSVC. More... | |
bool | G3D::isLetter (const unsigned char c) |
These standard C functions are renamed for clarity/naming conventions and to return bool, not int. More... | |
bool | G3D::isNewline (const unsigned char c) |
These standard C functions are renamed for clarity/naming conventions and to return bool, not int. More... | |
bool | G3D::isQuote (const unsigned char c) |
bool | G3D::isSlash (const unsigned char c) |
bool | G3D::isValidIdentifier (const String &s) |
Returns true if s is a valid C identifier. More... | |
bool | G3D::isWhitespace (const unsigned char c) |
These standard C functions are renamed for clarity/naming conventions and to return bool, not int. More... | |
String | G3D::makeValidIndentifierWithUnderscores (const String &s) |
Replaces invalid characters in a string with underscroes to make the string a valid C identifier. More... | |
size_t | G3D::maxNotNPOS (size_t i, size_t j) |
Returns the larger string index, ignoring String::npos. More... | |
void | G3D::parseCommaSeparated (const String s, Array< String > &array, bool stripQuotes=true) |
Separates a comma-separated line, properly escaping commas within double quotes (") and super quotes ("""). More... | |
String | G3D::replace (const String &s, const String &pattern, const String &replacement) |
Returns a string which is s, with all instances of pattern replaced. More... | |
Array< String > | G3D::splitLines (const String &s) |
Splits string at new lines (handles \r\n and \n ). More... | |
int | G3D::stringCompare (const String &s1, const String &s2) |
A comparison function for passing to Array::sort. More... | |
String | G3D::stringJoin (const G3D::Array< String > &a, char joinChar) |
joinChar is not inserted at the beginning or end, just in between elements. More... | |
String | G3D::stringJoin (const G3D::Array< String > &a, const String &joinStr) |
int | G3D::stringPtrCompare (const String *s1, const String *s2) |
Array< String > | G3D::stringSplit (const String &x, char splitChar) |
Splits x at each occurance of splitChar. More... | |
void | G3D::stringSplit (const String &x, char splitChar, Array< String > &out) |
String | G3D::toLower (const String &x) |
String | G3D::toUpper (const String &x) |
Returns a new string that is an uppercase version of x. More... | |
void | G3D::toUTF8 (const String &s, Array< char > &result) |
Convert from ASCII to utf-8 encoding, adapted from https://everything2.com/title/Converting+ASCII+to+UTF-8. More... | |
String | G3D::trimWhitespace (const String &s) |
Strips whitespace from both ends of the string. More... | |
String | G3D::wordWrap (const 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... | |
Variables | |
const char * | G3D::NEWLINE |
G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.