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

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: a bunch of sign conversions Created 7 years, 12 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
« src/runtime.cc ('K') | « 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:
« src/runtime.cc ('K') | « src/string-search.h ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698