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

Method ValidatePostCode

libs/indexer/editable_map_object.cpp:537–542  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

535
536// static
537bool EditableMapObject::ValidatePostCode(string const & postCode)
538{
539 if (postCode.empty())
540 return true;
541 return search::LooksLikePostcode(postCode, false /* IsPrefix */);
542}
543
544// static
545bool EditableMapObject::ValidatePhoneList(string const & phone)

Callers

nothing calls this directly

Calls 2

LooksLikePostcodeFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected