Function read_rune

Function Documentation

rune read_rune(string s, usize *i)

Step through a string, one rune/character at a time. Given the previous index, and updating the index to the begining of the next character.

Return

The character (rune).

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

  • [inout] i: Index with value of current position in the string, updating to the next start-of-character byte.