[DEBUG] correct toUpper and toLower

This commit is contained in:
Edouard DUPIN 2018-06-22 22:47:41 +02:00
parent 316f42aabe
commit ecc7bf08f3
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ dollar::Gesture::Gesture():
} }
bool dollar::Gesture::load(const etk::String& _fileName) { bool dollar::Gesture::load(const etk::String& _fileName) {
etk::String tmpName = etk::tolower(_fileName); etk::String tmpName = etk::toLower(_fileName);
if (etk::end_with(tmpName, ".json") == true) { if (etk::end_with(tmpName, ".json") == true) {
return loadJSON(_fileName); return loadJSON(_fileName);
} else if (etk::end_with(tmpName, ".svg") == true) { } else if (etk::end_with(tmpName, ".svg") == true) {
@ -117,7 +117,7 @@ bool dollar::Gesture::loadSVG(const etk::String& _fileName) {
bool dollar::Gesture::store(const etk::String& _fileName) { bool dollar::Gesture::store(const etk::String& _fileName) {
etk::String tmpName = etk::tolower(_fileName); etk::String tmpName = etk::toLower(_fileName);
if (etk::end_with(tmpName, ".json") == true) { if (etk::end_with(tmpName, ".json") == true) {
storeJSON(_fileName); storeJSON(_fileName);
return true; return true;

View File

@ -242,7 +242,7 @@ bool testCorpus(const etk::String& _srcGesture, const etk::String& _srcCorpus) {
nbRecognise++; nbRecognise++;
nbRecognise2++; nbRecognise2++;
TEST_INFO(" " << res.getName() << " score=" << res.getConfidence()); TEST_INFO(" " << res.getName() << " score=" << res.getConfidence());
} else if (etk::toupper(res.getName()) == etk::toupper(label)) { } else if (etk::toUpper(res.getName()) == etk::toUpper(label)) {
nbRecognise2++; nbRecognise2++;
TEST_WARNING(" " << res.getName() << " score=" << res.getConfidence()); TEST_WARNING(" " << res.getName() << " score=" << res.getConfidence());
}else { }else {