lestes::std::ucn_string Class Reference

String of ucn characters. More...

#include <ucn_string.hh>

Inheritance diagram for lestes::std::ucn_string:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ucn_string (void)
 Creates empty string.
 ucn_string (const ucn_string &str)
 Creates ucn string, initializes with other string.
 ucn_string (const ucn_string &str, size_type pos, size_type n=npos)
 Creates string, initializes with part of string.
 ucn_string (size_type n, value_type c)
 Creates string, fills with character.
template<class InputIterator>
 ucn_string (InputIterator beg, InputIterator end)
 Creates ucn string, initializes with iterator.
 ucn_string (const char *data)
 Creates string, initializes with host characters.
lstring to_host_string (void) const
 Returns escaped host representation.

Detailed Description

String of ucn characters.

Represents string of ucn characters. The string is intended for storing internal representation of identifiers and literals. It shall not be used for ordinary messages or texts. All data is implicitly stored in superset of ASCII and has to be converted to host character set before displaying


Constructor & Destructor Documentation

lestes::std::ucn_string::ucn_string ( void   )  [inline]

Creates empty string.

Creates empty ucn string.

lestes::std::ucn_string::ucn_string ( const ucn_string str  )  [inline]

Creates ucn string, initializes with other string.

Creates ucn string, initializes with another string.

Parameters:
str The initializer.

lestes::std::ucn_string::ucn_string ( const ucn_string str,
size_type  pos,
size_type  n = npos 
) [inline]

Creates string, initializes with part of string.

Creates ucn string, initializes with a portion of another string.

Parameters:
str The initializer.
pos The starting position in the initializer.
n The length of the portion.

lestes::std::ucn_string::ucn_string ( size_type  n,
value_type  c 
) [inline]

Creates string, fills with character.

Creates ucn string, fills with characters.

Parameters:
n The length of the string.
c The character to fill.

template<class InputIterator>
lestes::std::ucn_string::ucn_string ( InputIterator  beg,
InputIterator  end 
) [inline]

Creates ucn string, initializes with iterator.

Creates ucn string, initializes with iterator.

Parameters:
InputIterator The type of the iterator.
beg The starting position of the iterator.
end The ending position of the iterator.

lestes::std::ucn_string::ucn_string ( const char *  s  )  [inline]

Creates string, initializes with host characters.

Creates ucn string from regular characters ASCIIZ string.

Parameters:
s The characters to convert.


Member Function Documentation

lstring lestes::std::ucn_string::to_host_string ( void   )  const

Returns escaped host representation.

Converts ucn string, escapes extended characters with backslash u or U. Any external characters are considered to have host encoding.

Returns:
Host string with representation of the ucn string.


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:50:09 2007 for lestes by doxygen 1.5.1-20070107