Tanl Linguistic Pipeline

Tanl::Text::String Class Reference

String class This class stores and manipulates strings of characters defined according to ISO10646. More...

#include <String.h>

List of all members.

Public Types

typedef std::basic_string< UCS2StringType
typedef Char CharType
typedef StringType::traits_type traits_type
typedef StringType::value_type value_type
typedef StringType::size_type size_type
typedef StringType::difference_type difference_type
typedef StringType::reference reference
typedef StringType::const_reference const_reference
typedef StringType::pointer pointer
typedef StringType::const_pointer const_pointer
typedef StringType::iterator iterator
typedef StringType::const_iterator const_iterator
typedef
StringType::reverse_iterator 
reverse_iterator
typedef
StringType::const_reverse_iterator 
const_reverse_iterator

Public Member Functions

 String (const String &, const size_type=0, const size_type=npos)
 String (const CharType *)
 String (const CharType *, const size_type)
 String (const size_type, const CharType)
template<class InputIterator >
 String (InputIterator, InputIterator)
 String (const StringType &)
size_type size () const
size_type length () const
bool empty () const
size_type max_size () const
size_type capacity () const
void reserve (const size_type l)
int compare (const String &s) const
int compare (const size_type, const size_type, const String &) const
int compare (const size_type, const size_type, const String &, const size_type, const size_type) const
int compare (const CharType *) const
int compare (const size_type, const size_type, const CharType *) const
int compare (const size_type, const size_type, const CharType *, const size_type) const
CharTypeoperator[] (const size_type p)
CharType operator[] (const size_type p) const
CharTypeat (const size_type p)
CharType at (const size_type p) const
Stringassign (const String &s)
Stringassign (const String &, const size_type, const size_type)
Stringassign (const CharType *)
Stringassign (const CharType *, const size_type)
Stringassign (const size_type, const CharType)
Stringoperator= (const String s)
Stringoperator= (const CharType *c)
Stringoperator= (CharType c)
void swap (String &) throw ()
Stringappend (const String &s)
Stringappend (const String &, const size_type, const size_type)
Stringappend (const CharType *, const size_type)
Stringappend (const CharType *)
Stringappend (const size_type, const CharType)
template<class InputIterator >
Stringappend (InputIterator, InputIterator)
void push_back (CharType c)
Stringoperator+= (const String &s)
Stringoperator+= (const CharType *c)
Stringoperator+= (const CharType c)
Stringinsert (const size_type p, const String &s)
Stringinsert (const size_type, const String &, const size_type, const size_type)
Stringinsert (const size_type, const CharType *, const size_type)
Stringinsert (const size_type, const CharType *)
Stringinsert (const size_type, const size_type, const CharType)
void insert (iterator, const size_type, const CharType)
iterator insert (iterator, const CharType)
void insert (iterator, iterator, iterator)
void clear ()
Stringerase ()
Stringerase (const size_type)
Stringerase (const size_type, const size_type)
Stringerase (iterator, iterator)
void resize (const size_type)
void resize (const size_type, CharType)
Stringreplace (const size_type p1, const size_type p2, const String &s)
Stringreplace (iterator, iterator, const String &)
Stringreplace (const size_type, const size_type, const String &, const size_type, const size_type)
Stringreplace (const size_type, const size_type, const CharType *, const size_type)
Stringreplace (iterator, iterator, const CharType *, const size_type)
Stringreplace (const size_type, const size_type, const CharType *)
Stringreplace (iterator, iterator, const CharType *)
Stringreplace (const size_type, const size_type, const size_type, CharType)
Stringreplace (iterator, iterator, const size_type, CharType)
template<class InputIterator >
Stringreplace (iterator, iterator, InputIterator, InputIterator)
size_type find (const CharType c) const
size_type find (const CharType c, const size_type i)
size_type rfind (const CharType c) const
size_type rfind (const CharType c, const size_type i)
size_type find (const String &s) const
size_type find (const String &s, const size_type i)
size_type rfind (const String &s) const
size_type rfind (const String &s, const size_type i)
size_type find (const CharType *c) const
size_type find (const CharType *c, const size_type i)
size_type rfind (const CharType *c) const
size_type rfind (const CharType *c, const size_type i)
size_type find (const char *c) const
size_type find (const CharType *c, const size_type i, const size_type l) const
size_type rfind (const CharType *c, const size_type i, const size_type l)
size_type find_first_of (const String &s) const
size_type find_first_of (const String &s, const size_type i)
size_type find_first_not_of (const String &s) const
size_type find_first_not_of (const String &s, const size_type i)
size_type find_first_of (const CharType *c) const
size_type find_first_of (const CharType *c, const size_type i)
size_type find_first_not_of (const CharType *c) const
size_type find_first_not_of (const CharType *c, const size_type i)
size_type find_first_of (const CharType *c, const size_type i, const size_type l) const
size_type find_first_not_of (const CharType *c, const size_type i, const size_type l) const
size_type find_first_of (const CharType c) const
size_type find_first_of (const CharType c, const size_type i)
size_type find_first_not_of (const CharType c) const
size_type find_first_not_of (const CharType c, const size_type i)
size_type find_last_of (const String &s) const
size_type find_last_of (const String &s, const size_type i)
size_type find_flast_not_of (const String &s) const
size_type find_last_not_of (const String &s, const size_type i)
size_type find_last_of (const CharType *c) const
size_type find_last_of (const CharType *c, const size_type i)
size_type find_last_not_of (const CharType *c) const
size_type find_last_not_of (const CharType *c, const size_type i)
size_type find_last_of (const CharType *c, const size_type i, const size_type l) const
size_type find_last_not_of (const CharType *c, const size_type i, const size_type l) const
size_type find_last_of (const CharType c) const
size_type find_last_of (const CharType c, const size_type i)
size_type find_last_not_of (const CharType c) const
size_type find_last_not_of (const CharType c, const size_type i)
String substr () const
String substr (const size_type i) const
String substr (const size_type i, const size_type l) const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
reverse_iterator rbegin ()
const_reverse_iterator rbegin () const
reverse_iterator rend ()
const_reverse_iterator rend () const
 String (const std::string &, const size_t pos=0, const std::string encoding="UTF8")
 String (const char *, const std::string encoding="UTF8")
 String (const char *, const size_t len, const std::string encoding="UTF8")
std::string convert (const std::string &encoding="UTF8") const
size_t convert (const char *, const size_t start, const size_t end, const std::string &="UTF8") throw (std::length_error)
bool StartsWith (const char *c) const
 Checks whether the string starts with the c-string c.
bool StartsWithNoCase (const char *c) const
 Checks whether the string starts with the c-string c, disregarding case.
bool contains (const char *c) const
String ToLower () const
String ToLower ()
String ToUpper () const
String ToUpper ()

Static Public Attributes

static const size_type npos = -1

Detailed Description

String class This class stores and manipulates strings of characters defined according to ISO10646.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.