mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 12:34:24 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
17
indexer/postcodes_matcher.hpp
Normal file
17
indexer/postcodes_matcher.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "indexer/string_slice.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace search
|
||||
{
|
||||
/// If isPrefix is true returns true if some postcode starts with s.
|
||||
/// If isPrefix is false returns true if s equals to some postcode.
|
||||
bool LooksLikePostcode(StringSliceBase const & slice, bool isPrefix);
|
||||
/// Splits s into tokens and call LooksLikePostcode(TokenSlice) on the result.
|
||||
bool LooksLikePostcode(std::string_view sv, bool isPrefix);
|
||||
|
||||
size_t GetMaxNumTokensInPostcode();
|
||||
} // namespace search
|
||||
Reference in New Issue
Block a user