| 1004 | if (pos1 > pos2 || pos2 >= str.size()) { |
| 1005 | return false; |
| 1006 | } |
| 1007 | std::string_view sub = str.substr(pos1, pos2 - pos1); |
| 1008 | return targets.find(sub) != targets.end(); |
| 1009 | } |
| 1010 | |
| 1011 | std::optional<std::pair<Timestamp, int16_t>> fromTimestampWithTimezoneString( |
| 1012 | const char* str, |
| 1013 | size_t len) { |
| 1014 | size_t pos; |
| 1015 | Timestamp resultTimestamp; |
| 1016 | |
| 1017 | if (!tryParseTimestampString(str, len, pos, resultTimestamp)) { |
| 1018 | return std::nullopt; |
| 1019 | } |
no test coverage detected