35 #include "../api_core.h"
80 CL_String16(
const wchar_t *wc_str, size_type length);
94 const wchar_t *c_str()
const;
99 size_type
max_size()
const {
return (size_type) -1; }
104 size_type
capacity()
const {
return data_capacity; }
115 void reserve(size_type size);
120 void resize(size_type n);
126 void resize(size_type n,
wchar_t c);
147 CL_String16 &assign(
const wchar_t *s, size_type n);
178 for (size_type i = n+1; i > insert_pos; i--)
180 d[insert_pos] = item;
182 return begin() + insert_pos;
190 void insert(iterator pos, size_type num_copies,
const wchar_t &item);
216 CL_String16 &insert(size_type pos,
const wchar_t *s);
225 CL_String16 &insert(size_type pos,
const wchar_t *s, size_type s_length);
234 CL_String16 &insert(size_type pos, size_type n,
wchar_t c);
275 CL_String16 &append(
const wchar_t *s, size_type n);
288 void push_back(
wchar_t c);
300 return erase(p, p+1);
323 return begin() + pos;
362 CL_String16 &replace(size_type pos, size_type n,
const wchar_t *s, size_type n1);
371 CL_String16 &replace(size_type pos, size_type n,
const wchar_t *s);
381 CL_String16 &replace(size_type pos, size_type n, size_type n1,
wchar_t c);
400 CL_String16 &replace(iterator first, iterator last,
const wchar_t *s, size_type n);
409 CL_String16 &replace(iterator first, iterator last,
const wchar_t *s);
419 CL_String16 &replace(iterator first, iterator last, size_type n,
wchar_t c);
428 size_type copy(
wchar_t *buf, size_type n, size_type pos = 0)
const;
443 size_type data_capacity;
444 enum { local_string_length = 63 };
445 wchar_t local_string[local_string_length + 1];