35 #include "../api_core.h"
94 const char *c_str()
const;
115 void reserve(size_type size);
120 void resize(size_type n);
126 void resize(size_type n,
char c);
147 CL_String8 &assign(
const char *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 char &item);
216 CL_String8 &insert(size_type pos,
const char *s);
225 CL_String8 &insert(size_type pos,
const char *s, size_type s_length);
234 CL_String8 &insert(size_type pos, size_type n,
char c);
260 CL_String8 &append(
const char *s, size_type n);
275 CL_String8 &append(
const wchar_t *s, size_type n);
288 void push_back(
char c);
300 return erase(p, p+1);
323 return begin() + pos;
362 CL_String8 &replace(size_type pos, size_type n,
const char *s, size_type n1);
371 CL_String8 &replace(size_type pos, size_type n,
const char *s);
381 CL_String8 &replace(size_type pos, size_type n, size_type n1,
char c);
400 CL_String8 &replace(iterator first, iterator last,
const char *s, size_type n);
409 CL_String8 &replace(iterator first, iterator last,
const char *s);
419 CL_String8 &replace(iterator first, iterator last, size_type n,
char c);
428 size_type copy(
char *buf, size_type n, size_type pos = 0)
const;
436 CL_String8 &operator +=(
const wchar_t *c_str);
443 size_type data_capacity;
444 enum { local_string_length = 63 };
445 char local_string[local_string_length + 1];