MCPcopy Create free account
hub / github.com/bytedance/bolt / matchSubstring

Function matchSubstring

bolt/type/TimestampConversion.cpp:1018–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016
1017 if (!tryParseTimestampString(str, len, pos, resultTimestamp)) {
1018 return std::nullopt;
1019 }
1020
1021 int16_t timezoneID = -1;
1022
1023 if (pos < len && characterIsSpace(str[pos])) {
1024 pos++;
1025 }
1026
1027 // If there is anything left to parse, it must be a timezone definition.
1028 if (pos < len) {
1029 size_t timezonePos = pos;
1030 while (timezonePos < len && !characterIsSpace(str[timezonePos])) {
1031 timezonePos++;

Callers 1

Calls 3

sizeMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected