|
Add some support for the code-point code-unit distinction.
Adds String.fromCodeUnits and String.codeUnitAt, and modifies
String.fromCodePoints and String.codePointAt to actually use code points.
Fixes String.charCodes to use code points and adds String.codeUnits.
Reenables some tests, and adds new ones for non-BMP characters.
Fixes issues 6418, 6501 and 1357.
R=floitsch@google.com
BUG=
Committed: https://code.google.com/p/dart/source/detail?r=15150
Total comments: 35
Total comments: 16
Total comments: 42
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1044 lines, -632 lines) |
Patch |
|
M |
runtime/lib/string.cc
|
View
|
1
2
3
|
5 chunks |
+18 lines, -17 lines |
0 comments
|
Download
|
|
M |
runtime/lib/string_base.dart
|
View
|
1
2
3
|
8 chunks |
+113 lines, -78 lines |
0 comments
|
Download
|
|
M |
runtime/lib/string_patch.dart
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/bootstrap_natives.h
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_message.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/object.h
|
View
|
1
2
3
|
8 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object.cc
|
View
|
1
2
3
|
13 chunks |
+66 lines, -44 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object_test.cc
|
View
|
1
2
3
|
21 chunks |
+109 lines, -59 lines |
0 comments
|
Download
|
|
M |
runtime/vm/scanner.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/scanner.cc
|
View
|
1
2
3
|
2 chunks |
+10 lines, -2 lines |
1 comment
|
Download
|
|
M |
runtime/vm/symbols.cc
|
View
|
1
2
3
|
3 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
|
M |
runtime/vm/unicode.h
|
View
|
1
2
3
|
3 chunks |
+56 lines, -9 lines |
1 comment
|
Download
|
|
M |
runtime/vm/unicode.cc
|
View
|
1
2
3
|
14 chunks |
+41 lines, -39 lines |
0 comments
|
Download
|
|
M |
runtime/vm/unicode_test.cc
|
View
|
1
2
|
85 chunks |
+172 lines, -172 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
|
View
|
1
|
1 chunk |
+4 lines, -15 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
|
View
|
1
2
3
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
|
View
|
1
2
3
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/compiler/implementation/lib/js_string.dart
|
View
|
1
2
|
2 chunks |
+25 lines, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/compiler/implementation/scanner/token.dart
|
View
|
1
2
3
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/compiler/implementation/source_map_builder.dart
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/compiler/implementation/string_validator.dart
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/compiler/implementation/util/util.dart
|
View
|
1
|
1 chunk |
+54 lines, -40 lines |
0 comments
|
Download
|
|
M |
sdk/lib/core/string.dart
|
View
|
1
2
3
|
3 chunks |
+97 lines, -18 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/string_stream.dart
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
sdk/lib/uri/encode_decode.dart
|
View
|
|
1 chunk |
+2 lines, -11 lines |
0 comments
|
Download
|
|
M |
sdk/lib/utf/utf32.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sdk/lib/utf/utf8.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sdk/lib/utf/utf_core.dart
|
View
|
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
|
M |
tests/co19/co19-dart2dart.status
|
View
|
1
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/co19/co19-dart2js.status
|
View
|
1
2
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
tests/co19/co19-runtime.status
|
View
|
1
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
tests/corelib/corelib.status
|
View
|
1
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
A |
tests/corelib/reg_exp_unicode_2_test.dart
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/corelib/reg_exp_unicode_test.dart
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/corelib/string_from_list_test.dart
|
View
|
|
1 chunk |
+25 lines, -4 lines |
0 comments
|
Download
|
|
A |
tests/corelib/string_trim_unicode_test.dart
|
View
|
1
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/corelib/surrogate_pair_toUpper_test.dart
|
View
|
1
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/language/language_dart2js.status
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/standalone/io/string_stream_test.dart
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
tests/utils/utf8_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -10 lines |
0 comments
|
Download
|
|
M |
tests/utils/utf_test.dart
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
tests/utils/utils.status
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
utils/tests/string_encoding/unicode_test.dart
|
View
|
1
|
1 chunk |
+10 lines, -10 lines |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|