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

Unified Diff: pkg/intl/lib/number_format.dart

Issue 11263040: Make String.charCodes a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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 | « lib/utf/utf_core.dart ('k') | runtime/bin/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/number_format.dart
diff --git a/pkg/intl/lib/number_format.dart b/pkg/intl/lib/number_format.dart
index 4ca3eb66ab1fe55c15235b3dda9a2d2353e31c3a..00373d280b9efe85194487f3f5f1547198d3cff4 100644
--- a/pkg/intl/lib/number_format.dart
+++ b/pkg/intl/lib/number_format.dart
@@ -169,7 +169,7 @@ class NumberFormat {
paddingDigits.add(symbols.ZERO_DIGIT);
intValue = intValue ~/ 10;
}
- var integerDigits = "${intValue}${paddingDigits}".charCodes();
+ var integerDigits = "${intValue}${paddingDigits}".charCodes;
var digitLength = integerDigits.length;
if (_hasPrintableIntegerPart(intValue)) {
@@ -191,7 +191,7 @@ class NumberFormat {
* Format the part after the decimal place in a fixed point number.
*/
void _formatFractionPart(String fractionPart) {
- var fractionCodes = fractionPart.charCodes();
+ var fractionCodes = fractionPart.charCodes;
var fractionLength = fractionPart.length;
while (fractionPart[fractionLength - 1] == '0' &&
fractionLength > _minimumFractionDigits + 1) {
@@ -237,7 +237,7 @@ class NumberFormat {
for (var i = 0; i < numberOfDigits - basic.length; i++) {
_add(symbols.ZERO_DIGIT);
}
- for (var x in basic.charCodes()) {
+ for (var x in basic.charCodes) {
_addDigit(x);
}
}
@@ -258,7 +258,7 @@ class NumberFormat {
}
/** Returns the code point for the character '0'. */
- int get _zero => '0'.charCodes()[0];
+ int get _zero => '0'.charCodes[0];
/** Returns the code point for the locale's zero digit. */
int get _localeZero => symbols.ZERO_DIGIT.charCodeAt(0);
« no previous file with comments | « lib/utf/utf_core.dart ('k') | runtime/bin/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698