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

Unified Diff: sdk/lib/core/uri.dart

Issue 344803002: Fix bug in gen-delims table. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix lookup function. Created 6 years, 6 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 | « no previous file | tests/corelib/uri_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/uri.dart
diff --git a/sdk/lib/core/uri.dart b/sdk/lib/core/uri.dart
index 331ac3b0448de6cc1b679f5edca925c36480e753..4ada2a80769e450845b1b60613fb2fee1cb1c826 100644
--- a/sdk/lib/core/uri.dart
+++ b/sdk/lib/core/uri.dart
@@ -1208,7 +1208,7 @@ class Uri {
}
static bool _isGeneralDelimiter(int ch) {
- return ch <= 64 &&
+ return ch <= _RIGHT_BRACKET &&
((_genDelimitersTable[ch >> 4] & (1 << (ch & 0x0f))) != 0);
}
@@ -2085,12 +2085,12 @@ class Uri {
0x0000, // 0x10 - 0x1f 0000000000000000
// # /
0x8008, // 0x20 - 0x2f 0001000000000001
- // : [ ]?
- 0xe400, // 0x30 - 0x3f 0000000000101011
+ // : ?
+ 0x8400, // 0x30 - 0x3f 0000000000100001
// @
0x0001, // 0x40 - 0x4f 1000000000000000
- //
- 0x0000, // 0x50 - 0x5f 0000000000000000
+ // [ ]
+ 0x2800, // 0x50 - 0x5f 0000000000010100
//
0x0000, // 0x60 - 0x6f 0000000000000000
//
« no previous file with comments | « no previous file | tests/corelib/uri_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698