diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:26:55 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:26:55 -0400 |
| commit | 5d6fa135b1eadbceac04e5456fabb7e53feedc10 (patch) | |
| tree | 4d84f88a0a23446f30740e756b6052b1674355ae /environment.c | |
| parent | 9d2e9c02fe7eab797bc6131a5ba1129771a9f3a2 (diff) | |
Add Text:find_all()
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/environment.c b/environment.c index 09935f11..d4ed6c8d 100644 --- a/environment.c +++ b/environment.c @@ -247,7 +247,8 @@ env_t *new_compilation_unit(CORD *libname) {"by", "Range$by", "func(range:Range, step:Int)->Range"}, )}, {"Text", TEXT_TYPE, "Text_t", "$Text", TypedArray(ns_entry_t, - // {"find", "Text$find", "func(text:Text, pattern:Text)->FindResult"}, + {"find", "Text$find", "func(text:Text, pattern:Text)->Int"}, + {"find_all", "Text$find_all", "func(text:Text, pattern:Text)->[Text]"}, {"as_c_string", "CORD_to_char_star", "func(text:Text)->CString"}, {"codepoint_names", "Text$codepoint_names", "func(text:Text)->[Text]"}, {"from_bytes", "Text$from_bytes", "func(bytes:[Int8])->Text"}, |
