refactor: rename DTree to DValue

This commit is contained in:
udo
2026-06-12 11:05:52 +00:00
parent 941f5aea08
commit 7066da3cde
157 changed files with 1203 additions and 1074 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
:sig
bool DTree::to_bool(bool default_value = false) const
bool DValue::to_bool(bool default_value = false) const
:params
default_value : returned when the value is missing or empty
@@ -7,14 +7,14 @@ return value : the value as a boolean, or `default_value`
:see
>types
0_DTree
0_DValue
json_decode
to_f64
to_u64
to_string
:content
Reads a `DTree` value as a boolean. This is a read accessor: it is `const`, never creates or modifies nodes, and dereferences internal references automatically.
Reads a `DValue` value as a boolean. This is a read accessor: it is `const`, never creates or modifies nodes, and dereferences internal references automatically.
String values such as `true`, `yes`, `on`, and `1` read as true. Values such as `false`, `no`, `off`, `0`, and `null` read as false. Numeric values read as true when non-zero.