Skip to content
  • Damien George's avatar
    py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. · 19aee943
    Damien George authored
    This patch provides inline versions of the utf8 helper functions for the
    case when unicode is disabled (MICROPY_PY_BUILTINS_STR_UNICODE set to 0).
    This saves code size.
    
    The unichar_charlen function is also renamed to utf8_charlen to match the
    other utf8 helper functions, and the signature of this function is adjusted
    for consistency (const char* -> const byte*, mp_uint_t -> size_t).
    19aee943