(39 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Text.from_utf16 3 2026-03-08 "Tomo man-pages"6 .SH NAME7 Text.from_utf16 \- convert UTF16 list to text8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Text.from_utf16\ :\ func(bytes:\ [Int16]\ ->\ [Text])13 .fi14 .SH DESCRIPTION15 Returns text that has been constructed from the given UTF16 sequence.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 bytes [Int16] The UTF-16 integers of the desired text.26 .TE27 .SH RETURN28 A new text based on the input UTF16 sequence after normalization has been applied.30 .SH NOTES31 The text will be normalized, so the resulting text's UTF16 sequence may not exactly match the input.33 .SH EXAMPLES34 .EX35 assert Text.from_utf16([197, 107, 101]) == "Γ ke"36 assert Text.from_utf16([12371, 12435, 12395, 12385, 12399, 19990, 30028]) == "γγγ«γ‘γ―δΈη"37 .EE38 .SH SEE ALSO39 .BR Tomo-Text (3)