From 6d7e09bf1801c2fe183df17cc67017a6d3d8513b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 2 Sep 2024 23:07:08 -0400 Subject: Add Text:split() and use that with an empty pattern instead of Text:clusters() --- environment.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'environment.c') diff --git a/environment.c b/environment.c index 2385455a..09935f11 100644 --- a/environment.c +++ b/environment.c @@ -249,7 +249,6 @@ env_t *new_compilation_unit(CORD *libname) {"Text", TEXT_TYPE, "Text_t", "$Text", TypedArray(ns_entry_t, // {"find", "Text$find", "func(text:Text, pattern:Text)->FindResult"}, {"as_c_string", "CORD_to_char_star", "func(text:Text)->CString"}, - {"clusters", "Text$clusters", "func(text:Text)->[Text]"}, {"codepoint_names", "Text$codepoint_names", "func(text:Text)->[Text]"}, {"from_bytes", "Text$from_bytes", "func(bytes:[Int8])->Text"}, {"from_c_string", "Text$from_str", "func(str:CString)->Text"}, @@ -261,7 +260,7 @@ env_t *new_compilation_unit(CORD *libname) {"lower", "Text$lower", "func(text:Text)->Text"}, {"quoted", "Text$quoted", "func(text:Text, color=no)->Text"}, {"replace", "Text$replace", "func(text:Text, pattern:Text, replacement:Text)->Text"}, - {"split", "Text$split", "func(text:Text, split:Text)->[Text]"}, + {"split", "Text$split", "func(text:Text, pattern='')->[Text]"}, {"title", "Text$title", "func(text:Text)->Text"}, {"trimmed", "Text$trimmed", "func(text:Text, trim=\" {\\n\\r\\t}\", where=Where.Anywhere)->Text"}, {"upper", "Text$upper", "func(text:Text)->Text"}, -- cgit v1.2.3