Function utf_strchr¶
Defined in File utf.h
Function Documentation¶
-
string
utf_strchr
(string s, rune ch, usize *i)¶ Find first occurrence of character
ch
in stringc
.- 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.