diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-19 13:27:27 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-19 13:27:27 -0500 |
| commit | ccada385c4fdc2dc320b0ab468c7413ff27bcc7d (patch) | |
| tree | a9a70ea9b014212952c8d61a0bb5a0ff58a45f88 /environment.c | |
| parent | e97c3850b817f6bda6f7ea3fff5c345c5f48bcd8 (diff) | |
Add Text.at(i) for getting a single cluster
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 3781b4d4..3ded0af3 100644 --- a/environment.c +++ b/environment.c @@ -385,6 +385,7 @@ 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)"}, {"codepoint_names", "Text$codepoint_names", "func(text:Text -> [Text])"}, {"ends_with", "Text$ends_with", "func(text,suffix:Text -> Bool)"}, {"each", "Text$each", "func(text:Text, pattern:Pattern, fn:func(match:Match))"}, |
