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

Side by Side Diff: third_party/WebKit/Source/platform/text/TextBreakIterator.h

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 years, 9 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) 2006 Lars Knoll <lars@trolltech.com> 2 * Copyright (C) 2006 Lars Knoll <lars@trolltech.com>
3 * Copyright (C) 2007, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2011, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 { 77 {
78 resetPriorContext(); 78 resetPriorContext();
79 } 79 }
80 80
81 ~LazyLineBreakIterator() 81 ~LazyLineBreakIterator()
82 { 82 {
83 if (m_iterator) 83 if (m_iterator)
84 releaseLineBreakIterator(m_iterator); 84 releaseLineBreakIterator(m_iterator);
85 } 85 }
86 86
87 String string() const { return m_string; } 87 String getString() const { return m_string; }
88 88
89 UChar lastCharacter() const 89 UChar lastCharacter() const
90 { 90 {
91 static_assert(WTF_ARRAY_LENGTH(m_priorContext) == 2, "TextBreakIterator has unexpected prior context length"); 91 static_assert(WTF_ARRAY_LENGTH(m_priorContext) == 2, "TextBreakIterator has unexpected prior context length");
92 return m_priorContext[1]; 92 return m_priorContext[1];
93 } 93 }
94 94
95 UChar secondToLastCharacter() const 95 UChar secondToLastCharacter() const
96 { 96 {
97 static_assert(WTF_ARRAY_LENGTH(m_priorContext) == 2, "TextBreakIterator has unexpected prior context length"); 97 static_assert(WTF_ARRAY_LENGTH(m_priorContext) == 2, "TextBreakIterator has unexpected prior context length");
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 }; 254 };
255 255
256 // Counts the number of grapheme clusters. A surrogate pair or a sequence 256 // Counts the number of grapheme clusters. A surrogate pair or a sequence
257 // of a non-combining character and following combining characters is 257 // of a non-combining character and following combining characters is
258 // counted as 1 grapheme cluster. 258 // counted as 1 grapheme cluster.
259 PLATFORM_EXPORT unsigned numGraphemeClusters(const String&); 259 PLATFORM_EXPORT unsigned numGraphemeClusters(const String&);
260 260
261 } // namespace blink 261 } // namespace blink
262 262
263 #endif 263 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/PlatformLocale.cpp ('k') | third_party/WebKit/Source/web/DateTimeChooserImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698