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 18 matching lines...) Expand all Loading... |
29 * deletingthe provisions above and replace them with the notice and | 29 * deletingthe provisions above and replace them with the notice and |
30 * other provisions required by the MPL or the GPL, as the case may be. | 30 * other provisions required by the MPL or the GPL, as the case may be. |
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/text/Unicode.h" | 39 #include "platform/wtf/text/Unicode.h" |
40 | 40 |
41 namespace blink { | 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; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 128; // values over 127 are reserved for internal use only | 111 128; // values over 127 are reserved for internal use only |
112 const unsigned char cRangeTertiaryTable = 145; // leave room for 16 subtable | 112 const unsigned char cRangeTertiaryTable = 145; // leave room for 16 subtable |
113 // indices (cRangeTableBase + 1 | 113 // indices (cRangeTableBase + 1 |
114 // .. cRangeTableBase + 16) | 114 // .. cRangeTableBase + 16) |
115 | 115 |
116 PLATFORM_EXPORT unsigned findCharUnicodeRange(UChar32); | 116 PLATFORM_EXPORT unsigned findCharUnicodeRange(UChar32); |
117 | 117 |
118 } // namespace blink | 118 } // namespace blink |
119 | 119 |
120 #endif // UnicodeRange_h | 120 #endif // UnicodeRange_h |
OLD | NEW |