Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

ARLib::Utility::ARString Class Reference

Provides extensions to the current std::string class. More...

#include <arstring.h>

List of all members.

Public Member Functions

int ReplaceChar (char search, char replace)
 Replaces all occurrences of a character with another.
void RemoveSpaces ()
 Removes all spaces from the string.
int IntegerValue ()
 Converts the string to an integer value.
std::vector< ARStringSplit (char delimiter) const
 Splits the string up into separate elements.
void NumericValue (int &value)
 Returns the integer value for the string.
void NumericValue (double &value)
 Returns the double value for the string.
void NumericValue (float &value)
 Returns the float value for the string.
void ToLower ()
 Converts the entire string to lower case.
void ToUpper ()
 Converts the entire string to upper case.

Static Public Member Functions

ARString FromInteger (int number)
 Constructs an ARString object from an integer value.


Detailed Description

Provides extensions to the current std::string class.

This class is derived from the std::string class therefore all members variable/functions are availiable by the ARString class.


Member Function Documentation

ARString ARLib::Utility::ARString::FromInteger int  number  )  [static]
 

Constructs an ARString object from an integer value.

Parameters:
number The integer value.
Returns:
An ARString object representing the passed number.

int ARLib::Utility::ARString::IntegerValue  ) 
 

Converts the string to an integer value.

Returns:
The integer value of the string.

int ARLib::Utility::ARString::ReplaceChar char  search,
char  replace
 

Replaces all occurrences of a character with another.

Parameters:
search Character to search for.
replace Character to replace with.
Returns:
Returns the number of occurrences replaced.

std::vector<ARString> ARLib::Utility::ARString::Split char  delimiter  )  const
 

Splits the string up into separate elements.

Parameters:
delimiter The character to use as the delimiter for splitting the string
Returns:
A std::vector of ARString objects.


The documentation for this class was generated from the following file:
Generated on Wed Aug 31 18:01:40 2005 for ARLib by  doxygen 1.3.9.1