Document new utf-8 functions.
This commit is contained in:
parent
59ce69e7e3
commit
9c9386535b
2 changed files with 25 additions and 1 deletions
20
doc/utils.md
20
doc/utils.md
|
@ -428,6 +428,26 @@ Returns a pair of strings where the ```car``` of the pair is the first
|
||||||
token in the ```str``` given and ```cdr``` is a string with the
|
token in the ```str``` given and ```cdr``` is a string with the
|
||||||
remainder with leading whitespace removed.
|
remainder with leading whitespace removed.
|
||||||
|
|
||||||
|
(string-utf8? str)
|
||||||
|
|
||||||
|
* ```str``` - arbitrary string
|
||||||
|
|
||||||
|
Returns ```#t``` if given string ```str``` contains UTF-8 characters.
|
||||||
|
|
||||||
|
(string->list/utf8 str)
|
||||||
|
|
||||||
|
* ```str``` - arbitrary string
|
||||||
|
|
||||||
|
Returns a list of strings representing individual (possibly UTF-8)
|
||||||
|
characters of the string.
|
||||||
|
|
||||||
|
(string->qp str)
|
||||||
|
|
||||||
|
* ```str``` - arbitrary string
|
||||||
|
|
||||||
|
Returns a new string with all non-ASCII characters encoded as
|
||||||
|
quoted-printable sequences.
|
||||||
|
|
||||||
### Tag
|
### Tag
|
||||||
|
|
||||||
(import util-tag)
|
(import util-tag)
|
||||||
|
|
|
@ -29,11 +29,15 @@
|
||||||
util-string
|
util-string
|
||||||
(
|
(
|
||||||
string-repeat
|
string-repeat
|
||||||
|
|
||||||
string-first+rest
|
string-first+rest
|
||||||
|
|
||||||
string-utf8?
|
string-utf8?
|
||||||
string-tests!
|
|
||||||
string->list/utf8
|
string->list/utf8
|
||||||
|
|
||||||
string->qp
|
string->qp
|
||||||
|
|
||||||
|
string-tests!
|
||||||
)
|
)
|
||||||
|
|
||||||
(import scheme
|
(import scheme
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue