Public Member Functions | |
String (size_t length_arg) | |
String (const char *str, const CHARSET_INFO *const cs) | |
String (const char *str, size_t len, const CHARSET_INFO *const cs) | |
String (char *str, size_t len, const CHARSET_INFO *const cs) | |
String (const String &str) | |
void | set_charset (const CHARSET_INFO *const charset_arg) |
const CHARSET_INFO * | charset () const |
size_t | length () const |
size_t | alloced_length () const |
char & | operator[] (size_t i) const |
void | length (size_t len) |
bool | is_empty () |
void | mark_as_const () |
char * | ptr () |
const char * | ptr () const |
char * | c_ptr () |
char * | c_ptr_quick () |
char * | c_ptr_safe () |
char * | c_str () |
void | append_identifier (const char *name, size_t length) |
void | set (String &str, size_t offset, size_t arg_length) |
void | set (char *str, size_t arg_length, const CHARSET_INFO *const cs) |
void | set (const char *str, size_t arg_length, const CHARSET_INFO *const cs) |
bool | set_ascii (const char *str, size_t arg_length) |
void | set_quick (char *str, size_t arg_length, const CHARSET_INFO *const cs) |
bool | set_int (int64_t num, bool unsigned_flag, const CHARSET_INFO *const cs) |
bool | set (int64_t num, const CHARSET_INFO *const cs) |
bool | set (uint64_t num, const CHARSET_INFO *const cs) |
bool | set_real (double num, size_t decimals, const CHARSET_INFO *const cs) |
void | chop () |
void | free () |
bool | alloc (size_t arg_length) |
bool | real_alloc (size_t arg_length) |
bool | realloc (size_t arg_length) |
void | shrink (size_t arg_length) |
bool | is_alloced () |
String & | operator= (const String &s) |
bool | copy () |
bool | copy (const String &s) |
bool | copy (const std::string &, const CHARSET_INFO *const cs) |
bool | copy (const char *s, size_t arg_length, const CHARSET_INFO *const cs) |
bool | set_or_copy_aligned (const char *s, size_t arg_length, const CHARSET_INFO *const cs) |
bool | copy (const char *s, size_t arg_length, const CHARSET_INFO *const csfrom, const CHARSET_INFO *const csto, size_t *errors) |
bool | append (const String &s) |
bool | append (const char *s) |
bool | append (const char *s, size_t arg_length) |
bool | append (const char *s, size_t arg_length, const CHARSET_INFO *const cs) |
bool | append_with_prefill (const char *s, size_t arg_length, size_t full_length, char fill_char) |
int | strstr (const String &search, size_t offset=0) |
int | strrstr (const String &search, size_t offset=0) |
bool | replace (size_t offset, size_t arg_length, const char *to, size_t length) |
bool | replace (size_t offset, size_t arg_length, const String &to) |
bool | append (char chr) |
size_t | numchars () |
int | charpos (int i, size_t offset=0) |
int | reserve (size_t space_needed) |
int | reserve (size_t space_needed, size_t grow_by) |
void | q_append (const char c) |
void | q_append (const size_t n) |
void | q_append (double d) |
void | q_append (double *d) |
void | q_append (const char *data, size_t data_len) |
void | write_at_position (int position, size_t value) |
char * | prep_append (size_t arg_length, size_t step_alloc) |
bool | append (const char *s, size_t arg_length, size_t step_alloc) |
void | print (String *print) |
void | swap (String &s) |
bool | uses_buffer_owned_by (const String *s) const |
Static Public Member Functions | |
static void * | operator new (size_t size, memory::Root *mem_root) |
static void | operator delete (void *, size_t) |
static void | operator delete (void *, memory::Root *) |
static bool | needs_conversion (size_t arg_length, const CHARSET_INFO *const cs_from, const CHARSET_INFO *const cs_to, size_t *offset) |
Private Attributes | |
char * | Ptr |
size_t | str_length |
size_t | Alloced_length |
bool | alloced |
const CHARSET_INFO * | str_charset |
Friends | |
int | sortcmp (const String *a, const String *b, const CHARSET_INFO *const cs) |
int | stringcmp (const String *a, const String *b) |
String * | copy_if_not_alloced (String *a, String *b, size_t arg_length) |
Definition at line 63 of file sql_string.h.