Drizzled Public API Documentation

drizzled::String Class Reference

Public Member Functions

 String (size_t length_arg)
 String (const char *, const charset_info_st *)
 String (const char *, size_t, const charset_info_st *)
 String (char *str, size_t len, const charset_info_st *)
 String (str_ref, const charset_info_st *)
 String (const String &)
void set_charset (const charset_info_st *const charset_arg)
const charset_info_stcharset () const
size_t length () const
size_t alloced_length () const
char & operator[] (size_t i) const
void length (size_t len)
bool empty () const
void mark_as_const ()
char * ptr ()
const char * ptr () const
char * c_ptr ()
const char * begin () const
const char * end () const
const char * data () const
size_t size () const
const char * c_str ()
void append_identifier (const char *name, size_t length)
void append_identifier (str_ref)
void set (String &str, size_t offset, size_t arg_length)
void set (char *str, size_t arg_length, const charset_info_st *const cs)
void set (const char *str, size_t arg_length, const charset_info_st *const cs)
void set_ascii (const char *str, size_t arg_length)
void set_quick (char *str, size_t arg_length, const charset_info_st *const cs)
void set_int (int64_t num, bool unsigned_flag, const charset_info_st *const cs)
void set (int64_t num, const charset_info_st *const cs)
void set (uint64_t num, const charset_info_st *const cs)
void set_real (double num, size_t decimals, const charset_info_st *cs)
void chop ()
void free ()
void alloc (size_t arg_length)
void real_alloc (size_t arg_length)
void realloc (size_t arg_length)
void shrink (size_t arg_length)
bool is_alloced ()
const Stringoperator= (const String &s)
void copy ()
void copy (const String &)
void copy (const std::string &, const charset_info_st *)
void copy (const char *, size_t, const charset_info_st *)
void set_or_copy_aligned (const char *s, size_t arg_length, const charset_info_st *)
void copy (const char *s, size_t arg_length, const charset_info_st &csto)
void append (const char *, size_t)
void append (str_ref)
void 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)
void replace (size_t offset, size_t arg_length, const char *to, size_t length)
void replace (size_t offset, size_t arg_length, const String &to)
void append (char chr)
size_t numchars () const
int charpos (int i, size_t offset=0) const
void reserve (size_t space_needed)
void reserve (size_t space_needed, size_t grow_by)
void append (const char *s, size_t arg_length, size_t step_alloc)
void print (String &) const
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_st *cs_from, const charset_info_st *cs_to)

Private Attributes

char * Ptr
size_t str_length
size_t Alloced_length
bool alloced
const charset_info_ststr_charset

Friends

int sortcmp (const String *a, const String *b, const charset_info_st *const cs)
int stringcmp (const String *a, const String *b)
Stringcopy_if_not_alloced (String *a, String *b, size_t arg_length)

Detailed Description

Definition at line 57 of file sql_string.h.


The documentation for this class was generated from the following files: