These commit bring the sample implementation into line with Draft 3. In particular, the string->bytevector and bytevector->string procedures, which act as parser and unparser for Daphne's bytevector notation, are added. Thanks.
You can view, comment on, or merge this pull request online at:
https://github.com/scheme-requests-for-implementation/srfi-207/pull/4
Commit Summary
- Add bytevector->string.
- Use u8vector-for-each, except on Guile.
- Implement string->bytevector (rough).
- Tighten up hexadecimal sequence parsing.
- Tests for string-notated bytevector conversions.
- Add list->bytestring!
- Whitespace reformatting.
- string->bytevector: Errors satisfy bytestring-error?.
- bytestring-error raises directly.
File Changes
- M srfi-207-test.scm (40)
- M srfi/207.scm (58)
- M srfi/207.sld (18)
- A srfi/parse.scm (68)
Patch Links:
- https://github.com/scheme-requests-for-implementation/srfi-207/pull/4.patch
- https://github.com/scheme-requests-for-implementation/srfi-207/pull/4.diff
—