#include <stringutils.h>
Static Public Member Functions | |
static int | Split (const string input, const string delimiter, vector< string > &results) |
static string | mergeWords (vector< string > &words, const string separator) |
static int | toInt (const string input) |
static float | toFloat (const string input) |
static string | toString (const int input) |
static string | toString (const float input) |
static string | rmSpace (const string input) |
static string | rmTailSpace (const string input) |
static string | chomp (string inString) |
static string | slashToUnderscore (const string input) |
static string | field (string aString, int start, int maxlength) |
static string | fill (string aString, int aLength, string aChar=" ") |
static string | preFill (string aString, int aLength, string aChar=" ") |
static string | preFill (int anInt, int aLength, string aChar=" ") |
static string | preFill (float aFloat, int aLength, string aChar=" ") |
static string | getPath (string aLocation) |
static string | getExtension (string aLocation) |
static string | getNoExtension (string aLocation) |
static string | getFileName (string aLocation) |
static string | right (string aString, uint aLength) |
static string | toUpper (string aString) |
static string | toLower (string aString) |
static string | getFirstNonSpace (string aString) |
|
"chomp" the string, i.e., removes the last character if it is 'end of line'. |
|
returns the content of a field starting at position start and of length maxlength in string aString. |
|
completes aString with aChar so that the total length is exactly equal to aLength. If aString is longer, it gets cropped. |
|
returns the extension of a file given a full path. |
|
returns the filename portion of a full path (including extension). |
|
returns the string starting at the 1st non space character of aString. |
|
returns the path without extension. |
|
returns the directory portion of a full path. |
|
merges words in a container< string >, inserting separator. |
|
prepends aChar to aFloat so that the total length is exactly equal to aLength. If aString is longer, it gets cropped. |
|
prepends aChar to anInt so that the total length is exactly equal to aLength. If aString is longer, it gets cropped. |
|
prepends aChar to aString so that the total length is exactly equal to aLength. If aString is longer, it gets cropped. |
|
returns aLength characters at the right end of aString. |
|
removes all spaces in a string. |
|
removes all tail spaces in a string. |
|
replaces slash by underscore in the string. |
|
splits a string into a vector<string> using a string delimiter. |
|
transforms a string into a float using a stringstream. |
|
transforms a string into an int using a stringstream. |
|
converts aString to Lower case. |
|
transforms a float into an string using a stringstream. |
|
transforms a int into an string using a stringstream. |
|
converts aString to Upper case. |