1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Refactor TrackDesignRepository to use FileIndex

This commit is contained in:
Ted John
2017-08-30 21:01:07 +01:00
parent 92b17b149c
commit 8808444562
5 changed files with 106 additions and 161 deletions

View File

@@ -142,6 +142,11 @@ namespace String
}
}
bool StartsWith(const std::string &str, const std::string &match, bool ignoreCase)
{
return StartsWith(str.c_str(), match.c_str(), ignoreCase);
}
size_t IndexOf(const utf8 * str, utf8 match, size_t startIndex)
{
const utf8 * ch = str + startIndex;