diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:07:08 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:07:08 -0400 |
| commit | 6d7e09bf1801c2fe183df17cc67017a6d3d8513b (patch) | |
| tree | 2c51df15ebab45a68ec36e9466e8e9f3813b48f6 /environment.c | |
| parent | 9214e621bf7fdaec29b872a5b0e757806fa61b40 (diff) | |
Add Text:split() and use that with an empty pattern instead of Text:clusters()
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 3 |
1 files changed, 1 insertions, 2 deletions
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"}, |
