]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/testdata/casing.txt
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / test / testdata / casing.txt
CommitLineData
b75a7d8f
A
1//*******************************************************************************
2//*
73c04bcf 3//* Copyright (C) 2002-2006, International Business Machines
b75a7d8f
A
4//* Corporation and others. All Rights Reserved.
5//*
6//*******************************************************************************
7
73c04bcf 8casing:table(nofallback) {
b75a7d8f 9 Info {
73c04bcf 10 Description { "This is test data file for string casing." }
b75a7d8f 11
73c04bcf
A
12 LongDescription {
13 "each item is an array with\n"
14 "input string, result string, locale ID[, break iterator]\n"
15 "the break iterator (only for titlecasing) is specified as an int, same as in UBreakIteratorType:\n"
16 "0=UBRK_CHARACTER 1=UBRK_WORD 2=UBRK_LINE 3=UBRK_SENTENCE 4=UBRK_TITLE -1=default\n"
17 }
b75a7d8f
A
18 }
19 TestData {
73c04bcf
A
20 lowercasing {
21 Headers { "Input", "Output", "Locale" }
22 Cases {
23 { " tHe QUIcK bRoWn", " the quick brown", "" },
24 { "aBIΣßΣ/񟿿𐐅", "abiσßς/񟿿𐐭", "" },
25 { "aBIΣßΣ/񟿿𐐅", "abıσßς/񟿿𐐭", "tur" } // tur: 3-letter code for Turkish
26 }
27 }
28 uppercasing {
29 Headers { "Input", "Output", "Locale" }
30 Cases {
31 { " tHe QUIcK bRoWn", " THE QUICK BROWN", "" },
32 { "aBiσßς/ffi񟿿𐐭", "ABIΣSSΣ/FFI񟿿𐐅", "" },
33 { "aBiσßς/ffi񟿿𐐭", "ABİΣSSΣ/FFI񟿿𐐅", "az" } // az same casing as tr
34 }
35 }
b75a7d8f
A
36 titlecasing {
37 Headers { "Input", "Output", "Locale", "Type" }
38 Cases {
73c04bcf 39 { "ʻaMeLikA huI Pū ʻʻʻiA", "ʻAmelika Hui Pū ʻʻʻIa", "", "-1" }, // titlecase first _cased_ letter, j4933
b75a7d8f
A
40 { " tHe QUIcK bRoWn", " The Quick Brown", "", "4" },
41 { "DŽDždžLJLjljNJNjnj", "DžDžDžLjLjLjNjNjNj", "", "0" }, // UBRK_CHARACTER
42 { "ljubav ljubav", "Ljubav Ljubav", "", "-1" }, // Lj vs. L+j
43 { "'oH dOn'T tItLeCaSe AfTeR lEtTeR+'", "'Oh Don't Titlecase After Letter+'", "", "-1" }
44 }
45 }
46 }
47}