(35 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Text.utf8 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Text.utf8 \- get UTF8 bytes8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Text.utf8\ :\ func(text:\ Text\ ->\ [Byte])13 .fi14 .SH DESCRIPTION15 Converts a `Text` value to a list of bytes representing a UTF8 encoding of the text.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 text Text The text to be converted to UTF8 bytes.26 .TE27 .SH RETURN28 A list of bytes (`[Byte]`) representing the text in UTF8 encoding.30 .SH EXAMPLES31 .EX32 assert "AmΓ©lie".utf8() == [65, 109, 195, 169, 108, 105, 101]33 .EE34 .SH SEE ALSO35 .BR Tomo-Text (3)