| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef TextBreakIterator_h | 22 #ifndef TextBreakIterator_h |
| 23 #define TextBreakIterator_h | 23 #define TextBreakIterator_h |
| 24 | 24 |
| 25 #include "platform/PlatformExport.h" | 25 #include "platform/PlatformExport.h" |
| 26 #include "wtf/text/AtomicString.h" | 26 #include "platform/wtf/text/AtomicString.h" |
| 27 #include "wtf/text/Unicode.h" | 27 #include "platform/wtf/text/Unicode.h" |
| 28 | 28 |
| 29 #include <unicode/brkiter.h> | 29 #include <unicode/brkiter.h> |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 typedef icu::BreakIterator TextBreakIterator; | 33 typedef icu::BreakIterator TextBreakIterator; |
| 34 | 34 |
| 35 // Note: The returned iterator is good only until you get another iterator, with | 35 // Note: The returned iterator is good only until you get another iterator, with |
| 36 // the exception of acquireLineBreakIterator. | 36 // the exception of acquireLineBreakIterator. |
| 37 | 37 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 // Counts the number of grapheme clusters. A surrogate pair or a sequence | 275 // Counts the number of grapheme clusters. A surrogate pair or a sequence |
| 276 // of a non-combining character and following combining characters is | 276 // of a non-combining character and following combining characters is |
| 277 // counted as 1 grapheme cluster. | 277 // counted as 1 grapheme cluster. |
| 278 PLATFORM_EXPORT unsigned numGraphemeClusters(const String&); | 278 PLATFORM_EXPORT unsigned numGraphemeClusters(const String&); |
| 279 | 279 |
| 280 } // namespace blink | 280 } // namespace blink |
| 281 | 281 |
| 282 #endif | 282 #endif |
| OLD | NEW |