#include <whitespacescrub.h>
Static Public Methods | |
string | leading (string str) |
string | trailing (string str) |
string | zealous (string str) |
vector< string > | tokens (string str) |
string | all (string str) |
string | leading (char *str) |
string | trailing (char *str) |
vector< string > | tokens (char *str) |
string | all (char *str) |
string | zealous (char *str) |
Definition at line 25 of file whitespacescrub.h.
|
Same as all(string, only takes a char* Definition at line 75 of file whitespacescrub.h. |
|
Trims and normalizes all whitespace in a string by invoking both leading() and trailing(), and then reducing all internal whitespace to a single space Definition at line 45 of file whitespacescrub.cpp. Referenced by all().
|
|
Same as leading(string), only takes a char* Definition at line 57 of file whitespacescrub.h. |
|
Trims the leading whitespace of the given string Definition at line 18 of file whitespacescrub.cpp. Referenced by all(), and leading().
|
|
Same as tokens(string), only takes a char* Definition at line 69 of file whitespacescrub.h. |
|
Definition at line 94 of file whitespacescrub.cpp. Referenced by tokens().
|
|
Same as tailing(string), only takes a char* Definition at line 63 of file whitespacescrub.h. |
|
Trims the trailing whitespace of the given string Definition at line 29 of file whitespacescrub.cpp. Referenced by all(), and trailing().
|
|
Same as zealous(string), only takes a char* Definition at line 81 of file whitespacescrub.h. |
|
Much like all(), but removes any whitespace, even in the middle of the string Definition at line 76 of file whitespacescrub.cpp. Referenced by zealous().
|