vlc_linux/vlc-3.0.16/modules/gui/qt/components/sout/profile_selector.cpp
/* Build a double hash structure because we need to make ordered lookups */
Build a double hash structure because we need to make ordered lookups
Build a double hash structure because we need to make ordered lookups
foreach ( const QString &tuple, tuples )
    {
        QStringList keyvalue = tuple.split( "=" );
        if ( keyvalue.count() != 2 ) continue;
        QString key = keyvalue[0];
        value = keyvalue[1];
        keyvalue = key.split( "_" );
        if ( keyvalue.count() != 2 ) continue;
        QString categ = keyvalue[0];
        QString prop = keyvalue[1];
        if ( ! categtopropHash.contains( categ ) )
        {
            proptovalueHash = new proptovalueHashType();
            categtopropHash.insert( categ, proptovalueHash );
        } else {
            proptovalueHash = categtopropHash.value( categ );
        }
        proptovalueHash->insert( prop, value );
    }
foreach ( const QString & tuple , tuples ) { QStringList keyvalue = tuple . split ( " " ) ; if ( keyvalue . count ( ) != 2 ) continue ; QString key = keyvalue [ 0 ] ; value = keyvalue [ 1 ] ; keyvalue = key . split ( " " ) ; if ( keyvalue . count ( ) != 2 ) continue ; QString categ = keyvalue [ 0 ] ; QString prop = keyvalue [ 1 ] ; if ( ! categtopropHash . contains ( categ ) ) { proptovalueHash = new proptovalueHashType ( ) ; categtopropHash . insert ( categ , proptovalueHash ) ; } else { proptovalueHash = categtopropHash . value ( categ ) ; } proptovalueHash -> insert ( prop , value ) ; }
Build a double hash structure because we need to make ordered lookups
Build a double hash structure because we need to make ordered lookups