| 184 | } |
| 185 | |
| 186 | bool parse_time_field( |
| 187 | const std::string& whole, size_t& pos, int& value, size_t width = 2) |
| 188 | { |
| 189 | std::string string; |
| 190 | if (parse_time_string(whole, pos, string, width)) { |
| 191 | if (OpenDDS::DCPS::convertToInteger(string, value) && string[0] != '-') { |
| 192 | return true; |
| 193 | } |
| 194 | } |
| 195 | if (security_debug.access_error) { |
| 196 | ACE_ERROR((LM_ERROR, "(%P|%t) ERROR: {access_error} parse_time_field: " |
| 197 | "failed to get field at pos %B in \"%C\"\n", |
| 198 | pos, whole.c_str())); |
| 199 | } |
| 200 | return false; |
| 201 | } |
| 202 | |
| 203 | bool parse_time_char_or_end( |
| 204 | const std::string& whole, size_t& pos, const std::string& choices, char& c, bool& end) |
no test coverage detected