MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / OpenInputFileStream

Function OpenInputFileStream

src/OpenColorIO/Platform.cpp:270–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void OpenInputFileStream(std::ifstream & stream, const char * filename, std::ios_base::openmode mode)
271{
272#if defined(_WIN32) && defined(UNICODE)
273 stream.open(Utf8ToUtf16(filename).c_str(), mode);
274#else
275 stream.open(filename, mode);
276#endif
277}
278
279#if defined(_WIN32) && defined(UNICODE)
280const std::wstring filenameToUTF(const std::string & filename)

Callers 1

LoadTestFileFunction · 0.85

Calls 2

Utf8ToUtf16Function · 0.85
openMethod · 0.45

Tested by 1

LoadTestFileFunction · 0.68