pip_cmg new feature - struct or class PIMETA(no-stream)
This commit is contained in:
@@ -486,11 +486,14 @@ PICodeParser::MetaMap PICodeParser::parseMeta(PIString & fc) {
|
||||
PIStringList ml = fc.split(',');
|
||||
piForeachC (PIString & m, ml) {
|
||||
int i = m.find('=');
|
||||
if (i < 0) continue;
|
||||
PIString mv = m.mid(i + 1).trim();
|
||||
if (mv.startsWith('\"')) mv.cutLeft(1);
|
||||
if (mv.endsWith('\"')) mv.cutRight(1);
|
||||
ret[m.left(i).trim()] = mv;
|
||||
if (i < 0) {
|
||||
ret[m.trimmed()] = PIString();
|
||||
} else {
|
||||
PIString mv = m.mid(i + 1).trim();
|
||||
if (mv.startsWith('\"')) mv.cutLeft(1);
|
||||
if (mv.endsWith('\"')) mv.cutRight(1);
|
||||
ret[m.left(i).trim()] = mv;
|
||||
}
|
||||
}
|
||||
//piCout << ms << ret;
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user