| Index: Source/wtf/text/StringImpl.cpp
|
| diff --git a/Source/wtf/text/StringImpl.cpp b/Source/wtf/text/StringImpl.cpp
|
| index 14fb36d6564cc40d8562c602b1b1fbdf9d4cea12..336ee2e653d299090f7339dc2b95eafdc2da7b3d 100644
|
| --- a/Source/wtf/text/StringImpl.cpp
|
| +++ b/Source/wtf/text/StringImpl.cpp
|
| @@ -2094,4 +2094,20 @@ 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")) {
|
| + // FIXME: Implement
|
| + }
|
| + }
|
| +
|
| + return toUpper(c);
|
| +}
|
| +
|
| } // namespace WTF
|
|
|