diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 20:22:13 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 20:22:13 -0400 |
| commit | 620ebeab8d6040c20c3278acebeafd02a67057a5 (patch) | |
| tree | 63d9cd54d41d74b2b3f5b870967d3ad2933e5e08 /environment.c | |
| parent | 337aa911a9027602d47cd56ddbfcde0230a48943 (diff) | |
Fixing string methods
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/environment.c b/environment.c index d1639368..db01f4d7 100644 --- a/environment.c +++ b/environment.c @@ -249,25 +249,20 @@ 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"}, - {"bytes", "Text$bytes", "func(text:Text)->[Int8]"}, - {"character_names", "Text$character_names", "func(text:Text)->[Text]"}, {"clusters", "Text$clusters", "func(text:Text)->[Text]"}, - {"codepoints", "Text$codepoints", "func(text:Text)->[Int32]"}, + {"codepoint_names", "Text$codepoint_names", "func(text:Text)->[Text]"}, {"from_c_string", "CORD_from_char_star", "func(str:CString)->Text"}, - {"has", "Text$has", "func(text:Text, target:Text, where=Where.Anywhere)->Bool"}, + {"has", "Text$has", "func(text:Text, pattern:Text)->Bool"}, {"join", "Text$join", "func(glue:Text, pieces:[Text])->Text"}, {"lower", "Text$lower", "func(text:Text)->Text"}, - {"num_bytes", "Text$num_bytes", "func(text:Text)->Int"}, - {"num_clusters", "Text$num_clusters", "func(text:Text)->Int"}, - {"num_codepoints", "Text$num_codepoints", "func(text:Text)->Int"}, {"quoted", "Text$quoted", "func(text:Text, color=no)->Text"}, - {"read_line", "Text$read_line", "func(prompt='')->Text"}, {"replace", "Text$replace", "func(text:Text, pattern:Text, replacement:Text)->Text"}, {"split", "Text$split", "func(text:Text, split:Text)->[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"}, - {"without", "Text$without", "func(text:Text, target:Text, where=Where.Anywhere)->Text"}, + {"utf32_codepoints", "Text$utf32_codepoints", "func(text:Text)->[Int32]"}, + {"utf8_bytes", "Text$utf8_bytes", "func(text:Text)->[Int8]"}, )}, {"Thread", THREAD_TYPE, "pthread_t*", "Thread", TypedArray(ns_entry_t, {"new", "Thread$new", "func(fn:func())->Thread"}, |
