Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: Source/platform/text/UnicodeRange.cpp

Issue 49093004: Move more arrays of strings to shareable memory (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/platform/text/TextBreakIteratorICU.cpp ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/platform/text/TextBreakIteratorICU.cpp ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698