Files
herolib/vdocs/strings.md
2025-02-07 12:07:32 +03:00

4.0 KiB

module strings

Contents

dice_coefficient

[Return to contents]

find_between_pair_rune

Examples


assert strings.find_between_pair_rune('(V) (NOT V)',`(`,`)`) == 'V'

assert strings.find_between_pair_rune('s {X{Y}} s',`{`,`}`) == 'X{Y}'

[Return to contents]

find_between_pair_string

Examples


assert strings.find_between_pair_string('/*V*/ /*NOT V*/','/*','*/') == 'V'

assert strings.find_between_pair_string('s {{X{{Y}}}} s','{{','}}') == 'X{{Y}}'

[Return to contents]

find_between_pair_u8

Examples


assert strings.find_between_pair_u8('(V) (NOT V)',`(`,`)`) == 'V'

assert strings.find_between_pair_u8('s {X{Y}} s',`{`,`}`) == 'X{Y}'

[Return to contents]

hamming_distance

[Return to contents]

hamming_similarity

[Return to contents]

jaro_similarity

[Return to contents]

jaro_winkler_similarity

[Return to contents]

levenshtein_distance

[Return to contents]

levenshtein_distance_percentage

[Return to contents]

new_builder

[Return to contents]

repeat

[Return to contents]

repeat_string

[Return to contents]

split_capital

Examples


assert strings.split_capital('XYZ') == ['X', 'Y', 'Z']

assert strings.split_capital('XYStar') == ['X', 'Y', 'Star']

[Return to contents]

Builder

[Return to contents]

reuse_as_plain_u8_array

[Return to contents]

write_ptr

[Return to contents]

write_rune

[Return to contents]

write_runes

[Return to contents]

clear

[Return to contents]

write_u8

[Return to contents]

write_byte

[Return to contents]

write_decimal

[Return to contents]

write

[Return to contents]

drain_builder

[Return to contents]

byte_at

[Return to contents]

write_string

[Return to contents]

write_string2

[Return to contents]

go_back

[Return to contents]

spart

[Return to contents]

cut_last

[Return to contents]

cut_to

[Return to contents]

go_back_to

[Return to contents]

writeln

[Return to contents]

writeln2

[Return to contents]

last_n

[Return to contents]

after

[Return to contents]

str

[Return to contents]

ensure_cap

[Return to contents]

grow_len

[Return to contents]

free

[Return to contents]

Powered by vdoc. Generated on: 7 Feb 2025 12:06:55