furi_string_utf8_decode

Function furi_string_utf8_decode 

Source
pub unsafe extern "C" fn furi_string_utf8_decode(
    c: c_char,
    state: *mut FuriStringUTF8State,
    unicode: *mut FuriStringUnicodeValue,
)
Expand description

Main generic UTF8 decoder

It takes a character, and the previous state and the previous value of the unicode value. It updates the state and the decoded unicode value. A decoded unicode encoded value is valid only when the state is FuriStringUTF8StateStarting.

ยงArguments

  • c - The character
  • state - The state
  • unicode - The unicode