20 lines
496 B
Plaintext
20 lines
496 B
Plaintext
:sig
|
|
String DValue::to_string(String default_value = "") const
|
|
|
|
:params
|
|
String : fallback returned when conversion is not possible
|
|
return value : converted value or the fallback
|
|
|
|
:see
|
|
>types
|
|
0_DValue
|
|
2_DValue_get_by_path
|
|
|
|
:content
|
|
Returns the stored string, converts f64/bool/pointer values to text, and returns the default for empty strings, maps, unresolved references, or unknown types. Bool text is `(true)` or `(false)`.
|
|
|
|
:example
|
|
DValue value;
|
|
value = true;
|
|
print(value.to_string(), "\n");
|