aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c3
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"},