mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-28 12:13:06 +00:00
Rename splitString to generatePatternArray as it no longer only splits the string
This commit is contained in:
parent
b3111a466e
commit
c027d2d927
1 changed files with 2 additions and 2 deletions
|
|
@ -943,7 +943,7 @@ namespace MWGui
|
|||
|
||||
namespace
|
||||
{
|
||||
std::vector<std::string> splitString(std::string inputString)
|
||||
std::vector<std::string> generatePatternArray(std::string inputString)
|
||||
{
|
||||
Misc::StringUtils::lowerCaseInPlace(inputString);
|
||||
std::istringstream stringStream(inputString);
|
||||
|
|
@ -956,7 +956,7 @@ namespace MWGui
|
|||
|
||||
Misc::StringUtils::lowerCaseInPlace(corpus);
|
||||
|
||||
const std::vector<std::string> patternArray = splitString(patternString);
|
||||
const std::vector<std::string> patternArray = generatePatternArray(patternString);
|
||||
|
||||
double numberOfMatches = 0.0;
|
||||
for (const std::string& word : patternArray)
|
||||
|
|
|
|||
Loading…
Reference in a new issue