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

Side by Side Diff: Source/platform/fonts/UTF16TextIterator.h

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 7 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) 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
(...skipping 27 matching lines...) Expand all
38 UTF16TextIterator(const UChar*, int offset, int endOffset, int length); 38 UTF16TextIterator(const UChar*, int offset, int endOffset, int length);
39 39
40 inline bool consume(UChar32& character) 40 inline bool consume(UChar32& character)
41 { 41 {
42 if (m_offset >= m_endOffset) 42 if (m_offset >= m_endOffset)
43 return false; 43 return false;
44 44
45 character = *m_characters; 45 character = *m_characters;
46 m_currentGlyphLength = 1; 46 m_currentGlyphLength = 1;
47 47
48 if (character < HiraganaLetterSmallA || consumeSlowCase(character)) { 48 if (character < hiraganaLetterSmallACharacter || consumeSlowCase(charact er)) {
49 if (U_GET_GC_MASK(character) & U_GC_M_MASK) 49 if (U_GET_GC_MASK(character) & U_GC_M_MASK)
50 consumeMultipleUChar(); 50 consumeMultipleUChar();
51 return true; 51 return true;
52 } 52 }
53 53
54 return false; 54 return false;
55 } 55 }
56 56
57 void advance() 57 void advance()
58 { 58 {
(...skipping 16 matching lines...) Expand all
75 const UChar* m_characters; 75 const UChar* m_characters;
76 const UChar* m_charactersEnd; 76 const UChar* m_charactersEnd;
77 int m_offset; 77 int m_offset;
78 int m_endOffset; 78 int m_endOffset;
79 unsigned m_currentGlyphLength; 79 unsigned m_currentGlyphLength;
80 }; 80 };
81 81
82 } 82 }
83 83
84 #endif 84 #endif
OLDNEW
« no previous file with comments | « Source/platform/fonts/SimpleFontData.cpp ('k') | Source/platform/fonts/shaping/HarfBuzzShaper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698