Changeset 10662
- Timestamp:
- 2005-09-28T16:51:04+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/display.cpp
r10141 r10662 1391 1391 // the two quoted strings are compared 1392 1392 bool displayclass::boolexpr (const text_t &package, const text_t &expr, int recursiondepth) { 1393 1394 1393 if (expr.empty()) return false; 1395 1394 … … 1401 1400 } 1402 1401 if (expexpr.empty() || expexpr == "0") return false; 1403 if (expr[0] != '\"') return true; 1404 1402 // allow \" as start of exp as well as ", cos this is what the GLI writes out 1403 if (expr[0] != '\"' && !(expr[0] == '\\' && expr[1] == '"')) { 1404 return true; 1405 } 1405 1406 // don't use expexpr while separating quoted parts of 1406 1407 // expression just in case expanded out macros contain … … 1424 1425 op.clear(); 1425 1426 while (here != end) { 1426 if (*here == '"') ++quotecount; 1427 if (*here == '\\' && *(here+1) =='"') { 1428 ++quotecount; // found an escaped quote 1429 ++here; 1430 } 1431 else if (*here == '"') ++quotecount; 1427 1432 else if (quotecount == 1) string1.push_back(*here); 1428 1433 else if ((quotecount == 2) && !is_unicode_space (*here))
Note:
See TracChangeset
for help on using the changeset viewer.