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

Unified Diff: src/unicode.h

Issue 11759008: Introduce ENABLE_LATIN_1 compile flag (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix FilterASCII Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/string-search.h ('k') | src/utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/unicode.h
diff --git a/src/unicode.h b/src/unicode.h
index 626d9888234ae13d396c1b0e870aa40713bebdaa..61dbab4f00c2088d724c434957ddb1a94736054b 100644
--- a/src/unicode.h
+++ b/src/unicode.h
@@ -133,6 +133,14 @@ class Utf16 {
}
};
+class Latin1 {
+ public:
+#ifndef ENABLE_LATIN_1
+ static const unsigned kMaxChar = 0x7f;
+#else
+ static const unsigned kMaxChar = 0xff;
+#endif
+};
class Utf8 {
public:
« no previous file with comments | « src/string-search.h ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698