X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/2ca993e82fb37b597a3c73ecd1586a139a6579c5..9f1b115531acc2f3640893f76e8bcf6680033062:/icuSources/test/cintltst/cucdapi.c?ds=sidebyside diff --git a/icuSources/test/cintltst/cucdapi.c b/icuSources/test/cintltst/cucdapi.c index d1e1b0f6..3debd2e4 100644 --- a/icuSources/test/cintltst/cucdapi.c +++ b/icuSources/test/cintltst/cucdapi.c @@ -1,3 +1,5 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /******************************************************************** * Copyright (c) 1997-2016, International Business Machines * Corporation and others. All Rights Reserved. @@ -279,7 +281,7 @@ void TestUScriptCodeAPI(){ 0x0001D1AA, /* USCRIPT_INHERITED*/ 0x00020000, /* USCRIPT_HAN*/ 0x00000D02, /* USCRIPT_MALAYALAM*/ - 0x00000D00, /* USCRIPT_UNKNOWN (new Zzzz value in Unicode 5.0) */ + 0x00050005, /* USCRIPT_UNKNOWN (new Zzzz value in Unicode 5.0) */ 0x00000000, /* USCRIPT_COMMON*/ 0x0001D169, /* USCRIPT_INHERITED*/ 0x0001D182, /* USCRIPT_INHERITED*/ @@ -401,13 +403,17 @@ void TestUScriptCodeAPI(){ "Loma", "Mende_Kikakui", "Meroitic_Cursive", "Old_North_Arabian", "Nabataean", "Palmyrene", "Khudawadi", "Warang_Citi", /* new in ICU 4.8 */ - "Afak", "Jurc", "Mro", "Nshu", "Sharada", "Sora_Sompeng", "Takri", "Tang", "Wole", + "Afak", "Jurc", "Mro", "Nushu", "Sharada", "Sora_Sompeng", "Takri", "Tangut", "Wole", /* new in ICU 49 */ "Anatolian_Hieroglyphs", "Khojki", "Tirhuta", /* new in ICU 52 */ "Caucasian_Albanian", "Mahajani", /* new in ICU 54 */ - "Ahom", "Hatran", "Modi", "Multani", "Pau_Cin_Hau", "Siddham" + "Ahom", "Hatran", "Modi", "Multani", "Pau_Cin_Hau", "Siddham", + // new in ICU 58 + "Adlam", "Bhaiksuki", "Marchen", "Newa", "Osage", "Hanb", "Jamo", "Zsye", + // new in ICU 60 + "Masaram_Gondi", "Soyombo", "Zanabazar_Square" }; static const char* expectedShort[] = { "Bali", "Batk", "Blis", "Brah", "Cham", "Cirt", "Cyrs", "Egyd", "Egyh", "Egyp", @@ -433,7 +439,11 @@ void TestUScriptCodeAPI(){ /* new in ICU 52 */ "Aghb", "Mahj", /* new in ICU 54 */ - "Ahom", "Hatr", "Modi", "Mult", "Pauc", "Sidd" + "Ahom", "Hatr", "Modi", "Mult", "Pauc", "Sidd", + // new in ICU 58 + "Adlm", "Bhks", "Marc", "Newa", "Osge", "Hanb", "Jamo", "Zsye", + // new in ICU 60 + "Gonm", "Soyo", "Zanb" }; int32_t j = 0; if(UPRV_LENGTHOF(expectedLong)!=(USCRIPT_CODE_LIMIT-USCRIPT_BALINESE)) { @@ -528,7 +538,7 @@ void TestHasScript() { } } -static UBool scriptsContain(int32_t scripts[], int32_t length, int32_t script) { +static UBool scriptsContain(UScriptCode scripts[], int32_t length, UScriptCode script) { UBool contain=FALSE; int32_t prev=-1, i; for(i=0; i