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

Function checkParseFileName

Tools/LayoutEditor/Parse.cpp:13–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11{
12
13 bool checkParseFileName(MyGUI::EditBox* _edit)
14 {
15 const MyGUI::UString& text = _edit->getOnlyText();
16
17 bool success = false;
18
19 if (text.find_first_of("*?") == std::string::npos)
20 {
21 success = MyGUI::DataManager::getInstance().isDataExist(text);
22 }
23 else
24 {
25 success = false;
26 }
27
28 _setSuccessText(_edit, text, success);
29 return success;
30 }
31
32 void _setSuccessText(MyGUI::EditBox* _edit, const MyGUI::UString& _text, bool _success)
33 {

Callers 1

onCheckValueMethod · 0.85

Calls 4

_setSuccessTextFunction · 0.85
find_first_ofMethod · 0.80
getOnlyTextMethod · 0.45
isDataExistMethod · 0.45

Tested by

no test coverage detected