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

Unified Diff: sdk/lib/core/string.dart

Issue 11418115: Fix Unicode issues in dart2js and dart2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove accidental test expectation dupe Created 8 years, 1 month 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
Index: sdk/lib/core/string.dart
diff --git a/sdk/lib/core/string.dart b/sdk/lib/core/string.dart
index f2d0e613203d238145d68ef8416cddb30d6c79b6..19b472ec19c624c2b175b68c3dd745f20ba865d1 100644
--- a/sdk/lib/core/string.dart
+++ b/sdk/lib/core/string.dart
@@ -76,10 +76,13 @@ abstract class String implements Comparable, Pattern, Sequence<String> {
String substring(int startIndex, [int endIndex]);
/**
- * Removes leading and trailing whitespace from a string. If the
- * string contains leading or trailing whitespace a new string with
- * no leading and no trailing whitespace is returned. Otherwise, the
- * string itself is returned.
+ * Removes leading and trailing whitespace from a string. If the string
+ * contains leading or trailing whitespace a new string with no leading and
+ * no trailing whitespace is returned. Otherwise, the string itself is
+ * returned. Whitespace is defined as every Unicode character in the Zs, Zl
+ * and Zp categories (this includes no-break space), the spacing control
+ * characters from 9 to 13 (tab, lf, vtab, ff and cr), and 0xfeff the BOM
+ * character.
*/
String trim();

Powered by Google App Engine
This is Rietveld 408576698