Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

coreutils.h File Reference


Detailed Description

Defines core string utility functions for CTTL library.

See also:

Definition in file coreutils.h.

#include <cassert>
#include <algorithm>

Include dependency graph for coreutils.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  cttl

Functions

template<typename StringT>
void string_toupper (StringT &str_)
 Converts string to UPPERCASE.
template<typename StringT>
void string_tolower (StringT &str_)
 Converts string to lowercase.
template<typename StringT, typename CharT>
void string_array2string (StringT &str_, CharT *array_[])
 Loads text from array of string literals into STL string provided by the user.
template<typename StringT, typename CharT>
void string_array2string (StringT &str_, CharT *array_[], CharT delimiter_)
 Loads text from array of string literals into STL string provided by the user.
template<typename StringT, typename CharT>
void string_array2string (StringT &str_, CharT *array_[], CharT const *delimiter_)
 Loads text from array of string literals into STL string provided by the user.


Function Documentation

void string_array2string StringT &  str_,
CharT *  array_[],
CharT const *  delimiter_
[inline]
 

Loads text from array of string literals into STL string provided by the user.

StringT
Template parameter specifying type of the string.
CharT
Template parameter specifying character type.
Parameters:
str_ reference to the target string.
array_ source array of string literals.
delimiter_ a multi-character delimiter to be inserted between source text fragments.
Precondition:
Array should have trailing NULL string, for example,
char* arr[] = { "abc", "def", NULL };

Definition at line 138 of file coreutils.h.

Referenced by input::input(), and cttl::string_array2string().

void string_array2string StringT &  str_,
CharT *  array_[],
CharT  delimiter_
[inline]
 

Loads text from array of string literals into STL string provided by the user.

StringT
Template parameter specifying type of the string.
CharT
Template parameter specifying character type.
Parameters:
str_ reference to the target string.
array_ source array of string literals.
delimiter_ a single-character delimiter to be inserted between source text fragments.
Precondition:
Array should have trailing NULL string, for example,
char* arr[] = { "abc", "def", NULL };

Definition at line 108 of file coreutils.h.

References cttl::string_array2string().

void string_array2string StringT &  str_,
CharT *  array_[]
[inline]
 

Loads text from array of string literals into STL string provided by the user.

StringT
Template parameter specifying type of the string.
Parameters:
str_ reference to the target string.
array_ source array of string literals.
Precondition:
Array should have trailing NULL string, for example,
char* arr[] = { "abc", "def", NULL };

Definition at line 78 of file coreutils.h.

References cttl::string_array2string().


Generated on Thu Nov 2 17:44:13 2006 for Common Text Transformation Library by  doxygen 1.3.9.1