concordia-library/concordia/common/text_utils.cpp
rjawor 0d4bdf12de removed using namespace std
Former-commit-id: dbb5129e1f94d83eca887ada0f89d6bb45250f1e
2015-04-15 14:14:10 +02:00

20 lines
619 B
C++

#include "concordia/common/text_utils.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/locale.hpp>
TextUtils::TextUtils() {
_lowerConverter =
StringCaseConverterManager::getInstance().getLowerCaseConverter("pl");
_upperConverter =
StringCaseConverterManager::getInstance().getUpperCaseConverter("pl");
}
std::string TextUtils::toLowerCase(const std::string & text) {
return simpleConvert(*_lowerConverter, text);
}
std::string TextUtils::toUpperCase(const std::string & text) {
return simpleConvert(*_upperConverter, text);
}