MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / noExt

Function noExt

src/Engine/CrossPlatform.cpp:707–715  ·  view source on GitHub ↗

* Removes the extension from a filename. * @param filename Original filename. * @return Filename without the extension. */

Source from the content-addressed store, hash-verified

705 * @return Filename without the extension.
706 */
707std::string noExt(const std::string &filename)
708{
709 size_t dot = filename.find_last_of('.');
710 if (dot == std::string::npos)
711 {
712 return filename;
713 }
714 return filename.substr(0, filename.find_last_of('.'));
715}
716
717/**
718 * Gets the current locale of the system in language-COUNTRY format.

Callers 6

getListMethod · 0.85
getSaveInfoMethod · 0.85
XcomResourcePackMethod · 0.85
RulesetMethod · 0.85
OptionsModsStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected