aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Text.utf8.3
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-09 20:09:22 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-09 20:09:22 -0400
commitba6d1b12291398c804f5cdf653265a0322ca4a01 (patch)
tree7e8c863817a64ec5ba5b1e457d05581bddf00852 /man/man3/tomo-Text.utf8.3
parentca9eabb810af3aca14aad5c8e0266ddc9286dd99 (diff)
parentd64dcab138a34d5f5105e08f0a840f7cb5a1d159 (diff)
Merge branch 'main' into simplified-quotessimplified-quotes
Diffstat (limited to 'man/man3/tomo-Text.utf8.3')
-rw-r--r--man/man3/tomo-Text.utf8.334
1 files changed, 34 insertions, 0 deletions
diff --git a/man/man3/tomo-Text.utf8.3 b/man/man3/tomo-Text.utf8.3
new file mode 100644
index 00000000..80a91fb9
--- /dev/null
+++ b/man/man3/tomo-Text.utf8.3
@@ -0,0 +1,34 @@
+'\" t
+.\" Copyright (c) 2025 Bruce Hill
+.\" All rights reserved.
+.\"
+.TH Text.utf8 3 2025-09-09 "Tomo man-pages"
+.SH NAME
+Text.utf8 \- get UTF8 bytes
+.SH LIBRARY
+Tomo Standard Library
+.SH SYNOPSIS
+.nf
+.BI Text.utf8\ :\ func(text:\ Text\ ->\ [Byte])
+.fi
+.SH DESCRIPTION
+Converts a `Text` value to a list of bytes representing a UTF8 encoding of the text.
+
+
+.SH ARGUMENTS
+
+.TS
+allbox;
+lb lb lbx lb
+l l l l.
+Name Type Description Default
+text Text The text to be converted to UTF8 bytes. -
+.TE
+.SH RETURN
+A list of bytes (`[Byte]`) representing the text in UTF8 encoding.
+
+.SH EXAMPLES
+.EX
+>> "Amélie".utf8()
+= [65, 109, 195, 169, 108, 105, 101]
+.EE