49 #ifndef __vtkUnicodeString_h
50 #define __vtkUnicodeString_h
52 #include "vtkCommonCoreModule.h"
67 #define vtkSuperExtraExtendedTemplateMacro(call) \
68 vtkExtraExtendedTemplateMacro(call); \
69 vtkTemplateMacroCase(VTK_UNICODE_STRING, vtkUnicodeString, call)
99 std::string::const_iterator Position;
115 static bool is_utf8(
const char*);
116 static bool is_utf8(
const std::string&);
154 void utf8_str(std::string& result)
const;
156 std::vector<vtkTypeUInt16>
utf16_str()
const;
159 void utf16_str(std::vector<vtkTypeUInt16>& result)
const;
220 class back_insert_iterator;
static vtkUnicodeString from_utf16(const vtkTypeUInt16 *)
VTKCOMMONCORE_EXPORT bool operator>=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
static bool is_utf8(const char *)
vtkUnicodeString & operator=(const vtkUnicodeString &)
vtkUnicodeString fold_case() const
value_type operator[](size_type offset) const
VTKCOMMONCORE_EXPORT bool operator<=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
void append(const vtkUnicodeString &value)
void push_back(value_type)
std::string::difference_type difference_type
vtkUnicodeStringValueType value_type
VTKCOMMONCORE_EXPORT bool operator<(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTKCOMMONCORE_EXPORT bool operator>(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
size_type byte_count() const
size_type character_count() const
int compare(const vtkUnicodeString &) const
vtkUnicodeString & operator+=(value_type)
static vtkUnicodeString from_utf8(const char *)
const char * utf8_str() const
std::vector< vtkTypeUInt16 > utf16_str() const
void swap(vtkUnicodeString &)
void assign(const vtkUnicodeString &value)
static const size_type npos
std::bidirectional_iterator_tag iterator_category
value_type at(size_type offset) const
const_iterator end() const
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkUnicodeString substr(size_type offset=0, size_type count=npos) const
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkTypeUInt32 vtkUnicodeStringValueType
std::string::size_type size_type
vtkUnicodeStringValueType value_type
String class that stores Unicode text.
const_iterator begin() const