| 3447 | |
| 3448 | |
| 3449 | MY_LOCALE *my_locale_by_number(uint number) |
| 3450 | { |
| 3451 | MY_LOCALE *locale; |
| 3452 | if (number >= array_elements(my_locales) - 1) |
| 3453 | return NULL; |
| 3454 | locale= my_locales[number]; |
| 3455 | // Check that locale is on its correct position in the array |
| 3456 | DBUG_ASSERT(locale == my_locales[locale->number]); |
| 3457 | return locale; |
| 3458 | } |
| 3459 | |
| 3460 | |
| 3461 | static MY_LOCALE* |