aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Text.from_utf8.3
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-09 20:10:39 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-09 20:10:39 -0400
commit25d85a501d0e5fb8bd9a76376e3868713dd56fdb (patch)
tree9ba81bb51b41d19284ba02ec1197ae81f31b263c /man/man3/tomo-Text.from_utf8.3
parentfb216e955f04a803f11953be27e76bd4d2c9e76d (diff)
parentd64dcab138a34d5f5105e08f0a840f7cb5a1d159 (diff)
Merge branch 'main' into table-colonstable-colons
Diffstat (limited to 'man/man3/tomo-Text.from_utf8.3')
-rw-r--r--man/man3/tomo-Text.from_utf8.337
1 files changed, 37 insertions, 0 deletions
diff --git a/man/man3/tomo-Text.from_utf8.3 b/man/man3/tomo-Text.from_utf8.3
new file mode 100644
index 00000000..ead65dc6
--- /dev/null
+++ b/man/man3/tomo-Text.from_utf8.3
@@ -0,0 +1,37 @@
+'\" t
+.\" Copyright (c) 2025 Bruce Hill
+.\" All rights reserved.
+.\"
+.TH Text.from_utf8 3 2025-09-09 "Tomo man-pages"
+.SH NAME
+Text.from_utf8 \- convert UTF8 byte list to text
+.SH LIBRARY
+Tomo Standard Library
+.SH SYNOPSIS
+.nf
+.BI Text.from_utf8\ :\ func(bytes:\ [Byte]\ ->\ [Text])
+.fi
+.SH DESCRIPTION
+Returns text that has been constructed from the given UTF8 bytes.
+
+
+.SH ARGUMENTS
+
+.TS
+allbox;
+lb lb lbx lb
+l l l l.
+Name Type Description Default
+bytes [Byte] The UTF-8 bytes of the desired text. -
+.TE
+.SH RETURN
+A new text based on the input UTF8 bytes after normalization has been applied.
+
+.SH NOTES
+The text will be normalized, so the resulting text's UTF8 bytes may not exactly match the input.
+
+.SH EXAMPLES
+.EX
+>> Text.from_utf8([195, 133, 107, 101])
+= "Åke"
+.EE