Document string escapes, including \u{...}
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f07cd79e3e
commit
902ff84662
1 changed files with 2 additions and 0 deletions
|
|
@ -1917,6 +1917,8 @@ For the same reason there is no @code{string-ref} that takes an index. Finding t
|
|||
|
||||
Characters are written @code{#\a}, @code{#\space}, @code{#\newline}. They can be compared with @code{<} and friends or @code{char=?}, converted with @code{char->int} and @code{int->char}, and classified with @code{char-alphabetic?}, @code{char-numeric?}, @code{char-whitespace?}, @code{char-upper-case?} and @code{char-lower-case?}.
|
||||
|
||||
In a string, a backslash begins an escape: @code{\n}, @code{\t}, @code{\r}, @code{\"} and @code{\\}, and @code{\u{...}}, a code point in 1 to 6 hex digits, as in @code{"caf\u{E9}"} or @code{"\u{1F600}"}. An interpolated string also has @code{\$}, a dollar sign that opens no hole. Any other escape is an error, so a backslash is written @code{\\}, or the text is written as a raw string, @code{"""..."""}, which has no escapes. A backslash at the end of a line continues the string on the next. A character can be written by its code point as well, as @code{#\xE9}.
|
||||
|
||||
@subsubsection{Common operations}
|
||||
|
||||
@codeblock[#:lang "bjolang"]|{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue