{"size": 997, "ext": "scrbl", "max_stars_repo_path": "cur-doc/cur/scribblings/stdlib/racket-ascii.scrbl", "max_stars_repo_name": "bluephoenix47/cic-redex", "max_stars_repo_stars_event_min_datetime": "2015-07-23T20:56:11.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-07T04:34:29.000Z", "max_issues_repo_path": "cur-doc/cur/scribblings/stdlib/racket-ascii.scrbl", "max_issues_repo_name": "bluephoenix47/cic-redex", "max_issues_repo_issues_event_min_datetime": "2015-09-09T22:57:20.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-19T20:55:34.000Z", "max_forks_repo_path": "cur-doc/cur/scribblings/stdlib/racket-ascii.scrbl", "max_forks_repo_name": "dmelcer9/cur", "max_forks_repo_forks_event_min_datetime": "2015-09-17T17:13:27.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-14T01:17:46.000Z"}
{"max_stars_count": 215, "max_issues_count": 125, "max_forks_count": 17, "avg_line_length": 33.2333333333, "max_line_length": 99, "alphanum_fraction": 0.7261785356}
#lang scribble/manual

@(require
  "../defs.rkt"
  (for-label racket/base data/bit-vector cur/stdlib/racket-ascii)
  scribble/eval)

@title{Racket ASCII}
@defmodule[cur/stdlib/racket-ascii]
This library defines Racket tools for manipulating ASCII string.
It will eventually be moved out of Cur; do not rely on it.

@defproc[(ascii-char? [c char?]) boolean?]{
Returns @racket[#t] when @racket[c] is valid as a 7-bit ASCII character, and @racket[#f] otherwise.
}

@defproc[(ascii-string? [str string?]) boolean?]{
Returns @racket[#t] when @racket[str] contains only characters that are valid as
a 7-bit ASCII character, and @racket[#f] otherwise.
}

@defproc[(byte->ascii-bit-vector [b byte?]) bit-vector?]{
Converts @racket[b] into a @racket[bit-vector] of a length 7, interpreted as a
ASCII character; the sign bit of @racket[b] is ignored.
}

@defproc[(ascii-bit-vector->byte [bv bit-vector?]) byte?]{
Converts a @racket[bv] of length 7, interpreted as an ASCII character, into a
@racket[byte].
}