OLD | NEW |
1 /******************************************************************** | 1 /******************************************************************** |
2 * Copyright (c) 1997-2014, International Business Machines | 2 * Copyright (c) 1997-2015, International Business Machines |
3 * Corporation and others. All Rights Reserved. | 3 * Corporation and others. All Rights Reserved. |
4 ********************************************************************/ | 4 ********************************************************************/ |
5 | 5 |
6 #include <string.h> | 6 #include <string.h> |
7 #include "unicode/utypes.h" | 7 #include "unicode/utypes.h" |
8 #include "unicode/uscript.h" | 8 #include "unicode/uscript.h" |
9 #include "unicode/uchar.h" | 9 #include "unicode/uchar.h" |
10 #include "cintltst.h" | 10 #include "cintltst.h" |
11 #include "cucdapi.h" | 11 #include "cucdapi.h" |
12 #include "cmemory.h" | 12 #include "cmemory.h" |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 * These script codes were originally added to ICU pre-3.6, so that ICU
would | 374 * These script codes were originally added to ICU pre-3.6, so that ICU
would |
375 * have all ISO 15924 script codes. ICU was then based on Unicode 4.1. | 375 * have all ISO 15924 script codes. ICU was then based on Unicode 4.1. |
376 * These script codes were added with only short names because we don't | 376 * These script codes were added with only short names because we don't |
377 * want to invent long names ourselves. | 377 * want to invent long names ourselves. |
378 * Unicode 5 and later encode some of these scripts and give them long n
ames. | 378 * Unicode 5 and later encode some of these scripts and give them long n
ames. |
379 * Whenever this happens, the long script names here need to be updated. | 379 * Whenever this happens, the long script names here need to be updated. |
380 */ | 380 */ |
381 static const char* expectedLong[] = { | 381 static const char* expectedLong[] = { |
382 "Balinese", "Batak", "Blis", "Brahmi", "Cham", "Cirt", "Cyrs", | 382 "Balinese", "Batak", "Blis", "Brahmi", "Cham", "Cirt", "Cyrs", |
383 "Egyd", "Egyh", "Egyptian_Hieroglyphs", | 383 "Egyd", "Egyh", "Egyptian_Hieroglyphs", |
384 "Geok", "Hans", "Hant", "Pahawh_Hmong", "Hung", "Inds", | 384 "Geok", "Hans", "Hant", "Pahawh_Hmong", "Old_Hungarian", "Inds", |
385 "Javanese", "Kayah_Li", "Latf", "Latg", | 385 "Javanese", "Kayah_Li", "Latf", "Latg", |
386 "Lepcha", "Linear_A", "Mandaic", "Maya", "Meroitic_Hieroglyphs", | 386 "Lepcha", "Linear_A", "Mandaic", "Maya", "Meroitic_Hieroglyphs", |
387 "Nko", "Old_Turkic", "Old_Permic", "Phags_Pa", "Phoenician", | 387 "Nko", "Old_Turkic", "Old_Permic", "Phags_Pa", "Phoenician", |
388 "Miao", "Roro", "Sara", "Syre", "Syrj", "Syrn", "Teng", "Vai", "Visp
", "Cuneiform", | 388 "Miao", "Roro", "Sara", "Syre", "Syrj", "Syrn", "Teng", "Vai", "Visp
", "Cuneiform", |
389 "Zxxx", "Unknown", | 389 "Zxxx", "Unknown", |
390 "Carian", "Jpan", "Tai_Tham", "Lycian", "Lydian", "Ol_Chiki", "Rejan
g", "Saurashtra", "Sgnw", "Sundanese", | 390 "Carian", "Jpan", "Tai_Tham", "Lycian", "Lydian", "Ol_Chiki", "Rejan
g", "Saurashtra", "SignWriting", "Sundanese", |
391 "Moon", "Meetei_Mayek", | 391 "Moon", "Meetei_Mayek", |
392 /* new in ICU 4.0 */ | 392 /* new in ICU 4.0 */ |
393 "Imperial_Aramaic", "Avestan", "Chakma", "Kore", | 393 "Imperial_Aramaic", "Avestan", "Chakma", "Kore", |
394 "Kaithi", "Manichaean", "Inscriptional_Pahlavi", "Psalter_Pahlavi",
"Phlv", | 394 "Kaithi", "Manichaean", "Inscriptional_Pahlavi", "Psalter_Pahlavi",
"Phlv", |
395 "Inscriptional_Parthian", "Samaritan", "Tai_Viet", | 395 "Inscriptional_Parthian", "Samaritan", "Tai_Viet", |
396 "Zmth", "Zsym", | 396 "Zmth", "Zsym", |
397 /* new in ICU 4.4 */ | 397 /* new in ICU 4.4 */ |
398 "Bamum", "Lisu", "Nkgb", "Old_South_Arabian", | 398 "Bamum", "Lisu", "Nkgb", "Old_South_Arabian", |
399 /* new in ICU 4.6 */ | 399 /* new in ICU 4.6 */ |
400 "Bassa_Vah", "Duployan", "Elbasan", "Grantha", "Kpel", | 400 "Bassa_Vah", "Duployan", "Elbasan", "Grantha", "Kpel", |
401 "Loma", "Mende_Kikakui", "Meroitic_Cursive", | 401 "Loma", "Mende_Kikakui", "Meroitic_Cursive", |
402 "Old_North_Arabian", "Nabataean", "Palmyrene", "Khudawadi", "Warang_
Citi", | 402 "Old_North_Arabian", "Nabataean", "Palmyrene", "Khudawadi", "Warang_
Citi", |
403 /* new in ICU 4.8 */ | 403 /* new in ICU 4.8 */ |
404 "Afak", "Jurc", "Mro", "Nshu", "Sharada", "Sora_Sompeng", "Takri", "
Tang", "Wole", | 404 "Afak", "Jurc", "Mro", "Nshu", "Sharada", "Sora_Sompeng", "Takri", "
Tang", "Wole", |
405 /* new in ICU 49 */ | 405 /* new in ICU 49 */ |
406 "Hluw", "Khojki", "Tirhuta", | 406 "Anatolian_Hieroglyphs", "Khojki", "Tirhuta", |
407 /* new in ICU 52 */ | 407 /* new in ICU 52 */ |
408 "Caucasian_Albanian", "Mahajani", | 408 "Caucasian_Albanian", "Mahajani", |
409 /* new in ICU 54 */ | 409 /* new in ICU 54 */ |
410 "Ahom", "Hatr", "Modi", "Mult", "Pau_Cin_Hau", "Siddham" | 410 "Ahom", "Hatran", "Modi", "Multani", "Pau_Cin_Hau", "Siddham" |
411 }; | 411 }; |
412 static const char* expectedShort[] = { | 412 static const char* expectedShort[] = { |
413 "Bali", "Batk", "Blis", "Brah", "Cham", "Cirt", "Cyrs", "Egyd", "Egy
h", "Egyp", | 413 "Bali", "Batk", "Blis", "Brah", "Cham", "Cirt", "Cyrs", "Egyd", "Egy
h", "Egyp", |
414 "Geok", "Hans", "Hant", "Hmng", "Hung", "Inds", "Java", "Kali", "Lat
f", "Latg", | 414 "Geok", "Hans", "Hant", "Hmng", "Hung", "Inds", "Java", "Kali", "Lat
f", "Latg", |
415 "Lepc", "Lina", "Mand", "Maya", "Mero", "Nkoo", "Orkh", "Perm", "Pha
g", "Phnx", | 415 "Lepc", "Lina", "Mand", "Maya", "Mero", "Nkoo", "Orkh", "Perm", "Pha
g", "Phnx", |
416 "Plrd", "Roro", "Sara", "Syre", "Syrj", "Syrn", "Teng", "Vaii", "Vis
p", "Xsux", | 416 "Plrd", "Roro", "Sara", "Syre", "Syrj", "Syrn", "Teng", "Vaii", "Vis
p", "Xsux", |
417 "Zxxx", "Zzzz", | 417 "Zxxx", "Zzzz", |
418 "Cari", "Jpan", "Lana", "Lyci", "Lydi", "Olck", "Rjng", "Saur", "Sgn
w", "Sund", | 418 "Cari", "Jpan", "Lana", "Lyci", "Lydi", "Olck", "Rjng", "Saur", "Sgn
w", "Sund", |
419 "Moon", "Mtei", | 419 "Moon", "Mtei", |
420 /* new in ICU 4.0 */ | 420 /* new in ICU 4.0 */ |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 if(FALSE!=u_getPropertyValueEnum(UCHAR_ALPHABETIC, falseValues[i])) { | 703 if(FALSE!=u_getPropertyValueEnum(UCHAR_ALPHABETIC, falseValues[i])) { |
704 log_data_err("u_getPropertyValueEnum(UCHAR_ALPHABETIC, \"%s\")!=FALS
E (Are you missing data?)\n", falseValues[i]); | 704 log_data_err("u_getPropertyValueEnum(UCHAR_ALPHABETIC, \"%s\")!=FALS
E (Are you missing data?)\n", falseValues[i]); |
705 } | 705 } |
706 } | 706 } |
707 for(i=0; i<UPRV_LENGTHOF(trueValues); ++i) { | 707 for(i=0; i<UPRV_LENGTHOF(trueValues); ++i) { |
708 if(TRUE!=u_getPropertyValueEnum(UCHAR_ALPHABETIC, trueValues[i])) { | 708 if(TRUE!=u_getPropertyValueEnum(UCHAR_ALPHABETIC, trueValues[i])) { |
709 log_data_err("u_getPropertyValueEnum(UCHAR_ALPHABETIC, \"%s\")!=TRUE
(Are you missing data?)\n", trueValues[i]); | 709 log_data_err("u_getPropertyValueEnum(UCHAR_ALPHABETIC, \"%s\")!=TRUE
(Are you missing data?)\n", trueValues[i]); |
710 } | 710 } |
711 } | 711 } |
712 } | 712 } |
OLD | NEW |