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

Unified Diff: runtime/vm/unicode.h

Issue 683433003: Integrate the Irregexp Regular Expression Engine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: more comments Created 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/unicode.h
diff --git a/runtime/vm/unicode.h b/runtime/vm/unicode.h
index fd7649c5e9558edaedde8a72755246f90de760ab..e06f1f933f66ff333744d773456aa7d310a05937 100644
--- a/runtime/vm/unicode.h
+++ b/runtime/vm/unicode.h
@@ -154,9 +154,9 @@ class Utf16 : AllStatic {
// Encodes a single code point.
static void Encode(int32_t codepoint, uint16_t* dst);
- private:
static const int32_t kMaxCodeUnit = 0xFFFF;
+ private:
static const int32_t kLeadSurrogateOffset = (0xD800 - (0x10000 >> 10));
static const int32_t kSurrogateOffset = (0x10000 - (0xD800 << 10) - 0xDC00);

Powered by Google App Engine
This is Rietveld 408576698