22 String Processing
(require xiden/string) | package: xiden |
xiden/string extends and reprovides racket/string.
This module defines useful regular expressions and string operations needed by other modules.
value
DEFAULT_STRING : non-empty-string? = "default"
procedure
(whole/pattstr s) → string?
s : string?
procedure
(group/pattstr s) → string?
s : string?
procedure
(or/pattstr opt ...) → string?
opt : string?
procedure
(make-extension-pattern-string exts ...) → string?
exts : string?
value
value
windows-reserved-character-pattern-string matches any character reserved by Windows for file names. windows-reserved-name-pattern-string matches any character sequence that looks like a reserved Windows file name.
value
procedure
(make-rx-matcher pattern-string [ #:whole whole?]) → (-> string? (or/c #f list?)) pattern-string : string? whole? : any/c = #t
value
procedure
(get-shortest-string strings) → string?
strings : (listof string?)
Current use cases:
Show the user the shortest CLI flag among alternatives in some messages.
procedure
(string->value s) → any/c
s : string?
Current use case:
Convert user-provided runtime configuration values to Racket values.
syntax-class