String.replace_allΒΆ

replace_all :: fn (str: *string, c: u8, with: ) s32

Replace all found occurrences of character c in the input string with with character and return count of replacements made. This function cannot be used with constant string literals as input.

If with replacement is 0 character, all c occourences will be erased from the string.

Function return count of replaced characters or zero.

Declared in: string.bl