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

Side by Side Diff: pkg/intl/lib/number_format.dart

Issue 13898014: Allow suppressing message extraction warnings, providing a prefix for generated files, and format w… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of intl; 5 part of intl;
6 /** 6 /**
7 * Provides the ability to format a number in a locale-specific way. The 7 * Provides the ability to format a number in a locale-specific way. The
8 * format is specified as a pattern using a subset of the ICU formatting 8 * format is specified as a pattern using a subset of the ICU formatting
9 * patterns. 9 * patterns.
10 * 10 *
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 format._multiplier = 1000; 555 format._multiplier = 1000;
556 affix.write(symbols.PERMILL); 556 affix.write(symbols.PERMILL);
557 break; 557 break;
558 default: 558 default:
559 affix.write(ch); 559 affix.write(ch);
560 } 560 }
561 } 561 }
562 return true; 562 return true;
563 } 563 }
564 564
565 /** Variables used in [parseTrunk] and [parseTrunkCharacter]. */ 565 /** Variables used in [_parseTrunk] and [parseTrunkCharacter]. */
566 var decimalPos; 566 var decimalPos;
567 var digitLeftCount; 567 var digitLeftCount;
568 var zeroDigitCount; 568 var zeroDigitCount;
569 var digitRightCount; 569 var digitRightCount;
570 var groupingCount; 570 var groupingCount;
571 var trunk; 571 var trunk;
572 572
573 /** 573 /**
574 * Parse the "trunk" portion of the pattern, the piece that doesn't include 574 * Parse the "trunk" portion of the pattern, the piece that doesn't include
575 * positive or negative prefixes or suffixes. 575 * positive or negative prefixes or suffixes.
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 String input; 749 String input;
750 var index = -1; 750 var index = -1;
751 inBounds(i) => i >= 0 && i < input.length; 751 inBounds(i) => i >= 0 && i < input.length;
752 _StringIterator(this.input); 752 _StringIterator(this.input);
753 String get current => inBounds(index) ? input[index] : null; 753 String get current => inBounds(index) ? input[index] : null;
754 754
755 bool moveNext() => inBounds(++index); 755 bool moveNext() => inBounds(++index);
756 String get peek => inBounds(index + 1) ? input[index + 1] : null; 756 String get peek => inBounds(index + 1) ? input[index + 1] : null;
757 Iterator<String> get iterator => this; 757 Iterator<String> get iterator => this;
758 } 758 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698