(36 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Text.utf16 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Text.utf16 \- get UTF16 codepoints8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Text.utf16\ :\ func(text:\ Text\ ->\ [Int16])13 .fi14 .SH DESCRIPTION15 Returns a list of Unicode code points for UTF16 encoding of the text.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 text Text The text from which to extract Unicode code points.26 .TE27 .SH RETURN28 A list of 16-bit integer Unicode code points (`[Int16]`).30 .SH EXAMPLES31 .EX32 assert "Γ ke".utf16() == [197, 107, 101]33 assert "γγγ«γ‘γ―δΈη".utf16() == [12371, 12435, 12395, 12385, 12399, 19990, 30028]34 .EE35 .SH SEE ALSO36 .BR Tomo-Text (3)