Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::text Namespace Reference

Name-space for TEXT. More...


Compounds

class  IDate
 BaseDate abstract data class. More...

class  TBasicString
class  TDirectiveDFA
class  TGmtDate
class  TLocalDate
class  TTimeInterval
 Represents a time difference in seconds. More...


Typedefs

typedef TBasicString< char > TString
 Extended string specialization.


Enumerations

enum  ESpecialSymbol
 Special input symbols.

enum  EState
 States for directives DFA.


Functions

const char * BoolToString (bool gTRUTH, const char *pkcTRUE="true", const char *pkcFALSE="false")
TString Format (const char *pkcFORMAT...)
template<typename TChar, typename TTraits, typename TAllocator> TBasicString< TChar, TTraits,
TAllocator > 
Lowercase (const std::basic_string< TChar, TTraits, TAllocator > &rkySOURCE)
template<typename TChar, typename TTraits, typename TAllocator> TBasicString< TChar, TTraits,
TAllocator > 
Uppercase (const std::basic_string< TChar, TTraits, TAllocator > &rkySOURCE)
template<typename TInputIter, typename TChar, typename TOutputIter> TOutputIter Split (TInputIter tBEGIN_ITER, TInputIter tEND_ITER, TChar tSEPARATOR, TOutputIter tTARGET_ITER)


Detailed Description

Name-space for TEXT.

Function Documentation

const char* BoolToString bool    gTRUTH,
const char *    pkcTRUE = "true",
const char *    pkcFALSE = "false"
 

Returns pkcTRUE if gTRUTH is true, else returns pkcFALSE.

Parameters:
gTRUTH  Value to test.
pkcTRUE  String for true value.
pkcFALSE  String for false value.
Returns:
if gTRUTH then pkcTRUE, else pkcFALSE.

Referenced by mpcl::text::html::TRadioGroup::insertUpdating().

mpcl::text::TString mpcl::text::Format const char *    pkcFORMAT...
 

The behavior of this function is like std::printf() but returning a string instance.

Parameters:
pkcFORMAT  Format string (must not be NULL).
...  Arguments.
Returns:
Formated string.
See also:
std::printf().

Definition at line 429 of file string.cc.

References TString.

Referenced by mpcl::util::prefs::TConfigProcessor::addEnvironmentVariable(), mpcl::util::prefs::TConfigProcessor::addOption(), mpcl::text::html::TTable::findOrInsertTag(), mpcl::text::html::TLayoutTable::findOrInsertTag(), mpcl::text::html::TContainer::findOrInsertTag(), mpcl::net::cgi::TConfigProcessor::getFormValue(), mpcl::text::codegen::TClauseBodyString::instantiate(), mpcl::text::codegen::TPatternBasedCodeGenerator::loadFrom(), mpcl::text::html::TTag::operator[](), mpcl::util::prefs::TConfigProcessor::operator[](), mpcl::util::logging::TLogStreambuf< TChar, TTraits >::overflow(), mpcl::util::prefs::TConfigProcessor::processConfigFile(), mpcl::text::codegen::TPatternBasedCodeGenerator::read(), mpcl::automaton::TExecutableStreamableDfa< TState, TEvent >::readActionList(), mpcl::util::prefs::TConfigProcessor::saveConfigFile(), mpcl::text::html::TTag::size(), mpcl::text::html::TTag::tag(), mpcl::text::html::TContainer::tag(), mpcl::text::html::TText::TText(), mpcl::util::prefs::TConfigProcessor::updateOptionWithName(), mpcl::util::prefs::TConfigProcessor::updateOptionWithShortcut(), and mpcl::util::logging::TLogStreambuf< TChar, TTraits >::xsputn().

template<typename TChar, typename TTraits, typename TAllocator>
TBasicString<TChar, TTraits, TAllocator> Lowercase const std::basic_string< TChar, TTraits, TAllocator > &    rkySOURCE [inline]
 

Returns a copy of rkySOURCE but with all characters changed to lowercase (using std::tolower()).

Parameters:
rkySOURCE  Source string.
Returns:
Lowercase string.
See also:
std::tolower().

Definition at line 83 of file string.hh.

References Lowercase().

Referenced by Lowercase().

template<typename TInputIter, typename TChar, typename TOutputIter>
TOutputIter Split TInputIter    tBEGIN_ITER,
TInputIter    tEND_ITER,
TChar    tSEPARATOR,
TOutputIter    tTARGET_ITER
[inline]
 

Stores in a container, the elements in [first, last) separated by tSEPARATOR.

Parameters:
rkySOURCE  Source string.
Returns:
A container with the sub-strings.

Definition at line 119 of file string.hh.

References Split().

Referenced by mpcl::net::corba::TOrb::enrol(), mpcl::system::ISystem::getPathItems(), Split(), and mpcl::text::TBasicString< TChar, TTraits, TAllocator >::split().

template<typename TChar, typename TTraits, typename TAllocator>
TBasicString<TChar, TTraits, TAllocator> Uppercase const std::basic_string< TChar, TTraits, TAllocator > &    rkySOURCE [inline]
 

Returns a copy of rkySOURCE but with all characters changed to uppercase (using std::toupper()).

Parameters:
rkySOURCE  Source string.
Returns:
Uppercase string.
See also:
std::toupper().

Definition at line 102 of file string.hh.

References Uppercase().

Referenced by Uppercase().


Generated on Mon Oct 13 02:35:25 2003 for MPCL by doxygen1.2.18