diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-09 20:10:39 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-09 20:10:39 -0400 |
| commit | 25d85a501d0e5fb8bd9a76376e3868713dd56fdb (patch) | |
| tree | 9ba81bb51b41d19284ba02ec1197ae81f31b263c /man/man3/tomo-Text.utf16.3 | |
| parent | fb216e955f04a803f11953be27e76bd4d2c9e76d (diff) | |
| parent | d64dcab138a34d5f5105e08f0a840f7cb5a1d159 (diff) | |
Merge branch 'main' into table-colonstable-colons
Diffstat (limited to 'man/man3/tomo-Text.utf16.3')
| -rw-r--r-- | man/man3/tomo-Text.utf16.3 | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/man/man3/tomo-Text.utf16.3 b/man/man3/tomo-Text.utf16.3 new file mode 100644 index 00000000..2b3da2b1 --- /dev/null +++ b/man/man3/tomo-Text.utf16.3 @@ -0,0 +1,36 @@ +'\" t +.\" Copyright (c) 2025 Bruce Hill +.\" All rights reserved. +.\" +.TH Text.utf16 3 2025-09-09 "Tomo man-pages" +.SH NAME +Text.utf16 \- get UTF16 codepoints +.SH LIBRARY +Tomo Standard Library +.SH SYNOPSIS +.nf +.BI Text.utf16\ :\ func(text:\ Text\ ->\ [Int16]) +.fi +.SH DESCRIPTION +Returns a list of Unicode code points for UTF16 encoding of the text. + + +.SH ARGUMENTS + +.TS +allbox; +lb lb lbx lb +l l l l. +Name Type Description Default +text Text The text from which to extract Unicode code points. - +.TE +.SH RETURN +A list of 16-bit integer Unicode code points (`[Int16]`). + +.SH EXAMPLES +.EX +>> "Åke".utf16() += [197, 107, 101] +>> "こんにちは世界".utf16() += [12371, 12435, 12395, 12385, 12399, 19990, 30028] +.EE |
