X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/6e0194f46ac77c18bfeabf84ef94a32f23e41073..eb72ddd1b0a1004fa3da51db5b7790370cc5c2e9:/Server/src/string.cpp?ds=inline diff --git a/Server/src/string.cpp b/Server/src/string.cpp index caa657b..edc522c 100644 --- a/Server/src/string.cpp +++ b/Server/src/string.cpp @@ -32,25 +32,25 @@ # include #endif // DEBUG -using namespace Plaqui; - -const std::string String::SPACE_CHARS = " \t\n\r"; +const std::string PlaQui::Server::String::SPACE_CHARS = " \t\n\r"; -String::String(const std::string& str): std::string(str.c_str()) { +PlaQui::Server::String::String(const std::string& str): + std::string(str.c_str()) { } -String& String::trim(const String& clist) { +PlaQui::Server::String& PlaQui::Server::String::trim( + const PlaQui::Server::String& clist) { erase(0, find_first_not_of(clist)); erase(find_last_not_of(clist) + 1); return *this; } -String& String::to_lower(void) { +PlaQui::Server::String& PlaQui::Server::String::to_lower(void) { std::transform(begin(), end(), begin(), tolower); return *this; } -String& String::to_upper(void) { +PlaQui::Server::String& PlaQui::Server::String::to_upper(void) { std::transform(begin(), end(), begin(), toupper); return *this; }