261
261
bool isalpha(unsigned char c) const
263
return (ctype + 1)[c] & (_MY_U | _MY_L);
263
return ctype[c + 1] & (_MY_U | _MY_L);
266
266
bool isupper(unsigned char c) const
268
return (ctype + 1)[c] & _MY_U;
268
return ctype[c + 1] & _MY_U;
271
271
bool islower(unsigned char c) const
273
return (ctype + 1)[c] & _MY_L;
273
return ctype[c + 1] & _MY_L;
276
276
bool isdigit(unsigned char c) const
278
return (ctype + 1)[c] & _MY_NMR;
278
return ctype[c + 1] & _MY_NMR;
281
281
bool isxdigit(unsigned char c) const
283
return (ctype + 1)[c] & _MY_X;
283
return ctype[c + 1] & _MY_X;
286
286
bool isalnum(unsigned char c) const
288
return (ctype + 1)[c] & (_MY_U | _MY_L | _MY_NMR);
288
return ctype[c + 1] & (_MY_U | _MY_L | _MY_NMR);
291
291
bool isspace(unsigned char c) const
293
return (ctype + 1)[c] & _MY_SPC;
293
return ctype[c + 1] & _MY_SPC;
296
296
bool ispunct(unsigned char c) const
298
return (ctype + 1)[c] & _MY_PNT;
298
return ctype[c + 1] & _MY_PNT;
301
301
bool isprint(unsigned char c) const
303
return (ctype + 1)[c] & (_MY_PNT | _MY_U | _MY_L | _MY_NMR | _MY_B);
303
return ctype[c + 1] & (_MY_PNT | _MY_U | _MY_L | _MY_NMR | _MY_B);
306
306
bool isgraph(unsigned char c) const
308
return (ctype + 1)[c] & (_MY_PNT | _MY_U | _MY_L | _MY_NMR);
308
return ctype[c + 1] & (_MY_PNT | _MY_U | _MY_L | _MY_NMR);
311
311
bool iscntrl(unsigned char c) const
313
return (ctype + 1)[c] & _MY_CTR;
313
return ctype[c + 1] & _MY_CTR;
316
316
bool isvar(char c) const
343
343
return coll->strnxfrm(this, dst, dstlen, dstlen, src, srclen, MY_STRXFRM_PAD_WITH_SPACE);
346
int strcasecmp(const char *s, const char *t) const
348
return coll->strcasecmp(this, s, t);
351
size_t caseup_str(char* src) const
353
return cset->caseup_str(this, src);
356
size_t casedn_str(char* src) const
358
return cset->casedn_str(this, src);
347
362
extern DRIZZLED_API charset_info_st *all_charsets[256];
574
589
return (cs->coll->wildcmp(cs, str, strend, w_str, w_strend, escape, w_one, w_many));
577
inline static int my_strcasecmp(const charset_info_st *cs, const char *s, const char *t)
579
return (cs->coll->strcasecmp(cs, s, t));
582
592
template <typename CHAR_T>
583
593
inline static size_t my_charpos(const charset_info_st *cs,
584
594
const CHAR_T *b, const CHAR_T* e, size_t num)
605
inline static size_t my_caseup_str(const charset_info_st *cs, char *src)
607
return cs->cset->caseup_str(cs, src);
610
inline static size_t my_casedn_str(const charset_info_st *cs, char *src)
612
return cs->cset->casedn_str(cs, src);
615
615
inline static long my_strntol(const charset_info_st *cs,
616
616
const char* s, const size_t l, const int base, char **e, int *err)