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

Unified Diff: utils/string_encoding/unicode.dart

Issue 9410001: restructure string decoding to support iterable use and include benchmarks for UTF-8 decoding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: "stop using introduced variable _length. Improve docs. Created 8 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 | « no previous file | utils/string_encoding/unicode_core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/string_encoding/unicode.dart
diff --git a/utils/string_encoding/unicode.dart b/utils/string_encoding/unicode.dart
index c0c9655a46c665ed71cfd2b313c48949632a8945..9573cafdf5c61f4bf70c74562c01c8ce89aa1630 100644
--- a/utils/string_encoding/unicode.dart
+++ b/utils/string_encoding/unicode.dart
@@ -6,7 +6,7 @@
#import("unicode_core.dart");
/**
- * Provide Unicode codepoints for a given string.
+ * Provide a list of Unicode codepoints for a given string.
*/
List<int> stringToCodepoints(String str) {
List<int> codepoints;
@@ -22,7 +22,7 @@ List<int> stringToCodepoints(String str) {
}
/**
- * Generate a string for the provided Unicode codepoints.
+ * Generate a string from the provided Unicode codepoints.
*/
String codepointsToString(List<int> codepoints) {
// TODO is16BitCodeUnit() is used to work around a bug with frog/dartc
« no previous file with comments | « no previous file | utils/string_encoding/unicode_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698