formatting

SVN revision: 72103
This commit is contained in:
Mike Blumenkrantz 2012-06-14 06:56:56 +00:00
parent 90304246b4
commit 95fdf49738
1 changed files with 400 additions and 392 deletions

View File

@ -436,7 +436,6 @@ _e_intl_locale_hash_free_cb(const Eina_Hash *hash __UNUSED__, const void *key __
return 1;
}
/*
* get the directory associated with the language. Language Must be valid alias
* i.e. Already validated and already de-aliased.
@ -657,6 +656,7 @@ e_intl_locale_parts_get(const char *locale)
else
return NULL;
break;
case 1: /* Gathering Territory */
if (tmp_idx == 2 && locale_char == '.')
{
@ -676,6 +676,7 @@ e_intl_locale_parts_get(const char *locale)
else
return NULL;
break;
case 2: /* Gathering Codeset */
if (locale_char == '@')
{
@ -688,12 +689,14 @@ e_intl_locale_parts_get(const char *locale)
else
return NULL;
break;
case 3: /* Gathering modifier */
if (tmp_idx < 32)
modifier[tmp_idx++] = locale_char;
else
return NULL;
break;
default:
break;
}
@ -706,14 +709,18 @@ e_intl_locale_parts_get(const char *locale)
case 0:
language[tmp_idx] = 0;
tmp_idx = 0;
case 1:
territory[tmp_idx] = 0;
tmp_idx = 0;
case 2:
codeset[tmp_idx] = 0;
tmp_idx = 0;
case 3:
modifier[tmp_idx] = 0;
default:
break;
}
@ -1028,3 +1035,4 @@ _e_intl_imc_dir_scan(const char *dir)
}
return imcs;
}