This repository has been archived on 2025-03-22. You can view files and clone it, but cannot push or open issues or pull requests.
organicmaps-tmp/indexer/search_delimiters.hpp

26 lines
445 B
C++

#pragma once
#include "base/string_utils.hpp"
#include <vector>
namespace search
{
class Delimiters
{
public:
bool operator()(strings::UniChar c) const;
};
class DelimitersWithExceptions
{
public:
explicit DelimitersWithExceptions(std::vector<strings::UniChar> const & exceptions);
bool operator()(strings::UniChar c) const;
private:
std::vector<strings::UniChar> m_exceptions;
Delimiters m_delimiters;
};
} // namespace search