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

Unified Diff: pkg/source_maps/lib/span.dart

Issue 13493020: lib/utf: remove codepointsToString (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits, moved tests Created 7 years, 8 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 | sdk/lib/utf/utf.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/source_maps/lib/span.dart
diff --git a/pkg/source_maps/lib/span.dart b/pkg/source_maps/lib/span.dart
index 19829941f3b07c962f1a159979df29c6dd80181e..fd302bcb6793133c906bbbdb33900e28b6ac521e 100644
--- a/pkg/source_maps/lib/span.dart
+++ b/pkg/source_maps/lib/span.dart
@@ -5,7 +5,7 @@
/// Dart classes representing the souce spans and source files.
library source_maps.span;
-import 'dart:utf' show stringToCodepoints, codepointsToString;
+import 'dart:utf' show stringToCodepoints;
import 'dart:math' show min;
import 'src/utils.dart';
@@ -232,7 +232,7 @@ class SourceFile {
/// Gets the text at the given offsets.
String getText(int start, [int end]) {
- return codepointsToString(_decodedChars.sublist(start, end));
+ return new String.fromCharCodes(_decodedChars.sublist(start, end));
}
/// Create a pretty string representation from a span.
« no previous file with comments | « no previous file | sdk/lib/utf/utf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698