data: java sample project
* added javaparser as sample project * fixed crash in utility::isPrefix when prefix is longer than the actual string * fixed crash when inserting a meta value that contains a special character * added "language" to project settings of tutorial * changed separators in serialized name hierarchy * added javaparser project to windows installers * enabled the checkbox for start menu shortcut in installer by default * removed autorefresh icon * removed JavaSmallTest project
This commit is contained in:
@@ -16,3 +16,8 @@ std::string ResourcePaths::getGuiPath()
|
||||
{
|
||||
return AppPath::getAppPath() + "data/gui/";
|
||||
}
|
||||
|
||||
std::string ResourcePaths::getJavaPath()
|
||||
{
|
||||
return AppPath::getAppPath() + "data/java/";
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ public:
|
||||
static std::string getColorSchemesPath();
|
||||
static std::string getFontsPath();
|
||||
static std::string getGuiPath();
|
||||
static std::string getJavaPath();
|
||||
};
|
||||
|
||||
#endif // RESOURCE_PATHS_H
|
||||
|
||||
@@ -122,10 +122,14 @@ namespace utility
|
||||
|
||||
bool isPrefix(const std::string& prefix, const std::string& text)
|
||||
{
|
||||
std::pair<std::string::const_iterator, std::string::const_iterator> res =
|
||||
std::mismatch(prefix.begin(), prefix.end(), text.begin());
|
||||
if (prefix.size() <= text.size())
|
||||
{
|
||||
std::pair<std::string::const_iterator, std::string::const_iterator> res =
|
||||
std::mismatch(prefix.begin(), prefix.end(), text.begin());
|
||||
|
||||
return res.first == prefix.end();
|
||||
return res.first == prefix.end();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool isPostfix(const std::string& postfix, const std::string& text)
|
||||
|
||||
Reference in New Issue
Block a user