Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Side by Side Diff: Source/wtf/text/StringImpl.h

Issue 1135003004: Make small-caps work correctly with tr locale (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 return c <= 0x7F ? WTF::isASCIISpace(c) : WTF::Unicode::direction(c) == WTF: :Unicode::WhiteSpaceNeutral; 749 return c <= 0x7F ? WTF::isASCIISpace(c) : WTF::Unicode::direction(c) == WTF: :Unicode::WhiteSpaceNeutral;
750 } 750 }
751 751
752 inline PassRefPtr<StringImpl> StringImpl::isolatedCopy() const 752 inline PassRefPtr<StringImpl> StringImpl::isolatedCopy() const
753 { 753 {
754 if (is8Bit()) 754 if (is8Bit())
755 return create(characters8(), m_length); 755 return create(characters8(), m_length);
756 return create(characters16(), m_length); 756 return create(characters16(), m_length);
757 } 757 }
758 758
759 WTF_EXPORT UChar32 toUpper(UChar32, const AtomicString& localeIdentifier);
tkent 2015/05/28 00:38:26 This function needs a documentation. StringImpl.{
rwlbuis 2015/05/28 23:03:08 Unfortunately I didn't find a place. It is especia
tkent 2015/05/29 05:49:50 Let's put it here, and add TODO(rub.buis) about fi
760
759 struct StringHash; 761 struct StringHash;
760 762
761 // StringHash is the default hash for StringImpl* and RefPtr<StringImpl> 763 // StringHash is the default hash for StringImpl* and RefPtr<StringImpl>
762 template<typename T> struct DefaultHash; 764 template<typename T> struct DefaultHash;
763 template<> struct DefaultHash<StringImpl*> { 765 template<> struct DefaultHash<StringImpl*> {
764 typedef StringHash Hash; 766 typedef StringHash Hash;
765 }; 767 };
766 template<> struct DefaultHash<RefPtr<StringImpl>> { 768 template<> struct DefaultHash<RefPtr<StringImpl>> {
767 typedef StringHash Hash; 769 typedef StringHash Hash;
768 }; 770 };
769 771
770 } 772 }
771 773
772 using WTF::StringImpl; 774 using WTF::StringImpl;
773 using WTF::equal; 775 using WTF::equal;
774 using WTF::equalNonNull; 776 using WTF::equalNonNull;
775 using WTF::TextCaseSensitivity; 777 using WTF::TextCaseSensitivity;
776 using WTF::TextCaseSensitive; 778 using WTF::TextCaseSensitive;
777 using WTF::TextCaseInsensitive; 779 using WTF::TextCaseInsensitive;
778 780
779 #endif 781 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698