2002-03-13 19:22:05 +00:00
|
|
|
|
//*******************************************************************************
|
|
|
|
|
//*
|
2006-07-28 22:43:40 +00:00
|
|
|
|
//* Copyright (C) 2002-2006, International Business Machines
|
2002-03-13 19:22:05 +00:00
|
|
|
|
//* Corporation and others. All Rights Reserved.
|
|
|
|
|
//*
|
|
|
|
|
//*******************************************************************************
|
|
|
|
|
|
2005-11-29 00:10:07 +00:00
|
|
|
|
casing:table(nofallback) {
|
2002-06-04 08:06:49 +00:00
|
|
|
|
Info {
|
2005-05-20 17:31:12 +00:00
|
|
|
|
Description { "This is test data file for string casing." }
|
2002-05-10 04:42:16 +00:00
|
|
|
|
|
2005-05-20 17:31:12 +00:00
|
|
|
|
LongDescription {
|
|
|
|
|
"each item is an array with\n"
|
|
|
|
|
"input string, result string, locale ID[, break iterator]\n"
|
|
|
|
|
"the break iterator (only for titlecasing) is specified as an int, same as in UBreakIteratorType:\n"
|
|
|
|
|
"0=UBRK_CHARACTER 1=UBRK_WORD 2=UBRK_LINE 3=UBRK_SENTENCE 4=UBRK_TITLE -1=default\n"
|
|
|
|
|
}
|
2002-06-04 08:06:49 +00:00
|
|
|
|
}
|
2002-05-10 04:42:16 +00:00
|
|
|
|
TestData {
|
2005-05-20 17:31:12 +00:00
|
|
|
|
lowercasing {
|
|
|
|
|
Headers { "Input", "Output", "Locale" }
|
|
|
|
|
Cases {
|
|
|
|
|
{ " tHe QUIcK bRoWn", " the quick brown", "" },
|
|
|
|
|
{ "aBIΣßΣ/𐐅", "abiσßς/𐐭", "" },
|
|
|
|
|
{ "aBIΣßΣ/𐐅", "abıσßς/𐐭", "tur" } // tur: 3-letter code for Turkish
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
uppercasing {
|
|
|
|
|
Headers { "Input", "Output", "Locale" }
|
|
|
|
|
Cases {
|
|
|
|
|
{ " tHe QUIcK bRoWn", " THE QUICK BROWN", "" },
|
|
|
|
|
{ "aBiσßς/ffi𐐭", "ABIΣSSΣ/FFI𐐅", "" },
|
|
|
|
|
{ "aBiσßς/ffi𐐭", "ABİΣSSΣ/FFI𐐅", "az" } // az same casing as tr
|
|
|
|
|
}
|
|
|
|
|
}
|
2002-05-10 04:42:16 +00:00
|
|
|
|
titlecasing {
|
2002-06-04 08:06:49 +00:00
|
|
|
|
Headers { "Input", "Output", "Locale", "Type" }
|
|
|
|
|
Cases {
|
2006-07-28 22:43:40 +00:00
|
|
|
|
{ "ʻaMeLikA huI Pū ʻʻʻiA", "ʻAmelika Hui Pū ʻʻʻIa", "", "-1" }, // titlecase first _cased_ letter, j4933
|
2002-05-10 04:42:16 +00:00
|
|
|
|
{ " tHe QUIcK bRoWn", " The Quick Brown", "", "4" },
|
|
|
|
|
{ "DŽDždžLJLjljNJNjnj", "DžDžDžLjLjLjNjNjNj", "", "0" }, // UBRK_CHARACTER
|
|
|
|
|
{ "ljubav ljubav", "Ljubav Ljubav", "", "-1" }, // Lj vs. L+j
|
|
|
|
|
{ "'oH dOn'T tItLeCaSe AfTeR lEtTeR+'", "'Oh Don't Titlecase After Letter+'", "", "-1" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2002-03-13 19:22:05 +00:00
|
|
|
|
}
|