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

Unified Diff: runtime/bin/process_patch.dart

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 years, 10 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 | « pkg/yaml/lib/parser.dart ('k') | runtime/lib/integers_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_patch.dart
diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart
index 29913b126ae02e81645e3ed34159bc7588b674b4..72761c35e711462b5e387167ffaa121017b600bd 100644
--- a/runtime/bin/process_patch.dart
+++ b/runtime/bin/process_patch.dart
@@ -107,14 +107,14 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process {
// Replace any number of '\' followed by '"' with
// twice as many '\' followed by '\"'.
- var backslash = '\\'.charCodeAt(0);
+ var backslash = '\\'.codeUnitAt(0);
var sb = new StringBuffer();
var nextPos = 0;
var quotePos = argument.indexOf('"', nextPos);
while (quotePos != -1) {
var numBackslash = 0;
var pos = quotePos - 1;
- while (pos >= 0 && argument.charCodeAt(pos) == backslash) {
+ while (pos >= 0 && argument.codeUnitAt(pos) == backslash) {
numBackslash++;
pos--;
}
@@ -134,7 +134,7 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process {
sb = new StringBuffer('"');
sb.add(result);
nextPos = argument.length - 1;
- while (argument.charCodeAt(nextPos) == backslash) {
+ while (argument.codeUnitAt(nextPos) == backslash) {
sb.add('\\');
nextPos--;
}
« no previous file with comments | « pkg/yaml/lib/parser.dart ('k') | runtime/lib/integers_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698