diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2026-02-08 22:47:02 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2026-02-08 22:47:02 -0500 |
| commit | 2b7e96835e75e0d153e7f993d1c4fc2add452ddd (patch) | |
| tree | ed1104f60ed35af2bf3c9d8cd66d17f45683f07c /src/stdlib/text.h | |
| parent | 2371542adb017afc87ecc572901107bf493e214f (diff) | |
Added Text.distance(a,b) for text similarity comparisons.
Diffstat (limited to 'src/stdlib/text.h')
| -rw-r--r-- | src/stdlib/text.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdlib/text.h b/src/stdlib/text.h index 856b173a..7259b545 100644 --- a/src/stdlib/text.h +++ b/src/stdlib/text.h @@ -116,6 +116,7 @@ Int_t Text$width(Text_t text, Text_t language); Text_t Text$left_pad(Text_t text, Int_t width, Text_t padding, Text_t language); Text_t Text$right_pad(Text_t text, Int_t width, Text_t padding, Text_t language); Text_t Text$middle_pad(Text_t text, Int_t width, Text_t padding, Text_t language); +double Text$distance(Text_t a, Text_t b, Text_t language); int32_t Text$get_grapheme_fast(TextIter_t *state, int64_t index); uint32_t Text$get_main_grapheme_fast(TextIter_t *state, int64_t index); Int_t Text$memory_size(Text_t text); |
