src/xci/widgets/TextTerminal.cpp
// Skip custom control seqs in UTF-8 string
Skip custom control seqs in UTF-8 string
Skip custom control seqs in UTF - 8 string
const char* terminal::Attributes::skip(const char* introducer)
{
    auto* it = introducer;
    for (;;) {
        if (*it < 16 || *it > 31)  return it;
        else if (*it < 20)  it += 1;
        else if (*it < 24)  it += 2;
        else if (*it < 28)  it += 3;
        else if (*it < 32)  it += 4;
    }
}
const char * terminal :: Attributes :: skip ( const char * introducer ) { auto * it = introducer ; for ( ; ; ) { if ( * it < 16 || * it > 31 ) return it ; else if ( * it < 20 ) it += 1 ; else if ( * it < 24 ) it += 2 ; else if ( * it < 28 ) it += 3 ; else if ( * it < 32 ) it += 4 ; } }
Skip custom control seqs in UTF-8 string
Skip custom control seqs in UTF - 8 string