| 511 | /* This is used by mysql.cc */ |
| 512 | |
| 513 | bool 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 | |
| 528 | void String::strip_sp() |
| 529 | { |
no outgoing calls
no test coverage detected