OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Computer, Inc. | 2 * Copyright (C) 2007 Apple Computer, Inc. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 20 matching lines...) Expand all Loading... |
31 * If you do not delete the provisions above, a recipient may use your | 31 * If you do not delete the provisions above, a recipient may use your |
32 * version of this file under any of the LGPL, the MPL or the GPL. | 32 * version of this file under any of the LGPL, the MPL or the GPL. |
33 */ | 33 */ |
34 | 34 |
35 #ifndef UnicodeRange_h | 35 #ifndef UnicodeRange_h |
36 #define UnicodeRange_h | 36 #define UnicodeRange_h |
37 | 37 |
38 #include "platform/PlatformExport.h" | 38 #include "platform/PlatformExport.h" |
39 #include "wtf/unicode/Unicode.h" | 39 #include "wtf/unicode/Unicode.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace blink { |
42 | 42 |
43 // The following constants define unicode subranges | 43 // The following constants define unicode subranges |
44 // values below cRangeNum must be continuous so that we can map to | 44 // values below cRangeNum must be continuous so that we can map to |
45 // a lang group directly. | 45 // a lang group directly. |
46 // All ranges we care about should fit within 32 bits. | 46 // All ranges we care about should fit within 32 bits. |
47 | 47 |
48 // Frequently used range definitions | 48 // Frequently used range definitions |
49 const unsigned char cRangeCyrillic = 0; | 49 const unsigned char cRangeCyrillic = 0; |
50 const unsigned char cRangeGreek = 1; | 50 const unsigned char cRangeGreek = 1; |
51 const unsigned char cRangeTurkish = 2; | 51 const unsigned char cRangeTurkish = 2; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 const unsigned char cRangeTertiaryTable = 145; // leave room for 16 subtable
indices (cRangeTableBase + 1 .. cRangeTableBase + 16) | 110 const unsigned char cRangeTertiaryTable = 145; // leave room for 16 subtable
indices (cRangeTableBase + 1 .. cRangeTableBase + 16) |
111 | 111 |
112 | 112 |
113 | 113 |
114 PLATFORM_EXPORT unsigned findCharUnicodeRange(UChar32); | 114 PLATFORM_EXPORT unsigned findCharUnicodeRange(UChar32); |
115 PLATFORM_EXPORT const char* langGroupFromUnicodeRange(unsigned char unicodeRange
); | 115 PLATFORM_EXPORT const char* langGroupFromUnicodeRange(unsigned char unicodeRange
); |
116 | 116 |
117 } | 117 } |
118 | 118 |
119 #endif // UnicodeRange_h | 119 #endif // UnicodeRange_h |
OLD | NEW |