| OLD | NEW |
| 1 dart_library.library('dart/core', null, /* Imports */[ | 1 dart_library.library('dart/core', null, /* Imports */[ |
| 2 "dart_runtime/dart" | 2 "dart_runtime/dart" |
| 3 ], /* Lazy imports */[ | 3 ], /* Lazy imports */[ |
| 4 'dart/_js_helper', | 4 'dart/_js_helper', |
| 5 'dart/_internal', | 5 'dart/_internal', |
| 6 'dart/collection', | 6 'dart/collection', |
| 7 'dart/_interceptors', | 7 'dart/_interceptors', |
| 8 'dart/convert' | 8 'dart/convert' |
| 9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con
vert) { | 9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con
vert) { |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 millisecond = 0; | 133 millisecond = 0; |
| 134 this._internal(year, month, day, hour, minute, second, millisecond, true); | 134 this._internal(year, month, day, hour, minute, second, millisecond, true); |
| 135 } | 135 } |
| 136 now() { | 136 now() { |
| 137 this._now(); | 137 this._now(); |
| 138 } | 138 } |
| 139 static parse(formattedString) { | 139 static parse(formattedString) { |
| 140 let re = RegExp.new('^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)' + '(?:[ T](\\d\
\d)(?::?(\\d\\d)(?::?(\\d\\d)(.\\d{1,6})?)?)?' + '( ?[zZ]| ?([-+])(\\d\\d)(?::?(
\\d\\d))?)?)?$'); | 140 let re = RegExp.new('^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)' + '(?:[ T](\\d\
\d)(?::?(\\d\\d)(?::?(\\d\\d)(.\\d{1,6})?)?)?' + '( ?[zZ]| ?([-+])(\\d\\d)(?::?(
\\d\\d))?)?)?$'); |
| 141 let match = re.firstMatch(formattedString); | 141 let match = re.firstMatch(formattedString); |
| 142 if (match != null) { | 142 if (match != null) { |
| 143 let parseIntOrZero = matched => { | 143 function parseIntOrZero(matched) { |
| 144 if (matched == null) | 144 if (matched == null) |
| 145 return 0; | 145 return 0; |
| 146 return int.parse(matched); | 146 return int.parse(matched); |
| 147 }; | 147 } |
| 148 dart.fn(parseIntOrZero, int, [String]); | 148 dart.fn(parseIntOrZero, int, [String]); |
| 149 let parseDoubleOrZero = matched => { | 149 function parseDoubleOrZero(matched) { |
| 150 if (matched == null) | 150 if (matched == null) |
| 151 return 0.0; | 151 return 0.0; |
| 152 return double.parse(matched); | 152 return double.parse(matched); |
| 153 }; | 153 } |
| 154 dart.fn(parseDoubleOrZero, double, [String]); | 154 dart.fn(parseDoubleOrZero, double, [String]); |
| 155 let years = int.parse(match.get(1)); | 155 let years = int.parse(match.get(1)); |
| 156 let month = int.parse(match.get(2)); | 156 let month = int.parse(match.get(2)); |
| 157 let day = int.parse(match.get(3)); | 157 let day = int.parse(match.get(3)); |
| 158 let hour = parseIntOrZero(match.get(4)); | 158 let hour = parseIntOrZero(match.get(4)); |
| 159 let minute = parseIntOrZero(match.get(5)); | 159 let minute = parseIntOrZero(match.get(5)); |
| 160 let second = parseIntOrZero(match.get(6)); | 160 let second = parseIntOrZero(match.get(6)); |
| 161 let addOneMillisecond = false; | 161 let addOneMillisecond = false; |
| 162 let millisecond = (dart.notNull(parseDoubleOrZero(match.get(7))) * 1000)
[dartx.round](); | 162 let millisecond = (dart.notNull(parseDoubleOrZero(match.get(7))) * 1000)
[dartx.round](); |
| 163 if (millisecond == 1000) { | 163 if (millisecond == 1000) { |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 return false; | 520 return false; |
| 521 return dart.equals(this[_duration], dart.dload(other, _duration)); | 521 return dart.equals(this[_duration], dart.dload(other, _duration)); |
| 522 } | 522 } |
| 523 get hashCode() { | 523 get hashCode() { |
| 524 return dart.hashCode(this[_duration]); | 524 return dart.hashCode(this[_duration]); |
| 525 } | 525 } |
| 526 compareTo(other) { | 526 compareTo(other) { |
| 527 return this[_duration][dartx.compareTo](other[_duration]); | 527 return this[_duration][dartx.compareTo](other[_duration]); |
| 528 } | 528 } |
| 529 toString() { | 529 toString() { |
| 530 let sixDigits = n => { | 530 function sixDigits(n) { |
| 531 if (dart.notNull(n) >= 100000) | 531 if (dart.notNull(n) >= 100000) |
| 532 return `${n}`; | 532 return `${n}`; |
| 533 if (dart.notNull(n) >= 10000) | 533 if (dart.notNull(n) >= 10000) |
| 534 return `0${n}`; | 534 return `0${n}`; |
| 535 if (dart.notNull(n) >= 1000) | 535 if (dart.notNull(n) >= 1000) |
| 536 return `00${n}`; | 536 return `00${n}`; |
| 537 if (dart.notNull(n) >= 100) | 537 if (dart.notNull(n) >= 100) |
| 538 return `000${n}`; | 538 return `000${n}`; |
| 539 if (dart.notNull(n) >= 10) | 539 if (dart.notNull(n) >= 10) |
| 540 return `0000${n}`; | 540 return `0000${n}`; |
| 541 return `00000${n}`; | 541 return `00000${n}`; |
| 542 }; | 542 } |
| 543 dart.fn(sixDigits, String, [int]); | 543 dart.fn(sixDigits, String, [int]); |
| 544 let twoDigits = n => { | 544 function twoDigits(n) { |
| 545 if (dart.notNull(n) >= 10) | 545 if (dart.notNull(n) >= 10) |
| 546 return `${n}`; | 546 return `${n}`; |
| 547 return `0${n}`; | 547 return `0${n}`; |
| 548 }; | 548 } |
| 549 dart.fn(twoDigits, String, [int]); | 549 dart.fn(twoDigits, String, [int]); |
| 550 if (dart.notNull(this.inMicroseconds) < 0) { | 550 if (dart.notNull(this.inMicroseconds) < 0) { |
| 551 return `-${this['unary-']()}`; | 551 return `-${this['unary-']()}`; |
| 552 } | 552 } |
| 553 let twoDigitMinutes = twoDigits(this.inMinutes[dartx.remainder](Duration.M
INUTES_PER_HOUR)); | 553 let twoDigitMinutes = twoDigits(this.inMinutes[dartx.remainder](Duration.M
INUTES_PER_HOUR)); |
| 554 let twoDigitSeconds = twoDigits(this.inSeconds[dartx.remainder](Duration.S
ECONDS_PER_MINUTE)); | 554 let twoDigitSeconds = twoDigits(this.inSeconds[dartx.remainder](Duration.S
ECONDS_PER_MINUTE)); |
| 555 let sixDigitUs = sixDigits(this.inMicroseconds[dartx.remainder](Duration.M
ICROSECONDS_PER_SECOND)); | 555 let sixDigitUs = sixDigits(this.inMicroseconds[dartx.remainder](Duration.M
ICROSECONDS_PER_SECOND)); |
| 556 return `${this.inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${sixDigitUs
}`; | 556 return `${this.inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${sixDigitUs
}`; |
| 557 } | 557 } |
| 558 get isNegative() { | 558 get isNegative() { |
| (...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1982 get path() { | 1982 get path() { |
| 1983 return this[_path]; | 1983 return this[_path]; |
| 1984 } | 1984 } |
| 1985 get query() { | 1985 get query() { |
| 1986 return this[_query] == null ? "" : this[_query]; | 1986 return this[_query] == null ? "" : this[_query]; |
| 1987 } | 1987 } |
| 1988 get fragment() { | 1988 get fragment() { |
| 1989 return this[_fragment] == null ? "" : this[_fragment]; | 1989 return this[_fragment] == null ? "" : this[_fragment]; |
| 1990 } | 1990 } |
| 1991 static parse(uri) { | 1991 static parse(uri) { |
| 1992 let isRegName = ch => { | 1992 function isRegName(ch) { |
| 1993 return dart.notNull(ch) < 128 && !dart.equals(dart.dsend(Uri._regNameTab
le[dartx.get](dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch) & 15)), 0); | 1993 return dart.notNull(ch) < 128 && !dart.equals(dart.dsend(Uri._regNameTab
le[dartx.get](dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch) & 15)), 0); |
| 1994 }; | 1994 } |
| 1995 dart.fn(isRegName, bool, [int]); | 1995 dart.fn(isRegName, bool, [int]); |
| 1996 let EOI = -1; | 1996 let EOI = -1; |
| 1997 let scheme = ""; | 1997 let scheme = ""; |
| 1998 let userinfo = ""; | 1998 let userinfo = ""; |
| 1999 let host = null; | 1999 let host = null; |
| 2000 let port = null; | 2000 let port = null; |
| 2001 let path = null; | 2001 let path = null; |
| 2002 let query = null; | 2002 let query = null; |
| 2003 let fragment = null; | 2003 let fragment = null; |
| 2004 let index = 0; | 2004 let index = 0; |
| 2005 let pathStart = 0; | 2005 let pathStart = 0; |
| 2006 let char = EOI; | 2006 let char = EOI; |
| 2007 let parseAuth = () => { | 2007 function parseAuth() { |
| 2008 if (index == uri[dartx.length]) { | 2008 if (index == uri[dartx.length]) { |
| 2009 char = EOI; | 2009 char = EOI; |
| 2010 return; | 2010 return; |
| 2011 } | 2011 } |
| 2012 let authStart = index; | 2012 let authStart = index; |
| 2013 let lastColon = -1; | 2013 let lastColon = -1; |
| 2014 let lastAt = -1; | 2014 let lastAt = -1; |
| 2015 char = uri[dartx.codeUnitAt](index); | 2015 char = uri[dartx.codeUnitAt](index); |
| 2016 while (dart.notNull(index) < dart.notNull(uri[dartx.length])) { | 2016 while (dart.notNull(index) < dart.notNull(uri[dartx.length])) { |
| 2017 char = uri[dartx.codeUnitAt](index); | 2017 char = uri[dartx.codeUnitAt](index); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2055 portNumber = dart.notNull(portNumber) * 10 + (dart.notNull(digit)
- dart.notNull(Uri._ZERO)); | 2055 portNumber = dart.notNull(portNumber) * 10 + (dart.notNull(digit)
- dart.notNull(Uri._ZERO)); |
| 2056 } | 2056 } |
| 2057 } | 2057 } |
| 2058 port = Uri._makePort(portNumber, scheme); | 2058 port = Uri._makePort(portNumber, scheme); |
| 2059 hostEnd = lastColon; | 2059 hostEnd = lastColon; |
| 2060 } | 2060 } |
| 2061 host = Uri._makeHost(uri, hostStart, hostEnd, true); | 2061 host = Uri._makeHost(uri, hostStart, hostEnd, true); |
| 2062 if (dart.notNull(index) < dart.notNull(uri[dartx.length])) { | 2062 if (dart.notNull(index) < dart.notNull(uri[dartx.length])) { |
| 2063 char = uri[dartx.codeUnitAt](index); | 2063 char = uri[dartx.codeUnitAt](index); |
| 2064 } | 2064 } |
| 2065 }; | 2065 } |
| 2066 dart.fn(parseAuth, dart.void, []); | 2066 dart.fn(parseAuth, dart.void, []); |
| 2067 let NOT_IN_PATH = 0; | 2067 let NOT_IN_PATH = 0; |
| 2068 let IN_PATH = 1; | 2068 let IN_PATH = 1; |
| 2069 let ALLOW_AUTH = 2; | 2069 let ALLOW_AUTH = 2; |
| 2070 let state = NOT_IN_PATH; | 2070 let state = NOT_IN_PATH; |
| 2071 let i = index; | 2071 let i = index; |
| 2072 while (dart.notNull(i) < dart.notNull(uri[dartx.length])) { | 2072 while (dart.notNull(i) < dart.notNull(uri[dartx.length])) { |
| 2073 char = uri[dartx.codeUnitAt](i); | 2073 char = uri[dartx.codeUnitAt](i); |
| 2074 if (char == Uri._QUESTION || char == Uri._NUMBER_SIGN) { | 2074 if (char == Uri._QUESTION || char == Uri._NUMBER_SIGN) { |
| 2075 state = NOT_IN_PATH; | 2075 state = NOT_IN_PATH; |
| (...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2943 } | 2943 } |
| 2944 return dart.toString(sb); | 2944 return dart.toString(sb); |
| 2945 } | 2945 } |
| 2946 ['=='](other) { | 2946 ['=='](other) { |
| 2947 if (!dart.is(other, Uri)) | 2947 if (!dart.is(other, Uri)) |
| 2948 return false; | 2948 return false; |
| 2949 let uri = dart.as(other, Uri); | 2949 let uri = dart.as(other, Uri); |
| 2950 return this.scheme == uri.scheme && this.hasAuthority == uri.hasAuthority
&& this.userInfo == uri.userInfo && this.host == uri.host && this.port == uri.po
rt && this.path == uri.path && this.hasQuery == uri.hasQuery && this.query == ur
i.query && this.hasFragment == uri.hasFragment && this.fragment == uri.fragment; | 2950 return this.scheme == uri.scheme && this.hasAuthority == uri.hasAuthority
&& this.userInfo == uri.userInfo && this.host == uri.host && this.port == uri.po
rt && this.path == uri.path && this.hasQuery == uri.hasQuery && this.query == ur
i.query && this.hasFragment == uri.hasFragment && this.fragment == uri.fragment; |
| 2951 } | 2951 } |
| 2952 get hashCode() { | 2952 get hashCode() { |
| 2953 let combine = (part, current) => { | 2953 function combine(part, current) { |
| 2954 return dart.as(dart.dsend(dart.dsend(dart.dsend(current, '*', 31), '+',
dart.hashCode(part)), '&', 1073741823), int); | 2954 return dart.as(dart.dsend(dart.dsend(dart.dsend(current, '*', 31), '+',
dart.hashCode(part)), '&', 1073741823), int); |
| 2955 }; | 2955 } |
| 2956 dart.fn(combine, int, [dart.dynamic, dart.dynamic]); | 2956 dart.fn(combine, int, [dart.dynamic, dart.dynamic]); |
| 2957 return combine(this.scheme, combine(this.userInfo, combine(this.host, comb
ine(this.port, combine(this.path, combine(this.query, combine(this.fragment, 1))
))))); | 2957 return combine(this.scheme, combine(this.userInfo, combine(this.host, comb
ine(this.port, combine(this.path, combine(this.query, combine(this.fragment, 1))
))))); |
| 2958 } | 2958 } |
| 2959 static _addIfNonEmpty(sb, test, first, second) { | 2959 static _addIfNonEmpty(sb, test, first, second) { |
| 2960 if ("" != test) { | 2960 if ("" != test) { |
| 2961 sb.write(first); | 2961 sb.write(first); |
| 2962 sb.write(second); | 2962 sb.write(second); |
| 2963 } | 2963 } |
| 2964 } | 2964 } |
| 2965 static encodeComponent(component) { | 2965 static encodeComponent(component) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2992 } | 2992 } |
| 2993 } else if (index != 0) { | 2993 } else if (index != 0) { |
| 2994 let key = dart.dsend(element, 'substring', 0, index); | 2994 let key = dart.dsend(element, 'substring', 0, index); |
| 2995 let value = dart.dsend(element, 'substring', dart.notNull(index) + 1); | 2995 let value = dart.dsend(element, 'substring', dart.notNull(index) + 1); |
| 2996 dart.dsetindex(map, Uri.decodeQueryComponent(dart.as(key, String), {en
coding: encoding}), Uri.decodeQueryComponent(dart.as(value, String), {encoding:
encoding})); | 2996 dart.dsetindex(map, Uri.decodeQueryComponent(dart.as(key, String), {en
coding: encoding}), Uri.decodeQueryComponent(dart.as(value, String), {encoding:
encoding})); |
| 2997 } | 2997 } |
| 2998 return map; | 2998 return map; |
| 2999 })), Map$(String, String)); | 2999 })), Map$(String, String)); |
| 3000 } | 3000 } |
| 3001 static parseIPv4Address(host) { | 3001 static parseIPv4Address(host) { |
| 3002 let error = msg => { | 3002 function error(msg) { |
| 3003 throw new FormatException(`Illegal IPv4 address, ${msg}`); | 3003 throw new FormatException(`Illegal IPv4 address, ${msg}`); |
| 3004 }; | 3004 } |
| 3005 dart.fn(error, dart.void, [String]); | 3005 dart.fn(error, dart.void, [String]); |
| 3006 let bytes = host[dartx.split]('.'); | 3006 let bytes = host[dartx.split]('.'); |
| 3007 if (bytes[dartx.length] != 4) { | 3007 if (bytes[dartx.length] != 4) { |
| 3008 error('IPv4 address should contain exactly 4 parts'); | 3008 error('IPv4 address should contain exactly 4 parts'); |
| 3009 } | 3009 } |
| 3010 return dart.as(bytes[dartx.map](dart.fn(byteString => { | 3010 return dart.as(bytes[dartx.map](dart.fn(byteString => { |
| 3011 let byte = int.parse(dart.as(byteString, String)); | 3011 let byte = int.parse(dart.as(byteString, String)); |
| 3012 if (dart.notNull(byte) < 0 || dart.notNull(byte) > 255) { | 3012 if (dart.notNull(byte) < 0 || dart.notNull(byte) > 255) { |
| 3013 error('each part must be in the range of `0..255`'); | 3013 error('each part must be in the range of `0..255`'); |
| 3014 } | 3014 } |
| 3015 return byte; | 3015 return byte; |
| 3016 }))[dartx.toList](), List$(int)); | 3016 }))[dartx.toList](), List$(int)); |
| 3017 } | 3017 } |
| 3018 static parseIPv6Address(host, start, end) { | 3018 static parseIPv6Address(host, start, end) { |
| 3019 if (start === void 0) | 3019 if (start === void 0) |
| 3020 start = 0; | 3020 start = 0; |
| 3021 if (end === void 0) | 3021 if (end === void 0) |
| 3022 end = null; | 3022 end = null; |
| 3023 if (end == null) | 3023 if (end == null) |
| 3024 end = host[dartx.length]; | 3024 end = host[dartx.length]; |
| 3025 let error = (msg, position) => { | 3025 function error(msg, position) { |
| 3026 if (position === void 0) | 3026 if (position === void 0) |
| 3027 position = null; | 3027 position = null; |
| 3028 throw new FormatException(`Illegal IPv6 address, ${msg}`, host, dart.as(
position, int)); | 3028 throw new FormatException(`Illegal IPv6 address, ${msg}`, host, dart.as(
position, int)); |
| 3029 }; | 3029 } |
| 3030 dart.fn(error, dart.void, [String], [dart.dynamic]); | 3030 dart.fn(error, dart.void, [String], [dart.dynamic]); |
| 3031 let parseHex = (start, end) => { | 3031 function parseHex(start, end) { |
| 3032 if (dart.notNull(end) - dart.notNull(start) > 4) { | 3032 if (dart.notNull(end) - dart.notNull(start) > 4) { |
| 3033 error('an IPv6 part can only contain a maximum of 4 hex digits', start
); | 3033 error('an IPv6 part can only contain a maximum of 4 hex digits', start
); |
| 3034 } | 3034 } |
| 3035 let value = int.parse(host[dartx.substring](start, end), {radix: 16}); | 3035 let value = int.parse(host[dartx.substring](start, end), {radix: 16}); |
| 3036 if (dart.notNull(value) < 0 || dart.notNull(value) > (1 << 16) - 1) { | 3036 if (dart.notNull(value) < 0 || dart.notNull(value) > (1 << 16) - 1) { |
| 3037 error('each part must be in the range of `0x0..0xFFFF`', start); | 3037 error('each part must be in the range of `0x0..0xFFFF`', start); |
| 3038 } | 3038 } |
| 3039 return value; | 3039 return value; |
| 3040 }; | 3040 } |
| 3041 dart.fn(parseHex, int, [int, int]); | 3041 dart.fn(parseHex, int, [int, int]); |
| 3042 if (dart.notNull(host[dartx.length]) < 2) | 3042 if (dart.notNull(host[dartx.length]) < 2) |
| 3043 error('address is too short'); | 3043 error('address is too short'); |
| 3044 let parts = dart.list([], int); | 3044 let parts = dart.list([], int); |
| 3045 let wildcardSeen = false; | 3045 let wildcardSeen = false; |
| 3046 let partStart = start; | 3046 let partStart = start; |
| 3047 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNull(
i) + 1) { | 3047 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNull(
i) + 1) { |
| 3048 if (host[dartx.codeUnitAt](i) == Uri._COLON) { | 3048 if (host[dartx.codeUnitAt](i) == Uri._COLON) { |
| 3049 if (i == start) { | 3049 if (i == start) { |
| 3050 i = dart.notNull(i) + 1; | 3050 i = dart.notNull(i) + 1; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3108 bytes[dartx.set](index, dart.notNull(value) >> 8); | 3108 bytes[dartx.set](index, dart.notNull(value) >> 8); |
| 3109 bytes[dartx.set](dart.notNull(index) + 1, dart.notNull(value) & 255); | 3109 bytes[dartx.set](dart.notNull(index) + 1, dart.notNull(value) & 255); |
| 3110 index = dart.notNull(index) + 2; | 3110 index = dart.notNull(index) + 2; |
| 3111 } | 3111 } |
| 3112 } | 3112 } |
| 3113 return dart.as(bytes, List$(int)); | 3113 return dart.as(bytes, List$(int)); |
| 3114 } | 3114 } |
| 3115 static _uriEncode(canonicalTable, text, opts) { | 3115 static _uriEncode(canonicalTable, text, opts) { |
| 3116 let encoding = opts && 'encoding' in opts ? opts.encoding : convert.UTF8; | 3116 let encoding = opts && 'encoding' in opts ? opts.encoding : convert.UTF8; |
| 3117 let spaceToPlus = opts && 'spaceToPlus' in opts ? opts.spaceToPlus : false
; | 3117 let spaceToPlus = opts && 'spaceToPlus' in opts ? opts.spaceToPlus : false
; |
| 3118 let byteToHex = (byte, buffer) => { | 3118 function byteToHex(byte, buffer) { |
| 3119 let hex = '0123456789ABCDEF'; | 3119 let hex = '0123456789ABCDEF'; |
| 3120 dart.dsend(buffer, 'writeCharCode', hex[dartx.codeUnitAt](dart.as(dart.d
send(byte, '>>', 4), int))); | 3120 dart.dsend(buffer, 'writeCharCode', hex[dartx.codeUnitAt](dart.as(dart.d
send(byte, '>>', 4), int))); |
| 3121 dart.dsend(buffer, 'writeCharCode', hex[dartx.codeUnitAt](dart.as(dart.d
send(byte, '&', 15), int))); | 3121 dart.dsend(buffer, 'writeCharCode', hex[dartx.codeUnitAt](dart.as(dart.d
send(byte, '&', 15), int))); |
| 3122 }; | 3122 } |
| 3123 dart.fn(byteToHex); | 3123 dart.fn(byteToHex); |
| 3124 let result = new StringBuffer(); | 3124 let result = new StringBuffer(); |
| 3125 let bytes = encoding.encode(text); | 3125 let bytes = encoding.encode(text); |
| 3126 for (let i = 0; dart.notNull(i) < dart.notNull(bytes[dartx.length]); i = d
art.notNull(i) + 1) { | 3126 for (let i = 0; dart.notNull(i) < dart.notNull(bytes[dartx.length]); i = d
art.notNull(i) + 1) { |
| 3127 let byte = bytes[dartx.get](i); | 3127 let byte = bytes[dartx.get](i); |
| 3128 if (dart.notNull(byte) < 128 && (dart.notNull(canonicalTable[dartx.get](
dart.notNull(byte) >> 4)) & 1 << (dart.notNull(byte) & 15)) != 0) { | 3128 if (dart.notNull(byte) < 128 && (dart.notNull(canonicalTable[dartx.get](
dart.notNull(byte) >> 4)) & 1 << (dart.notNull(byte) & 15)) != 0) { |
| 3129 result.writeCharCode(byte); | 3129 result.writeCharCode(byte); |
| 3130 } else if (dart.notNull(spaceToPlus) && byte == Uri._SPACE) { | 3130 } else if (dart.notNull(spaceToPlus) && byte == Uri._SPACE) { |
| 3131 result.writeCharCode(Uri._PLUS); | 3131 result.writeCharCode(Uri._PLUS); |
| 3132 } else { | 3132 } else { |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3365 exports.StackTrace = StackTrace; | 3365 exports.StackTrace = StackTrace; |
| 3366 exports.Stopwatch = Stopwatch; | 3366 exports.Stopwatch = Stopwatch; |
| 3367 exports.String = String; | 3367 exports.String = String; |
| 3368 exports.RuneIterator = RuneIterator; | 3368 exports.RuneIterator = RuneIterator; |
| 3369 exports.StringBuffer = StringBuffer; | 3369 exports.StringBuffer = StringBuffer; |
| 3370 exports.StringSink = StringSink; | 3370 exports.StringSink = StringSink; |
| 3371 exports.Symbol = Symbol; | 3371 exports.Symbol = Symbol; |
| 3372 exports.Type = Type; | 3372 exports.Type = Type; |
| 3373 exports.Uri = Uri; | 3373 exports.Uri = Uri; |
| 3374 }); | 3374 }); |
| OLD | NEW |