src/libtsduck/dtv/descriptors/tsStreamEventDescriptor.cpp
bool ts::StreamEventDescriptor::asciiPrivate() const
{
    bool ascii = !private_data.empty();
    for (size_t i = 0; ascii && i < private_data.size(); ++i) {
        ascii = private_data[i] >= 0x20 && private_data[i] < 0x80;
    }
    return ascii;
}
//----------------------------------------------------------------------------
// Check if all bytes in private part are ASCII characters.
//----------------------------------------------------------------------------
Check if all bytes in private part are ASCII characters.
Check if all bytes in private part are ASCII characters .
bool ts::StreamEventDescriptor::asciiPrivate() const
{
    bool ascii = !private_data.empty();
    for (size_t i = 0; ascii && i < private_data.size(); ++i) {
        ascii = private_data[i] >= 0x20 && private_data[i] < 0x80;
    }
    return ascii;
}
bool ts :: StreamEventDescriptor :: asciiPrivate ( ) const { bool ascii = ! private_data . empty ( ) ; for ( size_t i = 0 ; ascii && i < private_data . size ( ) ; ++ i ) { ascii = private_data [ i ] >= 0x20 && private_data [ i ] < 0x80 ; } return ascii ; }
Check if all bytes in private part are ASCII characters.
Check if all bytes in private part are ASCII characters .