X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/802f79cdb0d688127b8a639cd3173d801a1466cd..d3ea2ff01c51df0df95cd23157267048e2c2fdcd:/Server/src/string.cpp diff --git a/Server/src/string.cpp b/Server/src/string.cpp index 24904a7..cd2eaad 100644 --- a/Server/src/string.cpp +++ b/Server/src/string.cpp @@ -32,11 +32,19 @@ # include #endif // DEBUG -using namespace PlaQui::Server; +using namespace std; -const std::string String::SPACE_CHARS = " \t\n\r"; - -String::String(const std::string& str): std::string(str.c_str()) { +namespace PlaQui { + +namespace Server { + +const string String::SPACE_CHARS = " \t\n\r"; + +String::~String(void) { +} + +String::String(const string& str): + string(str.c_str()) { } String& String::trim(const String& clist) { @@ -46,12 +54,16 @@ String& String::trim(const String& clist) { } String& String::to_lower(void) { - std::transform(begin(), end(), begin(), tolower); + transform(begin(), end(), begin(), ::tolower); return *this; } String& String::to_upper(void) { - std::transform(begin(), end(), begin(), toupper); + transform(begin(), end(), begin(), ::toupper); return *this; } +} // namespace Server + +} // namespace PlaQui +