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 #include "sky/engine/config.h" | |
36 #include "sky/engine/platform/text/UnicodeRange.h" | 35 #include "sky/engine/platform/text/UnicodeRange.h" |
37 | 36 |
38 namespace blink { | 37 namespace blink { |
39 | 38 |
40 // This table depends on unicode range definitions. | 39 // This table depends on unicode range definitions. |
41 // Each item's index must correspond to a unicode range value | 40 // Each item's index must correspond to a unicode range value |
42 // eg. x-cyrillic = LangGroupTable[cRangeCyrillic] | 41 // eg. x-cyrillic = LangGroupTable[cRangeCyrillic] |
43 static const char* const gUnicodeRangeToLangGroupTable[] = | 42 static const char* const gUnicodeRangeToLangGroupTable[] = |
44 { | 43 { |
45 "x-cyrillic", | 44 "x-cyrillic", |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 } | 452 } |
454 | 453 |
455 const char* langGroupFromUnicodeRange(unsigned char unicodeRange) | 454 const char* langGroupFromUnicodeRange(unsigned char unicodeRange) |
456 { | 455 { |
457 if (cRangeSpecificItemNum > unicodeRange) | 456 if (cRangeSpecificItemNum > unicodeRange) |
458 return gUnicodeRangeToLangGroupTable[unicodeRange]; | 457 return gUnicodeRangeToLangGroupTable[unicodeRange]; |
459 return 0; | 458 return 0; |
460 } | 459 } |
461 | 460 |
462 } | 461 } |
OLD | NEW |