Chromium Code Reviews| Index: Source/wtf/text/StringImpl.cpp |
| diff --git a/Source/wtf/text/StringImpl.cpp b/Source/wtf/text/StringImpl.cpp |
| index 14fb36d6564cc40d8562c602b1b1fbdf9d4cea12..859ceea99024e6516b9a52db9fb154b37d008599 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")) { |
| + // TODO(rob.buis) |
|
tkent
2015/05/31 23:19:03
Please add information about what we need.
|
| + } |
| + } |
| + |
| + return toUpper(c); |
| +} |
| + |
| } // namespace WTF |