Urho3D::WString Class Reference

Wide character string. Only meant for converting from String and passing to the operating system where necessary. More...

#include <Str.h>

Public Member Functions

 WString ()
 Construct empty.
 
 WString (const String &str)
 Construct from a string.
 
 ~WString ()
 Destruct.
 
wchar_t & operator[] (unsigned index)
 Return char at index.
 
const wchar_t & operator[] (unsigned index) const
 Return const char at index.
 
wchar_t & At (unsigned index)
 Return char at index.
 
const wchar_t & At (unsigned index) const
 Return const char at index.
 
void Resize (unsigned newLength)
 Resize the string.
 
bool Empty () const
 Return whether the string is empty.
 
unsigned Length () const
 Return length.
 
const wchar_t * CString () const
 Return character data.
 

Private Attributes

unsigned length_
 String length.
 
wchar_t * buffer_
 String buffer, null if not allocated.
 

Detailed Description

Wide character string. Only meant for converting from String and passing to the operating system where necessary.


The documentation for this class was generated from the following files:
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Container/Str.h
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Container/Str.cpp