18 lines
482 B
Plaintext
18 lines
482 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
|
|
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)`.
|
|
|
|
```cpp
|
|
String title = row["title"].to_string("Untitled");
|
|
```
|