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:
malte_langkabel
2016-08-25 15:18:00 +02:00
parent 520a1b2d48
commit 0268e924aa
164 changed files with 47237 additions and 403 deletions
+5
View File
@@ -16,3 +16,8 @@ std::string ResourcePaths::getGuiPath()
{
return AppPath::getAppPath() + "data/gui/";
}
std::string ResourcePaths::getJavaPath()
{
return AppPath::getAppPath() + "data/java/";
}
+1
View File
@@ -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
+7 -3
View File
@@ -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)