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

Method GetNameSuffixList

src/extractor/scripting_environment_lua.cpp:1210–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1208}
1209
1210std::vector<std::string> Sol2ScriptingEnvironment::GetNameSuffixList()
1211{
1212 auto &context = GetSol2Context();
1213 switch (context.api_version)
1214 {
1215 case 4:
1216 case 3:
1217 case 2:
1218 return Sol2ScriptingEnvironment::GetStringListFromTable("suffix_list");
1219 case 1:
1220 return Sol2ScriptingEnvironment::GetStringListFromFunction("get_name_suffix_list");
1221 default:
1222 return {};
1223 }
1224}
1225
1226std::vector<std::string> Sol2ScriptingEnvironment::GetRestrictions()
1227{

Callers 1

SuffixTableMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected