/********************************************************************
- * Copyright (c) 1997-2013, International Business Machines
+ * Copyright (c) 1997-2014, International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************/
"asfdasd", "5464", "12235",
/* test the last index */
"zyyy", "YI",
- '\0'
+ NULL
};
UScriptCode expected[] ={
/* locales should return */
const int32_t capacity = 10;
- for( ; testNames[i]!='\0'; i++){
+ for( ; testNames[i]!=NULL; i++){
UScriptCode script[10]={USCRIPT_INVALID_CODE};
uscript_getCode(testNames[i],script,capacity, &err);
if( script[0] != expected[i]){
/* test names */
"Cyrillic","Deseret","Devanagari","Ethiopic","Georgian",
"Gothic", "Greek", "Gujarati",
- '\0'
+ NULL
};
i=0;
while(i<sizeof(testAbbr)/sizeof(UScriptCode)){
"Knda","Kana","Khmr","Laoo",
"Latn",
"Mlym", "Mong",
- '\0'
+ NULL
};
i=0;
while(i<sizeof(testAbbr)/sizeof(UScriptCode)){
"Afak", "Jurc", "Mroo", "Nshu", "Sharada", "Sora_Sompeng", "Takri", "Tang", "Wole",
/* new in ICU 49 */
"Hluw", "Khoj", "Tirh",
+ /* new in ICU 52 */
+ "Aghb", "Mahj"
};
static const char* expectedShort[] = {
"Bali", "Batk", "Blis", "Brah", "Cham", "Cirt", "Cyrs", "Egyd", "Egyh", "Egyp",
"Afak", "Jurc", "Mroo", "Nshu", "Shrd", "Sora", "Takr", "Tang", "Wole",
/* new in ICU 49 */
"Hluw", "Khoj", "Tirh",
+ /* new in ICU 52 */
+ "Aghb", "Mahj"
};
int32_t j = 0;
if(LENGTHOF(expectedLong)!=(USCRIPT_CODE_LIMIT-USCRIPT_BALINESE)) {