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

Side by Side Diff: sdk/lib/io/stdio.dart

Issue 2957593002: Spelling fixes e to i. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « sdk/lib/io/socket.dart ('k') | sdk/lib/js/dartium/js_dartium.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) 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.io; 5 part of dart.io;
6 6
7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; 7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0;
8 const int _STDIO_HANDLE_TYPE_PIPE = 1; 8 const int _STDIO_HANDLE_TYPE_PIPE = 1;
9 const int _STDIO_HANDLE_TYPE_FILE = 2; 9 const int _STDIO_HANDLE_TYPE_FILE = 2;
10 const int _STDIO_HANDLE_TYPE_SOCKET = 3; 10 const int _STDIO_HANDLE_TYPE_SOCKET = 3;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 while (true) { 72 while (true) {
73 int byte = readByteSync(); 73 int byte = readByteSync();
74 if (byte < 0) { 74 if (byte < 0) {
75 if (line.isEmpty) return null; 75 if (line.isEmpty) return null;
76 break; 76 break;
77 } 77 }
78 if (byte == LF || byte == CR) break; 78 if (byte == LF || byte == CR) break;
79 line.add(byte); 79 line.add(byte);
80 } 80 }
81 } else { 81 } else {
82 // Case having to handel CR LF as a single unretained line terminator. 82 // Case having to handle CR LF as a single unretained line terminator.
83 outer: 83 outer:
84 while (true) { 84 while (true) {
85 int byte = readByteSync(); 85 int byte = readByteSync();
86 if (byte == LF) break; 86 if (byte == LF) break;
87 if (byte == CR) { 87 if (byte == CR) {
88 do { 88 do {
89 byte = readByteSync(); 89 byte = readByteSync();
90 if (byte == LF) break outer; 90 if (byte == LF) break outer;
91 91
92 line.add(CR); 92 line.add(CR);
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 } 422 }
423 423
424 class _StdIOUtils { 424 class _StdIOUtils {
425 external static _getStdioOutputStream(int fd); 425 external static _getStdioOutputStream(int fd);
426 external static Stdin _getStdioInputStream(); 426 external static Stdin _getStdioInputStream();
427 427
428 /// Returns the socket type or `null` if [socket] is not a builtin socket. 428 /// Returns the socket type or `null` if [socket] is not a builtin socket.
429 external static int _socketType(Socket socket); 429 external static int _socketType(Socket socket);
430 external static _getStdioHandleType(int fd); 430 external static _getStdioHandleType(int fd);
431 } 431 }
OLDNEW
« no previous file with comments | « sdk/lib/io/socket.dart ('k') | sdk/lib/js/dartium/js_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698