35 #include "../api_core.h"
88 const char *
data()
const {
return data_ptr; }
93 char *
data() {
return data_ptr; }
98 operator std::string()
const;
118 bool empty()
const {
return data_length == 0; }
135 size_type find(
const char *s, size_type pos, size_type n)
const;
143 size_type find(
const char *s, size_type pos = 0)
const;
151 size_type find(
char c, size_type pos = 0)
const;
159 size_type rfind(
const CL_StringData8 &s, size_type pos = npos)
const;
168 size_type rfind(
const char *s, size_type pos, size_type n)
const;
176 size_type rfind(
const char *s, size_type pos = npos)
const;
184 size_type rfind(
char c, size_type pos = npos)
const;
192 size_type find_first_of(
const CL_StringData8 &s, size_type pos = 0)
const;
201 size_type find_first_of(
const char *s, size_type pos, size_type n)
const;
209 size_type find_first_of(
const char *s, size_type pos = 0)
const;
217 size_type find_first_of(
char c, size_type pos = 0)
const;
225 size_type find_first_not_of(
const CL_StringData8 &s, size_type pos = 0)
const;
234 size_type find_first_not_of(
const char *s, size_type pos, size_type n)
const;
242 size_type find_first_not_of(
const char *s, size_type pos = 0)
const;
250 size_type find_first_not_of(
char c, size_type pos = 0)
const;
258 size_type find_last_of(
const CL_StringData8 &s, size_type pos = npos)
const;
267 size_type find_last_of(
const char *s, size_type pos, size_type n)
const;
275 size_type find_last_of(
const char *s, size_type pos = npos)
const;
283 size_type find_last_of(
char c, size_type pos = npos)
const;
291 size_type find_last_not_of(
const CL_StringData8 &s, size_type pos = npos)
const;
300 size_type find_last_not_of(
const char *s, size_type pos, size_type n)
const;
308 size_type find_last_not_of(
const char *s, size_type pos = npos)
const;
316 size_type find_last_not_of(
char c, size_type pos = npos)
const;
324 CL_StringRef8 substr(size_type pos = 0, size_type n = npos)
const;
340 int compare(size_type pos, size_type n,
const CL_StringData8 &s)
const;
351 int compare(size_type pos, size_type n,
const CL_StringData8 &s, size_type pos1, size_type n1)
const;
358 int compare(
const char *s)
const;
368 int compare(size_type pos, size_type n,
const char *s, size_type len = npos)
const;
371 size_type utf8_length()
const;