MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / parse_time_field

Function parse_time_field

dds/DCPS/security/AccessControl/XmlUtils.cpp:186–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

parse_timeFunction · 0.85

Calls 2

parse_time_stringFunction · 0.85
convertToIntegerFunction · 0.85

Tested by

no test coverage detected