aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-CString.as_text.3
blob: 463a6f98305bf0b24cb9c95860ff842b3d97221c (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
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH CString.as_text 3 2025-10-18 "Tomo man-pages"
.SH NAME
CString.as_text \- convert a C string to Text
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI CString.as_text\ :\ func(str:\ CString\ ->\ Text)
.fi
.SH DESCRIPTION
Convert a C string to Text.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx lb
l l l l.
Name	Type	Description	Default
str	CString	The C string. 	-
.TE
.SH RETURN
The C string as a Text.

.SH EXAMPLES
.EX
assert CString("Hello").as_text() == "Hello"
.EE