diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-12-21 16:32:22 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-12-21 16:32:22 -0500 |
| commit | 46b61d3ed2ae5bd5f74c9d580f5501b1226d9f4e (patch) | |
| tree | 15256a67533f176332fec7a3feb56c6b4b2e4b23 /environment.c | |
| parent | 325b367a1342826fe7174ce45cfab92091d4dbb5 (diff) | |
Add text:by_line()/:by_split()/:by_match()
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 3153a890..8c207d15 100644 --- a/environment.c +++ b/environment.c @@ -393,6 +393,9 @@ env_t *new_compilation_unit(CORD libname) {"Text", TEXT_TYPE, "Text_t", "Text$info", TypedArray(ns_entry_t, {"as_c_string", "Text$as_c_string", "func(text:Text -> CString)"}, {"at", "Text$cluster", "func(text:Text, index:Int -> Text)"}, + {"by_line", "Text$by_line", "func(text:Text -> func(->Text?))"}, + {"by_match", "Text$by_match", "func(text:Text, pattern:Pattern -> func(->Match?))"}, + {"by_split", "Text$by_split", "func(text:Text, pattern=$Pattern'' -> func(->Text?))"}, {"bytes", "Text$utf8_bytes", "func(text:Text -> [Byte])"}, {"codepoint_names", "Text$codepoint_names", "func(text:Text -> [Text])"}, {"ends_with", "Text$ends_with", "func(text,suffix:Text -> Bool)"}, |
