]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/string.cpp
ahi creo que sale andando
[z.facultad/75.42/plaqui.git] / Server / src / string.cpp
index 24904a76c3bf00d751fa59fb21a7876fa3c6cf93..7062bb0ab222e76ddead307c629748dbfaa77f54 100644 (file)
 #      include <iostream>
 #endif // DEBUG
 
-using namespace PlaQui::Server;
+const std::string PlaQui::Server::String::SPACE_CHARS = " \t\n\r";
 
-const std::string String::SPACE_CHARS = " \t\n\r";
-                       
-String::String(const std::string& str): std::string(str.c_str()) {
+PlaQui::Server::String::~String(void) {
 }
 
-String& String::trim(const String& clist) {
+PlaQui::Server::String::String(const std::string& str):
+               std::string(str.c_str()) {
+}
+
+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;
 }