| 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 14 matching lines...) Expand all Loading... |
| 25 * applicable instead of those above. If you wish to allow use of your | 25 * applicable instead of those above. If you wish to allow use of your |
| 26 * version of this file only under the terms of one of those two | 26 * version of this file only under the terms of one of those two |
| 27 * licenses (the MPL or the GPL) and not to allow others to use your | 27 * licenses (the MPL or the GPL) and not to allow others to use your |
| 28 * version of this file under the LGPL, indicate your decision by | 28 * version of this file under the LGPL, indicate your decision by |
| 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 SKY_ENGINE_PLATFORM_TEXT_UNICODERANGE_H_ |
| 36 #define UnicodeRange_h | 36 #define SKY_ENGINE_PLATFORM_TEXT_UNICODERANGE_H_ |
| 37 | 37 |
| 38 #include "sky/engine/platform/PlatformExport.h" | 38 #include "sky/engine/platform/PlatformExport.h" |
| 39 #include "sky/engine/wtf/unicode/Unicode.h" | 39 #include "sky/engine/wtf/unicode/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. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const unsigned char cRangeTableBase = 128; // values over 127 are reserved f
or internal use only | 109 const unsigned char cRangeTableBase = 128; // values over 127 are reserved f
or internal use only |
| 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 // SKY_ENGINE_PLATFORM_TEXT_UNICODERANGE_H_ |
| OLD | NEW |