ICU-4078 There is no need to use the default locale for foldCase as stated by Markus.

X-SVN-Rev: 16420
This commit is contained in:
George Rhoten 2004-10-07 22:11:34 +00:00
parent be8e4abcfe
commit 19e709ced5

View file

@ -131,7 +131,10 @@ UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale) {
UnicodeString &
UnicodeString::foldCase(uint32_t options) {
return caseMap(0, Locale::getDefault(), options, FOLD_CASE);
/* The Locale parameter isn't used.
We pick a random non-case specific locale that is created cheaply.
*/
return caseMap(0, Locale::getEnglish(), options, FOLD_CASE);
}
UnicodeString &