MCPcopy Create free account
hub / github.com/MariaDB/server / copy_caseup

Method copy_caseup

sql/sql_string.h:987–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985 return false;
986 }
987 bool copy_caseup(CHARSET_INFO *cs, const LEX_CSTRING &str)
988 {
989 size_t nbytes= str.length * cs->caseup_multiply();
990 DBUG_ASSERT(nbytes + 1 <= UINT_MAX32);
991 if (alloc(nbytes))
992 return true;
993 str_length= (uint32) cs->caseup_z(str.str, str.length, Ptr, nbytes + 1);
994 return false;
995 }
996 // Append without character set conversion
997 bool append(const String &s)
998 {

Callers 3

func_upperFunction · 0.80
show_status_arrayFunction · 0.80
fill_sysvarsFunction · 0.80

Calls 2

caseup_multiplyMethod · 0.80
caseup_zMethod · 0.80

Tested by 1

func_upperFunction · 0.64