ICU-3718 Make some data read-only

X-SVN-Rev: 15893
This commit is contained in:
George Rhoten 2004-06-16 21:17:33 +00:00
parent 1f30583f1a
commit 137b9d4d0a
2 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ static ICULocaleService* gService = NULL;
// -------------------------------------
static const char *gBasicCalendars[] = { "@calendar=gregorian", "@calendar=japanese",
static const char * const gBasicCalendars[] = { "@calendar=gregorian", "@calendar=japanese",
"@calendar=buddhist", "@calendar=islamic-civil",
"@calendar=islamic", "@calendar=hebrew", "@calendar=chinese",
NULL };

View File

@ -49,7 +49,7 @@ enum OptionsList {
* be established. Currently, the mapping is from locale name to
* index.
*/
static const char* locales[] = {
static const char* const locales[] = {
/* 00 - 09 */ "ar", "be", "bg", "ca", "cs", "da", "de", "de__PHONEBOOK", "el", "en",
/* 10 - 19 */ "en_BE", "eo", "es", "es__TRADITIONAL", "et", "fa", "fa_AF", "fi", "fo", "fr",
/* 20 - 29 */ "gu", "he", "hi", "hi__DIRECT", "hr", "hu", "is", "it", "ja", "kk",
@ -59,7 +59,7 @@ static const char* locales[] = {
/* 60 - 64 */ "zh_HK", "zh_MO", "zh_TW", "zh_TW_STROKE", "zh__PINYIN"
};
static const char* keywords[] = {
static const char* const keywords[] = {
/* 00 */ "",
/* 01 */ "direct",
/* 02 */ "phonebook",
@ -88,7 +88,7 @@ static const char variantArg = 'V';
static const char RFC3066Arg = 'X';
static const char scriptArg = 'Z';
static const char *collationKeyword = "@collation=";
static const char collationKeyword[] = "@collation=";
static const int32_t locElementCount = 5;
static const int32_t locElementCapacity = 32;