Append a parenthesized number to String. Used in various pieces of SHOW related code. @param nr Number @param radix Radix, optional parameter, 10 by default. */
| 549 | @param radix Radix, optional parameter, 10 by default. |
| 550 | */ |
| 551 | bool String::append_parenthesized(long nr, int radix) |
| 552 | { |
| 553 | char buff[64], *end; |
| 554 | buff[0]= '('; |
| 555 | end= int10_to_str(nr, buff + 1, radix); |
| 556 | *end++ = ')'; |
| 557 | return append(buff, (uint) (end - buff)); |
| 558 | } |
| 559 | |
| 560 | |
| 561 | bool String::append_with_prefill(const char *s,uint32 arg_length, |
no test coverage detected