MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Name_string Class Reference

#include <item.h>

Inheritance diagram for Name_string:
Collaboration diagram for Name_string:

Public Member Functions

 Name_string (const char *str, size_t length)
 Name_string (const LEX_STRING str)
 Name_string (const char *str, size_t length, bool is_null_terminated)
 Name_string (const LEX_STRING str, bool is_null_terminated)
void copy (const char *str, size_t length, const CHARSET_INFO *cs)
void copy (const char *str, size_t length)
void copy (const char *str)
void copy (const LEX_STRING lex)
void copy (const LEX_STRING *lex)
void copy (const Name_string str)
bool eq (const char *str) const
bool eq_safe (const char *str) const
bool eq (const Name_string name) const
bool eq_safe (const Name_string name) const
- Public Member Functions inherited from Simple_cstring
 Simple_cstring (const char *str_arg, size_t length_arg)
 Simple_cstring (const LEX_STRING arg)
void reset ()
void set (const char *str)
const char * ptr () const
bool is_set () const
size_t length () const
bool eq_bin (const Simple_cstring other) const
void strcpy (char *buff) const

Additional Inherited Members

- Protected Member Functions inherited from Simple_cstring
void set (const char *str_arg, size_t length_arg)

Detailed Description

Storage for name strings. Enpowers Simple_cstring with allocation routines from the sql_strmake family.

This class must stay as small as possible as we often pass it into functions using call-by-value evaluation.

Don't add new members or virual methods into this class!

Definition at line 158 of file item.h.

Member Function Documentation

void Name_string::copy ( const char *  str,
size_t  length,
const CHARSET_INFO cs 
)

Allocate space using sql_strmake() or sql_strmake_with_convert().

Definition at line 970 of file item.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void Name_string::copy ( const char *  str,
size_t  length 
)
inline

Variants for copy(), for various argument combinations.

Definition at line 195 of file item.h.

Here is the call graph for this function:

bool Name_string::eq ( const char *  str) const
inline

Compare name to another name in C string, case insensitively.

Definition at line 218 of file item.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Name_string::eq ( const Name_string  name) const
inline

Compare name to another name in Name_string, case insensitively.

Definition at line 230 of file item.h.

Here is the call graph for this function:


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