(35 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Text.from_c_string 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Text.from_c_string \- convert C-style string to text8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Text.from_c_string\ :\ func(str:\ CString\ ->\ Text)13 .fi14 .SH DESCRIPTION15 Converts a C-style string to a `Text` value.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 str CString The C-style string to be converted.26 .TE27 .SH RETURN28 A `Text` value representing the C-style string.30 .SH EXAMPLES31 .EX32 assert Text.from_c_string(CString("Hello")) == "Hello"33 .EE34 .SH SEE ALSO35 .BR Tomo-Text (3)