This commit is contained in:
root
2026-06-15 21:42:50 +00:00
parent 34a97e2577
commit 99cd92fb4a
126 changed files with 1615 additions and 1057 deletions
+5
View File
@@ -23,6 +23,11 @@ struct DValue {
// conversions take an optional default that is returned when the value is
// missing (empty) or cannot be converted to the requested type.
void each(std::function <void (const DValue& t, String key)> f) const;
StringList keys() const;
DValue values() const;
DValue filter(StringList keys) const;
DValue filter(std::function<bool (const DValue&, String)> f) const;
DValue map(std::function<DValue (const DValue&, String)> f) const;
bool is_array() const;
bool is_list() const;
String to_string(String default_value = "") const;