docs
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
: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");
|
||||
```
|
||||
Reference in New Issue
Block a user