12 size_t sz = t ? strlen(t) : 0;
14 for (
size_t i = 1; i <= sz; i++)
16 s[i] = (
unsigned char)t[i - 1];
23 size_t sz = t ? strlen((
const char*)t) : 0;
25 for (
size_t i = 1; i <= sz; i++)
42 #if (defined __ZTC__) || (defined __NDPX__)
43 char* ptr = strstr(*
this, substr);
45 const char* ptr = strstr((
const char*)(*
this), (
const char*)(substr));
51 while ( (ptr != (
char*)(
s+i)) && (i <
size()) ) i++;
void allocate(const size_t sz)
size_t pos(const adstring &substr) const
adstring()
Default constructor.
size_t pos(const adstring &substr, const adstring &s)