MCPcopy Create free account
hub / github.com/OGRECave/ogre / from_wpath

Function from_wpath

OgreMain/src/OgreFileSystem.cpp:180–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 return L"";
179 }
180 static String from_wpath(const std::wstring& text, unsigned codepage = CP_UTF8)
181 {
182 const int length = ::WideCharToMultiByte(codepage, 0, text.c_str(), (int)text.size(), NULL, 0, NULL, NULL);
183 if(length > 0)
184 {
185 String str;
186 str.resize(length);
187 if(0 != ::WideCharToMultiByte(codepage, 0, text.c_str(), (int)text.size(), &str[0], (int)str.size(), NULL, NULL))
188 return str;
189 }
190 return "";
191 }
192#endif
193 //-----------------------------------------------------------------------
194 void FileSystemArchive::findFiles(const String& pattern, bool recursive,

Callers 1

findFilesMethod · 0.85

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected