cleanup, docs
This commit is contained in:
@@ -6,12 +6,14 @@ 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)`.
|
||||
|
||||
```cpp
|
||||
String title = row["title"].to_string("Untitled");
|
||||
```
|
||||
:example
|
||||
DValue value;
|
||||
value = true;
|
||||
print(value.to_string(), "\n");
|
||||
|
||||
Reference in New Issue
Block a user