openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/systemd/1_242+AUTOINC+db2e367bfc-r0/git/src/basic/utf8.c
static size_t utf8_encoded_expected_len(uint8_t c)
{
    if (c < 0x80)
        return 1;
    if ((c & 0xe0) == 0xc0)
        return 2;
    if ((c & 0xf0) == 0xe0)
        return 3;
    if ((c & 0xf8) == 0xf0)
        return 4;
    if ((c & 0xfc) == 0xf8)
        return 5;
    if ((c & 0xfe) == 0xfc)
        return 6;

    return 0;
}
/* count of characters used to encode one unicode char */
count of characters used to encode one unicode char
count of characters used to encode one unicode char
static size_t utf8_encoded_expected_len(uint8_t c)
{
    if (c < 0x80)
        return 1;
    if ((c & 0xe0) == 0xc0)
        return 2;
    if ((c & 0xf0) == 0xe0)
        return 3;
    if ((c & 0xf8) == 0xf0)
        return 4;
    if ((c & 0xfc) == 0xf8)
        return 5;
    if ((c & 0xfe) == 0xfc)
        return 6;
    return 0;
}
static size_t utf8_encoded_expected_len ( uint8_t c ) { if ( c < 0x80 ) return 1 ; if ( ( c & 0xe0 ) == 0xc0 ) return 2 ; if ( ( c & 0xf0 ) == 0xe0 ) return 3 ; if ( ( c & 0xf8 ) == 0xf0 ) return 4 ; if ( ( c & 0xfc ) == 0xf8 ) return 5 ; if ( ( c & 0xfe ) == 0xfc ) return 6 ; return 0 ; }
count of characters used to encode one unicode char
count of characters used to encode one unicode char