-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows, test wrapper: simplify IFStream
Simplify IFStream: - Get() now returns the byte under the cursor and moves forward. - Peek() can peek any characters and returns the number peeked. - Advance() and PeekN() is removed. The benefit: - Telling if we reached EOF is easy: Advance() used to return false on I/O error and EOF and we couldn't tell them apart. - The semantics lend themselves easier for UTF-8 stream escaping. See #5508 Closes #7528. PiperOrigin-RevId: 235677987
- Loading branch information
1 parent
8de8f92
commit bfd71de
Showing
3 changed files
with
167 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.