Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <string_matcher.hpp>
Classes | |
class | always_false |
class | always_true |
class | equal |
class | list |
class | match_visitor |
class | matcher |
class | prefix |
class | print_visitor |
class | substring |
Public Member Functions | |
StringMatcher () | |
StringMatcher (bool result) | |
StringMatcher (const char *str) | |
StringMatcher (const std::string &str) | |
StringMatcher (const std::vector< std::string > &strings) | |
template<typename TMatcher , typename X = typename std::enable_if< std::is_base_of<matcher, TMatcher>::value, void>::type> | |
StringMatcher (TMatcher &&matcher) | |
bool | operator() (const char *str) const noexcept |
bool | operator() (const std::string &str) const noexcept |
template<typename TChar , typename TTraits > | |
void | print (std::basic_ostream< TChar, TTraits > &out) const |
Private Types | |
using | matcher_type = boost::variant< always_false, always_true, equal, prefix, substring, list > |
Private Attributes | |
matcher_type | m_matcher |
Implements various string matching functions.
|
private |
|
inline |
Create a string matcher that will never match.
|
inline |
Create a string matcher that will always or never match based on the argument. Shortcut for
or
|
inline |
Create a string matcher that will match the specified string. Shortcut for
|
inline |
Create a string matcher that will match the specified string. Shortcut for
|
inline |
Create a string matcher that will match if any of the strings match. Shortcut for
|
inline |
Create a string matcher.
TMatcher | Must be one of the matcher classes osmium::StringMatcher::always_false, always_true, equal, prefix, substring, regex or list. |
|
inlinenoexcept |
Match the specified string.
|
inlinenoexcept |
Match the specified string.
|
inline |
|
private |