Unicode string.  
 More...
#include <Ustring.h>
Public Member Functions | 
| 
  | Ustring () | 
|   | Creates new unicode string. 
  | 
|   | Ustring (std::istream *) | 
|   | Creates new unicode string from input stream.  
  | 
|   | Ustring (const Ustring &) | 
|   | Copies unicode string.  
  | 
| 
virtual  | ~Ustring () | 
|   | Destroys unicode string. 
  | 
| int  | length () | 
|   | Returns length of unicode string.  
  | 
std::vector< Uchar > 
::const_iterator  | begin () | 
|   | Returns iterator to the beginning of the string.  
  | 
std::vector< Uchar > 
::const_iterator  | end () | 
|   | Returns iterator to the end of the string.  
  | 
| 
const bool  | operator== (const char *) const  | 
| 
Ustring *  | operator+= (const char *) | 
| 
Ustring *  | operator+= (const Uchar &) | 
| 
const bool  | operator< (const Ustring &) const  | 
| 
std::string *  | operator>> (std::string &) | 
| const Uchar &  | charAt (int) const  | 
|   | Gets character in specified position.  
  | 
Static Public Attributes | 
| static const Uchar  | BYTE_ORDER_MARK = 0xFEFFu | 
|   | Order byte mark.  
  | 
Detailed Description
Unicode string. 
Definition at line 35 of file Ustring.h.
Constructor & Destructor Documentation
      
        
          | Ustring::Ustring  | 
          ( | 
          std::istream *  | 
          ifs | ) | 
           | 
        
      
 
Creates new unicode string from input stream. 
- Parameters
 - 
  
  
 
- Exceptions
 - 
  
    | Ustring::INVALID | input stream is not valid utf8  | 
  
   
Definition at line 47 of file Ustring.cc.
 
 
      
        
          | Ustring::Ustring  | 
          ( | 
          const Ustring &  | 
          orig | ) | 
           | 
        
      
 
Copies unicode string. 
- Parameters
 - 
  
    | orig | original unicode string  | 
  
   
Definition at line 139 of file Ustring.cc.
 
 
Member Function Documentation
      
        
          | std::vector< Uchar >::const_iterator Ustring::begin  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns iterator to the beginning of the string. 
- Returns
 - iterator 
 
Definition at line 156 of file Ustring.cc.
 
 
      
        
          | const Uchar & Ustring::charAt  | 
          ( | 
          int  | 
          pos | ) | 
           const | 
        
      
 
Gets character in specified position. 
- Parameters
 - 
  
  
 
- Returns
 - character 
 
Definition at line 278 of file Ustring.cc.
 
 
      
        
          | std::vector< Uchar >::const_iterator Ustring::end  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns iterator to the end of the string. 
- Returns
 - iterator 
 
Definition at line 164 of file Ustring.cc.
 
 
Returns length of unicode string. 
- Returns
 
Definition at line 172 of file Ustring.cc.
 
 
Member Data Documentation
  
  
      
        
          | const Uchar Ustring::BYTE_ORDER_MARK = 0xFEFFu | 
         
       
   | 
  
static   | 
  
 
Order byte mark. 
Used to identify encoding and endianness. 
Definition at line 59 of file Ustring.h.
 
 
The documentation for this class was generated from the following files: