mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-21 21:03:07 +00:00
Mark function definitions as inline
This commit is contained in:
parent
aec63843f7
commit
dd0bce2406
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
namespace MWGui
|
namespace MWGui
|
||||||
{
|
{
|
||||||
std::vector<std::string> generatePatternArray(const MyGUI::UString& inputString)
|
inline std::vector<std::string> generatePatternArray(const MyGUI::UString& inputString)
|
||||||
{
|
{
|
||||||
if (inputString.empty() || inputString.find_first_not_of(" ") == std::string::npos)
|
if (inputString.empty() || inputString.find_first_not_of(" ") == std::string::npos)
|
||||||
return std::vector<std::string>();
|
return std::vector<std::string>();
|
||||||
|
|
@ -21,7 +21,7 @@ namespace MWGui
|
||||||
std::istringstream stringStream(inputStringLowerCase);
|
std::istringstream stringStream(inputStringLowerCase);
|
||||||
return { std::istream_iterator<std::string>(stringStream), std::istream_iterator<std::string>() };
|
return { std::istream_iterator<std::string>(stringStream), std::istream_iterator<std::string>() };
|
||||||
}
|
}
|
||||||
std::size_t weightedSearch(const std::string& corpus, const std::vector<std::string>& patternArray)
|
inline std::size_t weightedSearch(const std::string& corpus, const std::vector<std::string>& patternArray)
|
||||||
{
|
{
|
||||||
if (patternArray.empty())
|
if (patternArray.empty())
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue