MCPcopy Create free account
hub / github.com/comaps/comaps / IsShort

Function IsShort

3party/open-location-code/openlocationcode.cc:405–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405bool IsShort(const std::string &code) {
406 // Check it's valid.
407 if (!IsValid(code)) {
408 return false;
409 }
410 // If there are less characters than expected before the SEPARATOR.
411 if (code.find(internal::kSeparator) < internal::kSeparatorPosition) {
412 return true;
413 }
414 return false;
415}
416
417bool IsFull(const std::string &code) {
418 if (!IsValid(code)) {

Callers 3

SearchPlusCodeMethod · 0.85
RecoverNearestFunction · 0.85
IsFullFunction · 0.85

Calls 2

IsValidFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected