Pure literal encoders.
Each encoder returns program text that, read in its context, denotes exactly the input string, or nil when that context cannot denote it at all (a shell word cannot hold NUL). Encoders never consult a profile: whether a construct is allowed is the solver's business.
Pure literal encoders. Each encoder returns program text that, read in its context, denotes exactly the input string, or nil when that context cannot denote it at all (a shell word cannot hold NUL). Encoders never consult a profile: whether a construct is allowed is the solver's business.
(printf-format s)A printf FORMAT operand whose output is exactly the UTF-8 bytes of s, NUL included. The operand is printable ASCII with no shell quote or expansion characters (' " $ ` become octal), so it survives any quoting context and any forbidden-quote policy. A leading '-' is escaped so no printf can mistake the operand for an option.
A printf FORMAT operand whose output is exactly the UTF-8 bytes of s, NUL
included. The operand is printable ASCII with no shell quote or expansion
characters (' " $ ` become octal), so it survives any quoting context and
any forbidden-quote policy. A leading '-' is escaped so no printf can
mistake the operand for an option.(py-chr s)Python expression with no quote characters at all.
Python expression with no quote characters at all.
(py-double s)Python str literal in double quotes; output is printable ASCII.
Python str literal in double quotes; output is printable ASCII.
(py-single s)Python str literal in single quotes; output is printable ASCII.
Python str literal in single quotes; output is printable ASCII.
(sh-ansi-c s)bash/ksh/zsh $'...' quoting. Control characters as fixed-width octal so a following digit can never extend the escape.
bash/ksh/zsh $'...' quoting. Control characters as fixed-width octal so a following digit can never extend the escape.
(sh-double s)POSIX double quotes. Only \ " $ ` are special inside; escape those.
POSIX double quotes. Only \ " $ ` are special inside; escape those.
(sh-single s)POSIX single quotes. Everything is literal except ', spelled '''.
POSIX single quotes. Everything is literal except ', spelled '\''.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |