| Index: Source/wtf/text/StringImpl.cpp
|
| diff --git a/Source/wtf/text/StringImpl.cpp b/Source/wtf/text/StringImpl.cpp
|
| index 14fb36d6564cc40d8562c602b1b1fbdf9d4cea12..7f674c7a05c573e6cdcf8510ebd55ebb6587d745 100644
|
| --- a/Source/wtf/text/StringImpl.cpp
|
| +++ b/Source/wtf/text/StringImpl.cpp
|
| @@ -2094,4 +2094,21 @@ size_t StringImpl::sizeInBytes() const
|
| return size + sizeof(*this);
|
| }
|
|
|
| +UChar32 toUpper(UChar32 c, const AtomicString& localeIdentifier)
|
| +{
|
| + if (!localeIdentifier.isNull()) {
|
| + if (localeIdMatchesLang(localeIdentifier, "tr") || localeIdMatchesLang(localeIdentifier, "az")) {
|
| + if (c == 'i')
|
| + return latinCapitalLetterIWithDotAbove;
|
| + if (c == latinSmallLetterDotlessI)
|
| + return 'I';
|
| + } else if (localeIdMatchesLang(localeIdentifier, "lt")) {
|
| + // TODO(rob.buis) implement upper-casing rules for lt
|
| + // like in StringImpl::upper(locale).
|
| + }
|
| + }
|
| +
|
| + return toUpper(c);
|
| +}
|
| +
|
| } // namespace WTF
|
|
|