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 int utf8_unichar_to_encoded_len(char32_t unichar)
{

    if (unichar < 0x80)
        return 1;
    if (unichar < 0x800)
        return 2;
    if (unichar < 0x10000)
        return 3;
    if (unichar < 0x200000)
        return 4;
    if (unichar < 0x4000000)
        return 5;

    return 6;
}
/* expected size used to encode one unicode char */
expected size used to encode one unicode char
expected size used to encode one unicode char
static int utf8_unichar_to_encoded_len(char32_t unichar)
{
    if (unichar < 0x80)
        return 1;
    if (unichar < 0x800)
        return 2;
    if (unichar < 0x10000)
        return 3;
    if (unichar < 0x200000)
        return 4;
    if (unichar < 0x4000000)
        return 5;
    return 6;
}
static int utf8_unichar_to_encoded_len ( char32_t unichar ) { if ( unichar < 0x80 ) return 1 ; if ( unichar < 0x800 ) return 2 ; if ( unichar < 0x10000 ) return 3 ; if ( unichar < 0x200000 ) return 4 ; if ( unichar < 0x4000000 ) return 5 ; return 6 ; }
expected size used to encode one unicode char
expected size used to encode one unicode char