| OLD | NEW |
| 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 final int _UTF8_ONE_BYTE_MAX = 0x7f; | 5 final int _UTF8_ONE_BYTE_MAX = 0x7f; |
| 6 final int _UTF8_TWO_BYTE_MAX = 0x7ff; | 6 final int _UTF8_TWO_BYTE_MAX = 0x7ff; |
| 7 final int _UTF8_THREE_BYTE_MAX = 0xffff; | 7 final int _UTF8_THREE_BYTE_MAX = 0xffff; |
| 8 | 8 |
| 9 final int _UTF8_LO_SIX_BIT_MASK = 0x3f; | 9 final int _UTF8_LO_SIX_BIT_MASK = 0x3f; |
| 10 | 10 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 codepointBufferLength++; | 212 codepointBufferLength++; |
| 213 }); | 213 }); |
| 214 | 214 |
| 215 List<int> codepointBuffer = new List<int>(codepointBufferLength); | 215 List<int> codepointBuffer = new List<int>(codepointBufferLength); |
| 216 int i = 0; | 216 int i = 0; |
| 217 apply(void _(int value) { | 217 apply(void _(int value) { |
| 218 codepointBuffer[i++] = value; | 218 codepointBuffer[i++] = value; |
| 219 }); | 219 }); |
| 220 return codepointBuffer; | 220 return codepointBuffer; |
| 221 } | 221 } |
| OLD | NEW |