MCPcopy Create free account
hub / github.com/MyGUI/mygui / open

Method open

MyGUIEngine/src/MyGUI_XmlDocument.cpp:383–399  ·  view source on GitHub ↗

открывает обычным файлом, имя файла в utf8

Source from the content-addressed store, hash-verified

381
382 // открывает обычным файлом, имя файла в utf8
383 bool Document::open(const std::string& _filename)
384 {
385 std::ifstream stream;
386 stream.open(_filename.c_str());
387
388 if (!stream.is_open())
389 {
390 mLastError = ErrorType::OpenFileFail;
391 setLastFileError(_filename);
392 return false;
393 }
394
395 bool result = open(stream);
396
397 stream.close();
398 return result;
399 }
400
401 // открывает обычным файлом, имя файла в utf16 или utf32
402 bool Document::open(const std::wstring& _filename)

Callers 2

open_streamFunction · 0.45
saveMethod · 0.45

Calls 11

openFunction · 0.85
open_streamFunction · 0.85
clearFunction · 0.85
c_strMethod · 0.45
closeMethod · 0.45
getMethod · 0.45
eofMethod · 0.45
readlineMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected