MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / pathUniform

Function pathUniform

LuaSTGPlus/ResourceMgr.cpp:1472–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1470////////////////////////////////////////////////////////////////////////////////
1471template <typename T>
1472void pathUniform(T begin, T end)
1473{
1474 while (begin != end)
1475 {
1476 int c = *begin;
1477 if (c == '/')
1478 *begin = '\\';
1479 else if (c >= 'A' && c <= 'Z')
1480 *begin = c - 'A' + 'a';
1481 else if (c == 0)
1482 break;
1483 ++begin;
1484 }
1485}
1486
1487ResourcePack::ResourcePack(const wchar_t* path, const char* passwd)
1488 : m_Path(path), m_PathLowerCase(path), m_Password(passwd ? passwd : "")

Callers 4

ResourcePackMethod · 0.85
LoadFileMethod · 0.85
LoadPackMethod · 0.85
UnloadPackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected