diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-12 18:12:53 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-12 18:12:53 -0400 |
| commit | a3c4e0a82d5b56e280cbf72af2ecf5a990b1f577 (patch) | |
| tree | e7b386efbe57d6c922130f56e056d62d8ee012ad /examples/base64 | |
| parent | 904917a2bd3b2e03bf2c399b5bc5f5e357d404a2 (diff) | |
Rename `without_escaping()` -> `from_text()`
Diffstat (limited to 'examples/base64')
| -rw-r--r-- | examples/base64/base64.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/base64/base64.tm b/examples/base64/base64.tm index 4e4cc8b1..fadfed20 100644 --- a/examples/base64/base64.tm +++ b/examples/base64/base64.tm @@ -59,7 +59,7 @@ lang Base64: output[dest+2] = _EQUAL_BYTE output[dest+3] = _EQUAL_BYTE - return Base64.without_escaping(Text.from_bytes(output[]) or return none) + return Base64.from_text(Text.from_bytes(output[]) or return none) func decode_text(b64:Base64 -> Text?): return Text.from_bytes(b64:decode_bytes() or return none) @@ -90,7 +90,7 @@ lang Base64: func main(input=(/dev/stdin), decode=no): if decode: - b := Base64.without_escaping(input:read()!) + b := Base64.from_text(input:read()!) say(b:decode_text()!) else: text := input:read()! |
