| 10 | { |
| 11 | |
| 12 | SuffixTable::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 | |
| 24 | bool SuffixTable::isSuffix(const std::string &possible_suffix) const |
| 25 | { |
nothing calls this directly
no test coverage detected