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

# Keos::CStringUtil Class Reference

Utility class for manipulating Strings. More...

`#include <KeosString.h>`

List of all members.

## Public Types

typedef std::stringstream | StrStreamType

## Static Public Member Functions

static void | Split (const String &strString, std::vector< String > &Tokens, const String &strDelim=" \t\n")
| Split a string.
static void | Trim (String &str, bool bLeft=true, bool bRight=true)
| Removes any whitespace characters, be it standard space or TABs and so on.
static void | ToLowerCase (String &str)
| Upper-cases all the characters in the string.
static void | ToUpperCase (String &str)
| Lower-cases all the characters in the string.
static String | ToLower (const String &strText)
| Lower-cases all the characters in the string.
static String | ToUpper (const String &strText)
| Upper-cases all the characters in the string.

## Static Public Attributes

static const String | BLANK = String("")
| Constant blank string.

## Detailed Description

Utility class for manipulating Strings.

Definition at line 30 of file KeosString.h.

## Member Typedef Documentation

typedef std::stringstream Keos::CStringUtil::StrStreamType

| Definition at line 33 of file KeosString.h.

## Member Function Documentation

void Keos::CStringUtil::Split | ( | const String & | strString,
|  | std::vector< String > & | Tokens,
|  | const String & | strDelim = `" \t\n"`
| ) | `[static]`

| Split a string.

Parameters:

  | strString | String to split.
  | Tokens | Destination array.
  | strDelim | Chars used to split the string.

Definition at line 43 of file KeosString.cpp.

String Keos::CStringUtil::ToLower | ( | const String & | strText | ) | `[static]`

| Lower-cases all the characters in the string. Definition at line 80 of file KeosString.cpp.

void Keos::CStringUtil::ToLowerCase | ( | String & | str | ) | `[static]`

| Upper-cases all the characters in the string. Definition at line 60 of file KeosString.cpp.

String Keos::CStringUtil::ToUpper | ( | const String & | strText | ) | `[static]`

| Upper-cases all the characters in the string. Definition at line 90 of file KeosString.cpp.

void Keos::CStringUtil::ToUpperCase | ( | String & | str | ) | `[static]`

| Lower-cases all the characters in the string. Definition at line 70 of file KeosString.cpp.

void Keos::CStringUtil::Trim | ( | String & | str,
|  | bool | bLeft = `true`,
|  | bool | bRight = `true`
| ) | `[static]`

| Removes any whitespace characters, be it standard space or TABs and so on. Definition at line 33 of file KeosString.cpp.

## Member Data Documentation

const String Keos::CStringUtil::BLANK = String("")`[static]`

| Constant blank string. Definition at line 30 of file KeosString.cpp.

The documentation for this class was generated from the following files:

- KeosEngine/KeosString.h
- KeosEngine/KeosString.cpp