uce/site/doc/pages/2_DValue_to_string.txt
2026-06-15 21:42:50 +00:00

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");
```