49 #ifndef __vtkUnicodeString_h
50 #define __vtkUnicodeString_h
53 #include <vtkstd/string>
54 #include <vtkstd/vector>
66 #define vtkSuperExtraExtendedTemplateMacro(call) \
67 vtkExtraExtendedTemplateMacro(call); \
68 vtkTemplateMacroCase(VTK_UNICODE_STRING, vtkUnicodeString, call)
98 vtkstd::string::const_iterator Position;
119 static bool is_utf8(
const char*);
120 static bool is_utf8(
const vtkstd::string&);
166 void utf8_str(vtkstd::string& result)
const;
169 vtkstd::vector<vtkTypeUInt16>
utf16_str()
const;
173 void utf16_str(vtkstd::vector<vtkTypeUInt16>& result)
const;
241 vtkstd::string Storage;
242 class back_insert_iterator;
static vtkUnicodeString from_utf16(const vtkTypeUInt16 *)
vtkstd::bidirectional_iterator_tag iterator_category
static bool is_utf8(const char *)
vtkUnicodeString & operator=(const vtkUnicodeString &)
vtkUnicodeString fold_case() const
value_type operator[](size_type offset) const
void append(const vtkUnicodeString &value)
void push_back(value_type)
vtkUnicodeStringValueType value_type
size_type byte_count() const
size_type character_count() const
int compare(const vtkUnicodeString &) const
vtkUnicodeString & operator+=(value_type)
vtkstd::vector< vtkTypeUInt16 > utf16_str() const
VTK_COMMON_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTK_COMMON_EXPORT bool operator>(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
static vtkUnicodeString from_utf8(const char *)
vtkstd::string::difference_type difference_type
const char * utf8_str() const
VTK_COMMON_EXPORT bool operator<(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTK_COMMON_EXPORT bool operator>=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTK_COMMON_EXPORT bool operator<=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
void swap(vtkUnicodeString &)
void assign(const vtkUnicodeString &value)
static const size_type npos
value_type at(size_type offset) const
const_iterator end() const
vtkUnicodeString substr(size_type offset=0, size_type count=npos) const
VTK_COMMON_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkTypeUInt32 vtkUnicodeStringValueType
vtkUnicodeStringValueType value_type
vtkstd::string::size_type size_type
String class that stores Unicode text.
const_iterator begin() const