| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 18 * | 18 * |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef UTF16TextIterator_h | 21 #ifndef UTF16TextIterator_h |
| 22 #define UTF16TextIterator_h | 22 #define UTF16TextIterator_h |
| 23 | 23 |
| 24 #include "platform/PlatformExport.h" | 24 #include "platform/PlatformExport.h" |
| 25 #include "wtf/Allocator.h" | 25 #include "platform/wtf/Allocator.h" |
| 26 #include "wtf/text/CharacterNames.h" | 26 #include "platform/wtf/text/CharacterNames.h" |
| 27 #include "wtf/text/WTFString.h" | 27 #include "platform/wtf/text/WTFString.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class PLATFORM_EXPORT UTF16TextIterator { | 31 class PLATFORM_EXPORT UTF16TextIterator { |
| 32 USING_FAST_MALLOC(UTF16TextIterator); | 32 USING_FAST_MALLOC(UTF16TextIterator); |
| 33 WTF_MAKE_NONCOPYABLE(UTF16TextIterator); | 33 WTF_MAKE_NONCOPYABLE(UTF16TextIterator); |
| 34 | 34 |
| 35 public: | 35 public: |
| 36 // The passed in UChar pointer starts at 'offset'. The iterator operates on | 36 // The passed in UChar pointer starts at 'offset'. The iterator operates on |
| 37 // the range [offset, endOffset]. | 37 // the range [offset, endOffset]. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 68 const UChar* m_characters; | 68 const UChar* m_characters; |
| 69 const UChar* m_charactersEnd; | 69 const UChar* m_charactersEnd; |
| 70 int m_offset; | 70 int m_offset; |
| 71 int m_length; | 71 int m_length; |
| 72 unsigned m_currentGlyphLength; | 72 unsigned m_currentGlyphLength; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| 76 | 76 |
| 77 #endif | 77 #endif |
| OLD | NEW |