TrueReality  v0.1.1912
trUtil::StringUtils::IsSpace Class Reference

A functor which tests if a character is whitespace. More...

#include <StringUtils.h>

Inheritance diagram for trUtil::StringUtils::IsSpace:
Collaboration diagram for trUtil::StringUtils::IsSpace:

Public Member Functions

 IsSpace (const std::locale &loc=std::locale(DEFAULT_LOCALE_NAME.c_str()))
 
const std::locale & GetLocale () const
 
bool operator() (char c) const
 

Static Public Attributes

static const std::string DEFAULT_LOCALE_NAME
 

Private Attributes

std::locale mLocale
 

Additional Inherited Members

- Public Types inherited from trUtil::UnaryFunction< char, bool >
typedef char argumentType
 
typedef bool resultType
 

Detailed Description

A functor which tests if a character is whitespace.

This "predicate" needed to have 'state', the locale member.

Definition at line 132 of file StringUtils.h.

Constructor & Destructor Documentation

◆ IsSpace()

trUtil::StringUtils::IsSpace::IsSpace ( const std::locale &  loc = std::locale(DEFAULT_LOCALE_NAME.c_str()))
inline

Definition at line 137 of file StringUtils.h.

Member Function Documentation

◆ GetLocale()

const std::locale& trUtil::StringUtils::IsSpace::GetLocale ( ) const
inline

Definition at line 139 of file StringUtils.h.

◆ operator()()

bool trUtil::StringUtils::IsSpace::operator() ( char  c) const
inline

Definition at line 140 of file StringUtils.h.

References TR_DISABLE_WARNING_END.

Member Data Documentation

◆ DEFAULT_LOCALE_NAME

const std::string trUtil::StringUtils::IsSpace::DEFAULT_LOCALE_NAME
static

Definition at line 136 of file StringUtils.h.

◆ mLocale

std::locale trUtil::StringUtils::IsSpace::mLocale
private

Definition at line 143 of file StringUtils.h.


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