MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / SuffixTable

Method SuffixTable

src/extractor/suffix_table.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12SuffixTable::SuffixTable(ScriptingEnvironment &scripting_environment)
13{
14 suffixes = scripting_environment.GetNameSuffixList();
15
16 for (auto &suffix : suffixes)
17 boost::algorithm::to_lower(suffix);
18
19 auto into = std::inserter(suffix_set, end(suffix_set));
20 auto to_view = [](const auto &s) { return std::string_view{s}; };
21 std::transform(begin(suffixes), end(suffixes), into, to_view);
22}
23
24bool SuffixTable::isSuffix(const std::string &possible_suffix) const
25{

Callers

nothing calls this directly

Calls 1

GetNameSuffixListMethod · 0.45

Tested by

no test coverage detected