X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/ffe5447aa2d71b5296cbdd36c48d5f9d59e249af..989d0da7e93d155dde399bf3047ab6b4af550bb6:/Server/src/string.cpp diff --git a/Server/src/string.cpp b/Server/src/string.cpp index b38c7c2..8f9b2db 100644 --- a/Server/src/string.cpp +++ b/Server/src/string.cpp @@ -45,6 +45,9 @@ const string String::SPACE_CHARS = " \t\n\r"; String::~String(void) { } +String::String(void) { +} + String::String(const string& str): string(str.c_str()) { } @@ -90,6 +93,21 @@ String String::join(const vector& v, const string& sep) { return ss.str(); } +/* +template < class T > T& String::to(T& p) const { + stringstream ss(*this); + ss >> p; + return p; +} + +template < class T > String& String::from(const T& p) { + stringstream ss; + ss << p; + ss >> (*this); + return *this; +} +*/ + } // namespace Server } // namespace PlaQui