Changeset 8692 for trunk/mgpp/text/QueryLex.cpp
- Timestamp:
- 2004-11-29T15:43:11+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mgpp/text/QueryLex.cpp
r3365 r8692 27 27 UCArray &text, 28 28 int len) { 29 if (text.capacity() < text.size() + len + 1) { 30 text.reserve(text.size + len + 1); 31 } 29 32 while (len > 0) { 30 33 text.push_back (*here++); 31 len--;34 --len; 32 35 } 33 36 } … … 148 151 if (!ParseTerm (here, end, el.text)) return false; 149 152 150 UCArray AND; SetCStr (AND, "AND"); 151 if (el.text == AND) { 153 //UCArray AND; SetCStr (AND, "AND"); 154 //if (el.text == AND) { 155 if (UCArrayCStrEquals(el.text, "AND")) { 152 156 el.lexType = AndOpE; 153 157 return true; 154 158 } 155 UCArray OR; SetCStr (OR, "OR"); 156 if (el.text == OR) { 159 //UCArray OR; SetCStr (OR, "OR"); 160 //if (el.text == OR) { 161 if (UCArrayCStrEquals(el.text, "OR")) { 157 162 el.lexType = OrOpE; 158 163 return true; 159 164 } 160 UCArray NOT; SetCStr (NOT, "NOT"); 161 if (el.text == NOT) { 165 //UCArray NOT; SetCStr (NOT, "NOT"); 166 //if (el.text == NOT) { 167 if (UCArrayCStrEquals(el.text, "NOT")) { 162 168 el.lexType = NotOpE; 163 169 return true;
Note:
See TracChangeset
for help on using the changeset viewer.