| 976 | return false; |
| 977 | } |
| 978 | bool copy_casedn(CHARSET_INFO *cs, const LEX_CSTRING &str) |
| 979 | { |
| 980 | size_t nbytes= str.length * cs->casedn_multiply(); |
| 981 | DBUG_ASSERT(nbytes + 1 <= UINT_MAX32); |
| 982 | if (alloc(nbytes)) |
| 983 | return true; |
| 984 | str_length= (uint32) cs->casedn_z(str.str, str.length, Ptr, nbytes + 1); |
| 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(); |