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

Side by Side Diff: utils/string_encoding/utf8_impl.dart

Issue 9310038: Fix mac/git renaming case failure. Aaarrrrgggghhhh. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
« no previous file with comments | « utils/string_encoding/utf8.dart ('k') | utils/tests/string_encoding/DUnit.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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 }
OLDNEW
« no previous file with comments | « utils/string_encoding/utf8.dart ('k') | utils/tests/string_encoding/DUnit.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698