-
Simon Tatham authored
There are new functions here to get the next contiguous string of characters from a given set (like strspn/strcspn, only for BinarySource, and returning a ptrlen of what they skipped over). Also we can get a line of text with the trailing newline chomped off. Finally, I've provided a function to rewind a BinarySource to a previous position with error checking.
Simon Tatham authoredThere are new functions here to get the next contiguous string of characters from a given set (like strspn/strcspn, only for BinarySource, and returning a ptrlen of what they skipped over). Also we can get a line of text with the trailing newline chomped off. Finally, I've provided a function to rewind a BinarySource to a previous position with error checking.