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
+5 -5
View File
@@ -1,12 +1,12 @@
:sig
DTree regex_search(String pattern, String subject)
DTree regex_search(String pattern, String subject, String flags)
DValue regex_search(String pattern, String subject)
DValue regex_search(String pattern, String subject, String flags)
:params
pattern : PCRE2 regular expression pattern
subject : string to search
flags : optional regex flags
return value : a DTree describing the first match
return value : a DValue describing the first match
:see
>regex
@@ -14,7 +14,7 @@ regex_match
regex_search_all
regex_replace
regex_split
0_DTree
0_DValue
:content
Searches `subject` for the first occurrence of `pattern` and returns structured match data.
@@ -22,7 +22,7 @@ Searches `subject` for the first occurrence of `pattern` and returns structured
Example:
```uce
DTree match = regex_search(
DValue match = regex_search(
"(?<user>[A-Za-z0-9._%+-]+)@(?<host>[A-Za-z0-9.-]+)",
"Contact ops@example.test"
);