OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 dart.convert; | 5 part of dart.convert; |
6 | 6 |
7 /** The Unicode Replacement character `U+FFFD` (�). */ | 7 /** The Unicode Replacement character `U+FFFD` (�). */ |
8 const UNICODE_REPLACEMENT_CHARACTER_RUNE = 0xFFFD; | 8 const int UNICODE_REPLACEMENT_CHARACTER_RUNE = 0xFFFD; |
9 | 9 |
10 /** The Unicode Byte Order Marker (BOM) character `U+FEFF`. */ | 10 /** The Unicode Byte Order Marker (BOM) character `U+FEFF`. */ |
11 const UNICODE_BOM_CHARACTER_RUNE = 0xFEFF; | 11 const int UNICODE_BOM_CHARACTER_RUNE = 0xFEFF; |
12 | 12 |
13 /** | 13 /** |
14 * An instance of the default implementation of the [Utf8Codec]. | 14 * An instance of the default implementation of the [Utf8Codec]. |
15 * | 15 * |
16 * This instance provides a convenient access to the most common UTF-8 | 16 * This instance provides a convenient access to the most common UTF-8 |
17 * use cases. | 17 * use cases. |
18 * | 18 * |
19 * Examples: | 19 * Examples: |
20 * | 20 * |
21 * var encoded = UTF8.encode("Îñţérñåţîöñåļîžåţîờñ"); | 21 * var encoded = UTF8.encode("Îñţérñåţîöñåļîžåţîờñ"); |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 } | 513 } |
514 break loop; | 514 break loop; |
515 } | 515 } |
516 if (expectedUnits > 0) { | 516 if (expectedUnits > 0) { |
517 _value = value; | 517 _value = value; |
518 _expectedUnits = expectedUnits; | 518 _expectedUnits = expectedUnits; |
519 _extraUnits = extraUnits; | 519 _extraUnits = extraUnits; |
520 } | 520 } |
521 } | 521 } |
522 } | 522 } |
OLD | NEW |