C++ (Qt)QString input;QString nameValue = input.split(";").at(0).trimmed();if (!nameValue.isEmpty()){ QStringList nameValueList = nameValue.split(" = "); QString name = nameValueList.at(0), value = nameValueList.at(1);}
C++ (Qt)void ParseIniLine( const QString & txt, QStringRef result[2] ){ QStringRef src = BeforeFirst(txt, ';').trimmed(); result[0] = BeforeFirst(src, '=').trimmed(); result[1] = AfterFirst(src, '=').trimmed(); }
boost::property_tree::ini_parser::read_ini