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

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

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/text/UnicodeRange.h ('k') | Source/platform/text/UnicodeUtilities.h » ('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 17 matching lines...) Expand all
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 "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 blink {
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* const 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",
(...skipping 404 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/UnicodeRange.h ('k') | Source/platform/text/UnicodeUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698