| 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 22 matching lines...) Expand all Loading... |
| 33 */ | 33 */ |
| 34 | 34 |
| 35 #include "config.h" | 35 #include "config.h" |
| 36 #include "platform/text/UnicodeRange.h" | 36 #include "platform/text/UnicodeRange.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 // This table depends on unicode range definitions. | 40 // This table depends on unicode range definitions. |
| 41 // Each item's index must correspond to a unicode range value | 41 // Each item's index must correspond to a unicode range value |
| 42 // eg. x-cyrillic = LangGroupTable[cRangeCyrillic] | 42 // eg. x-cyrillic = LangGroupTable[cRangeCyrillic] |
| 43 static const char* gUnicodeRangeToLangGroupTable[] = | 43 static const char* const gUnicodeRangeToLangGroupTable[] = |
| 44 { | 44 { |
| 45 "x-cyrillic", | 45 "x-cyrillic", |
| 46 "el", | 46 "el", |
| 47 "tr", | 47 "tr", |
| 48 "he", | 48 "he", |
| 49 "ar", | 49 "ar", |
| 50 "x-baltic", | 50 "x-baltic", |
| 51 "th", | 51 "th", |
| 52 "ko", | 52 "ko", |
| 53 "ja", | 53 "ja", |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 } | 453 } |
| 454 | 454 |
| 455 const char* langGroupFromUnicodeRange(unsigned char unicodeRange) | 455 const char* langGroupFromUnicodeRange(unsigned char unicodeRange) |
| 456 { | 456 { |
| 457 if (cRangeSpecificItemNum > unicodeRange) | 457 if (cRangeSpecificItemNum > unicodeRange) |
| 458 return gUnicodeRangeToLangGroupTable[unicodeRange]; | 458 return gUnicodeRangeToLangGroupTable[unicodeRange]; |
| 459 return 0; | 459 return 0; |
| 460 } | 460 } |
| 461 | 461 |
| 462 } | 462 } |
| OLD | NEW |