598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
|
static const char *
SearchKnownEncodings(
const char *encoding)
{
int left = 0;
int right = sizeof(localeTable)/sizeof(LocaleTable);
while (left <= right) {
int test = (left + right)/2;
int code = strcmp(localeTable[test].lang, encoding);
if (code == 0) {
return localeTable[test].encoding;
}
if (code < 0) {
|
|
|
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
|
static const char *
SearchKnownEncodings(
const char *encoding)
{
int left = 0;
int right = sizeof(localeTable)/sizeof(LocaleTable);
while (left < right) {
int test = (left + right)/2;
int code = strcmp(localeTable[test].lang, encoding);
if (code == 0) {
return localeTable[test].encoding;
}
if (code < 0) {
|