///////////////////////////////////////////////////////////////////////////
| 1225 | |
| 1226 | //////////////////////////////////////////////////////////////////////////////// |
| 1227 | void Context::decomposeSortField(const std::string& field, std::string& key, bool& ascending, |
| 1228 | bool& breakIndicator) { |
| 1229 | int length = field.length(); |
| 1230 | |
| 1231 | int decoration = 1; |
| 1232 | breakIndicator = false; |
| 1233 | if (field[length - decoration] == '/') { |
| 1234 | breakIndicator = true; |
| 1235 | ++decoration; |
| 1236 | } |
| 1237 | |
| 1238 | if (field[length - decoration] == '+') { |
| 1239 | ascending = true; |
| 1240 | key = field.substr(0, length - decoration); |
| 1241 | } else if (field[length - decoration] == '-') { |
| 1242 | ascending = false; |
| 1243 | key = field.substr(0, length - decoration); |
| 1244 | } else { |
| 1245 | ascending = true; |
| 1246 | key = field; |
| 1247 | } |
| 1248 | } |
| 1249 | |
| 1250 | //////////////////////////////////////////////////////////////////////////////// |
| 1251 | void Context::debugTiming(const std::string& details, const Timer& timer) { |
no outgoing calls
no test coverage detected