aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Text.from_utf16.3
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-09 20:09:53 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-09 20:09:53 -0400
commitb4f2d03db2cd20688d6bb537904998e997bc48aa (patch)
tree380ce33e0ce1b7fa3ce7c88b5ca59a84b58f4821 /man/man3/tomo-Text.from_utf16.3
parentd8a48f64111f542f3afeb5d6e47ff092f9278d9f (diff)
parentd64dcab138a34d5f5105e08f0a840f7cb5a1d159 (diff)
Merge branch 'main' into optional-list-indexingoptional-list-indexing
Diffstat (limited to 'man/man3/tomo-Text.from_utf16.3')
-rw-r--r--man/man3/tomo-Text.from_utf16.339
1 files changed, 39 insertions, 0 deletions
diff --git a/man/man3/tomo-Text.from_utf16.3 b/man/man3/tomo-Text.from_utf16.3
new file mode 100644
index 00000000..d4eaea02
--- /dev/null
+++ b/man/man3/tomo-Text.from_utf16.3
@@ -0,0 +1,39 @@
+'\" t
+.\" Copyright (c) 2025 Bruce Hill
+.\" All rights reserved.
+.\"
+.TH Text.from_utf16 3 2025-09-09 "Tomo man-pages"
+.SH NAME
+Text.from_utf16 \- convert UTF16 list to text
+.SH LIBRARY
+Tomo Standard Library
+.SH SYNOPSIS
+.nf
+.BI Text.from_utf16\ :\ func(bytes:\ [Int16]\ ->\ [Text])
+.fi
+.SH DESCRIPTION
+Returns text that has been constructed from the given UTF16 sequence.
+
+
+.SH ARGUMENTS
+
+.TS
+allbox;
+lb lb lbx lb
+l l l l.
+Name Type Description Default
+bytes [Int16] The UTF-16 integers of the desired text. -
+.TE
+.SH RETURN
+A new text based on the input UTF16 sequence after normalization has been applied.
+
+.SH NOTES
+The text will be normalized, so the resulting text's UTF16 sequence may not exactly match the input.
+
+.SH EXAMPLES
+.EX
+>> Text.from_utf16([197, 107, 101])
+= "Åke"
+>> Text.from_utf16([12371, 12435, 12395, 12385, 12399, 19990, 30028])
+= "こんにちは世界".utf16()
+.EE