blob: 32e6e4f5942192a7b82ff21509dd5e051f82af7d (
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
|
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Text.from_c_string 3 2025-11-29 "Tomo man-pages"
.SH NAME
Text.from_c_string \- convert C-style string to text
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Text.from_c_string\ :\ func(str:\ CString\ ->\ Text)
.fi
.SH DESCRIPTION
Converts a C-style string to a `Text` value.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx
l l l.
Name Type Description
str CString The C-style string to be converted.
.TE
.SH RETURN
A `Text` value representing the C-style string.
.SH EXAMPLES
.EX
assert Text.from_c_string(CString("Hello")) == "Hello"
.EE
.SH SEE ALSO
.BR Tomo-Text (3)
|