aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Text.utf16.3
blob: 2b3da2b19d17d7ef7d9be457582f2b07260d1954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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