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
+6 -6
View File
@@ -1,12 +1,12 @@
:sig
DTree regex_search_all(String pattern, String subject)
DTree regex_search_all(String pattern, String subject, String flags)
DValue regex_search_all(String pattern, String subject)
DValue regex_search_all(String pattern, String subject, String flags)
:params
pattern : PCRE2 regular expression pattern
subject : string to search
flags : optional regex flags
return value : a DTree containing all non-overlapping matches
return value : a DValue containing all non-overlapping matches
:see
>regex
@@ -14,7 +14,7 @@ regex_match
regex_search
regex_replace
regex_split
0_DTree
0_DValue
:content
Finds every non-overlapping match of `pattern` in `subject`.
@@ -22,9 +22,9 @@ Finds every non-overlapping match of `pattern` in `subject`.
Example:
```uce
DTree tags = regex_search_all("#(?<tag>[A-Za-z0-9_]+)", "Ship #uce and #docs");
DValue tags = regex_search_all("#(?<tag>[A-Za-z0-9_]+)", "Ship #uce and #docs");
tags["matches"].each([](DTree match, String key) {
tags["matches"].each([](DValue match, String key) {
print(match["named"]["tag"].to_string(), "\n");
});
```