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

Method fill

sql/sql_string.cc:513–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511/* This is used by mysql.cc */
512
513bool Binary_string::fill(size_t max_length,char fill_char)
514{
515 DBUG_ASSERT(max_length < UINT_MAX32); // cast to uint32 is safe
516 if (str_length > max_length)
517 Ptr[str_length= (uint32) max_length]=0;
518 else
519 {
520 if (realloc(max_length))
521 return TRUE;
522 bfill(Ptr+str_length,max_length-str_length,fill_char);
523 str_length= (uint32) max_length;
524 }
525 return FALSE;
526}
527
528void String::strip_sp()
529{

Callers 14

print_table_dataFunction · 0.45
resetMethod · 0.45
append_lex_cstringMethod · 0.45
val_strMethod · 0.45
natsort_encode_lengthFunction · 0.45
key_copyFunction · 0.45
unpackMethod · 0.45
do_cut_string_complexFunction · 0.45
do_expand_binaryFunction · 0.45
do_expand_stringFunction · 0.45
Ticket_listMethod · 0.45
storeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected