OLD | NEW |
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 251 |
252 // For 16 bit strings, we use a TextBreakIterator. | 252 // For 16 bit strings, we use a TextBreakIterator. |
253 TextBreakIterator* m_iterator; | 253 TextBreakIterator* m_iterator; |
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 } | 261 } // namespace blink |
262 | 262 |
263 #endif | 263 #endif |
OLD | NEW |