From 4720ca7a5f3ad4bf2a04a6d28d671f03162149a9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 19 Nov 2024 13:30:45 -0500 Subject: Rename `Text.utf8_bytes` back to `Text.bytes` --- examples/base64/base64.tm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/base64/base64.tm b/examples/base64/base64.tm index 2568a1d1..f3762628 100644 --- a/examples/base64/base64.tm +++ b/examples/base64/base64.tm @@ -1,6 +1,6 @@ # Base 64 encoding and decoding -_enc := "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/":utf8_bytes() +_enc := "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/":bytes() _EQUAL_BYTE := Byte(0x3D) @@ -26,7 +26,7 @@ _dec := [ lang Base64: func parse(text:Text -> Base64?): - return Base64.from_bytes(text:utf8_bytes()) + return Base64.from_bytes(text:bytes()) func from_bytes(bytes:[Byte] -> Base64?): output := [Byte(0) for _ in bytes.length * 4 / 3 + 4] @@ -65,7 +65,7 @@ lang Base64: return Text.from_bytes(b64:decode_bytes() or return !Text) func decode_bytes(b64:Base64 -> [Byte]?): - bytes := b64.text_content:utf8_bytes() + bytes := b64.text_content:bytes() output := [Byte(0) for _ in bytes.length/4 * 3] src := Int64(1) dest := Int64(1) -- cgit v1.2.3