diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-29 12:54:31 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-29 12:54:31 -0400 |
| commit | 04d9adc8138566eec5d6bf7b233a6c617306bcce (patch) | |
| tree | 8414c07e92cdd17613190cd6a8e179b2eed2f00c /builtins/text.h | |
| parent | d94053ca7768037016cbcacc4cadf843dad1bea6 (diff) | |
Switch naming convention to use '$' in symbols more
Diffstat (limited to 'builtins/text.h')
| -rw-r--r-- | builtins/text.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/builtins/text.h b/builtins/text.h index edbd119c..3cda9d7b 100644 --- a/builtins/text.h +++ b/builtins/text.h @@ -18,29 +18,29 @@ typedef struct { int32_t index; } find_result_t; -CORD Text__as_text(const void *str, bool colorize, const TypeInfo *info); -CORD Text__quoted(CORD str, bool colorize); -int Text__compare(const CORD *x, const CORD *y); -bool Text__equal(const CORD *x, const CORD *y); -uint32_t Text__hash(const CORD *cord); -CORD Text__upper(CORD str); -CORD Text__lower(CORD str); -CORD Text__title(CORD str); -bool Text__has(CORD str, CORD target, where_e where); -CORD Text__without(CORD str, CORD target, where_e where); -CORD Text__trimmed(CORD str, CORD skip, where_e where); -find_result_t Text__find(CORD str, CORD pat); -CORD Text__replace(CORD text, CORD pat, CORD replacement, int64_t limit); -array_t Text__split(CORD str, CORD split); -CORD Text__join(CORD glue, array_t pieces); -array_t Text__clusters(CORD text); -array_t Text__codepoints(CORD text); -array_t Text__bytes(CORD text); -int64_t Text__num_clusters(CORD text); -int64_t Text__num_codepoints(CORD text); -int64_t Text__num_bytes(CORD text); -array_t Text__character_names(CORD text); - -extern const TypeInfo Text; +CORD Text$as_text(const void *str, bool colorize, const TypeInfo *info); +CORD Text$quoted(CORD str, bool colorize); +int Text$compare(const CORD *x, const CORD *y); +bool Text$equal(const CORD *x, const CORD *y); +uint32_t Text$hash(const CORD *cord); +CORD Text$upper(CORD str); +CORD Text$lower(CORD str); +CORD Text$title(CORD str); +bool Text$has(CORD str, CORD target, where_e where); +CORD Text$without(CORD str, CORD target, where_e where); +CORD Text$trimmed(CORD str, CORD skip, where_e where); +find_result_t Text$find(CORD str, CORD pat); +CORD Text$replace(CORD text, CORD pat, CORD replacement, int64_t limit); +array_t Text$split(CORD str, CORD split); +CORD Text$join(CORD glue, array_t pieces); +array_t Text$clusters(CORD text); +array_t Text$codepoints(CORD text); +array_t Text$bytes(CORD text); +int64_t Text$num_clusters(CORD text); +int64_t Text$num_codepoints(CORD text); +int64_t Text$num_bytes(CORD text); +array_t Text$character_names(CORD text); + +extern const TypeInfo $Text; // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
