| Index: runtime/lib/string_base.dart
|
| ===================================================================
|
| --- runtime/lib/string_base.dart (revision 15607)
|
| +++ runtime/lib/string_base.dart (working copy)
|
| @@ -389,6 +389,16 @@
|
|
|
| String _substringUncheckedNative(int startIndex, int endIndex)
|
| native "OneByteString_substringUnchecked";
|
| +
|
| + List<String> _splitWithCharCode(int charCode)
|
| + native "OneByteString_splitWithCharCode";
|
| +
|
| + List<String> split(Pattern pattern) {
|
| + if ((pattern is _OneByteString) && (pattern.length == 1)) {
|
| + return _splitWithCharCode(pattern.charCodeAt(0));
|
| + }
|
| + return super.split(pattern);
|
| + }
|
| }
|
|
|
|
|
|
|