diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-04 01:34:12 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-04 01:34:12 -0500 |
| commit | 0b7ca098ae1dc5e31485bc505a441d3796f0702b (patch) | |
| tree | b0662c559c96bd704f7c33c9ccc3f33d38f66d8d /environment.c | |
| parent | 1f6aa4cac7af0e00c826d5348b06aed70cbcb3e3 (diff) | |
Fix some bugs relating to NUL termination of strings
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 78c80c4e..483f123f 100644 --- a/environment.c +++ b/environment.c @@ -162,6 +162,10 @@ env_t *new_compilation_unit(void) {"clusters", "Text__clusters", "func(text:Text)->[Text]"}, {"codepoints", "Text__codepoints", "func(text:Text)->[Int32]"}, {"bytes", "Text__bytes", "func(text:Text)->[Int8]"}, + {"num_clusters", "Text__num_clusters", "func(text:Text)->Int"}, + {"num_codepoints", "Text__num_codepoints", "func(text:Text)->Int"}, + {"num_bytes", "Text__num_bytes", "func(text:Text)->Int"}, + {"character_names", "Text__character_names", "func(text:Text)->[Text]"}, )}, }; |
