File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e7ca3e4db02d7d87dd7a2172394e08fbb92b8fb2
2
+ refs/heads/master: 9d01c46c07c2418ae5c26f03785c350185b17ed0
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -161,6 +161,24 @@ impl reader_util for reader {
161
161
while !self . eof ( ) { buf += self . read_bytes ( 2048 u) ; }
162
162
buf
163
163
}
164
+
165
+ fn each_byte ( it : fn ( int ) -> bool ) {
166
+ while !self . eof ( ) {
167
+ if !it ( self . read_byte ( ) ) { break ; }
168
+ }
169
+ }
170
+
171
+ fn each_char ( it : fn ( char ) -> bool ) {
172
+ while !self . eof ( ) {
173
+ if !it ( self . read_char ( ) ) { break ; }
174
+ }
175
+ }
176
+
177
+ fn each_line ( it : fn ( str ) -> bool ) {
178
+ while !self . eof ( ) {
179
+ if !it ( self . read_line ( ) ) { break ; }
180
+ }
181
+ }
164
182
}
165
183
166
184
// Reader implementations
You can’t perform that action at this time.
0 commit comments