Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

deml::WhitespaceScrub Class Reference

#include <whitespacescrub.h>

List of all members.

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)


Detailed Description

A static utility class to scrub strings of their whitespace
Author:
Solstice

Definition at line 25 of file whitespacescrub.h.


Member Function Documentation

string deml::WhitespaceScrub::all char * str [inline, static]
 

Same as all(string, only takes a char*

Definition at line 75 of file whitespacescrub.h.

string WhitespaceScrub::all string str [static]
 

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().

string deml::WhitespaceScrub::leading char * str [inline, static]
 

Same as leading(string), only takes a char*

Definition at line 57 of file whitespacescrub.h.

string WhitespaceScrub::leading string str [static]
 

Trims the leading whitespace of the given string

Definition at line 18 of file whitespacescrub.cpp.

Referenced by all(), and leading().

vector<string> deml::WhitespaceScrub::tokens char * str [inline, static]
 

Same as tokens(string), only takes a char*

Definition at line 69 of file whitespacescrub.h.

vector< string > WhitespaceScrub::tokens string str [static]
 

Returns:
a vector of space delimited tokens

Definition at line 94 of file whitespacescrub.cpp.

Referenced by tokens().

string deml::WhitespaceScrub::trailing char * str [inline, static]
 

Same as tailing(string), only takes a char*

Definition at line 63 of file whitespacescrub.h.

string WhitespaceScrub::trailing string str [static]
 

Trims the trailing whitespace of the given string

Definition at line 29 of file whitespacescrub.cpp.

Referenced by all(), and trailing().

string deml::WhitespaceScrub::zealous char * str [inline, static]
 

Same as zealous(string), only takes a char*

Definition at line 81 of file whitespacescrub.h.

string WhitespaceScrub::zealous string str [static]
 

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().


The documentation for this class was generated from the following files:
Generated at Sun Mar 3 20:34:56 2002 for Chroma by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001