aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Text.from_bytes.3
blob: 2bcdccfb0d884eccca8fe20126592b8043bd7dcb (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
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Text.from_bytes 3 2025-04-19T14:30:40.367429 "Tomo man-pages"
.SH NAME
Text.from_bytes \- Returns text that has been constructed from the given UTF8 bytes. Note: the text will be normalized, so the resulting text's UTF8 bytes may not exactly match the input.

.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI "Text.from_bytes : func(bytes: [Byte] -> [Text])"
.fi

.SH DESCRIPTION
Returns text that has been constructed from the given UTF8 bytes. Note: the text will be normalized, so the resulting text's UTF8 bytes may not exactly match the input.


.TS
allbox;
lb lb lbx lb
l l l l.
Name	Type	Description	Default
bytes	[Byte]	The UTF-8 bytes of the desired text. 	-
.TE
.SH RETURN
A new text based on the input UTF8 bytes after normalization has been applied.

.SH EXAMPLES
.EX
>> Text.from_bytes([195, 133, 107, 101])
= "Åke"
.EE