Function utf_strchr

Function Documentation

string utf_strchr(string s, rune ch, usize *i)

Find first occurrence of character ch in string c.

Return

Slice of s string, starting at first occurence. Points to nil with zero (0) length if no such character is found.

Parameters
  • [in] s: String to search through.

  • [in] ch: Rune/character to find.

  • [out] i: Pointer to be set to index of character in string.