Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

StringLib.cpp File Reference

#include <StringLib.h>
#include <ctime>

Go to the source code of this file.

Namespaces

namespace  StringLib

Functions

void out (const string str, int dbg)
string itos (const int _int)
vector< string > explode (const string &str, const string delimiter, const int max)
void debug (const string str)
void error (const string str)
vector< string > split (const string str, const string dels)
string trim (string &str, const string &del)


Function Documentation

void StringLib::debug const string  str  ) 
 

Definition at line 90 of file StringLib.cpp.

References StringLib::out().

Referenced by MyIncomingSocket::__OnConnected(), SocketHandler::Add(), ConnectSocket::Connect(), Socket::MakeSock(), SocketHandler::Remove(), and ListenServer::Start().

void StringLib::error const string  str  ) 
 

Definition at line 96 of file StringLib.cpp.

References StringLib::out().

Referenced by MyServer::__OnAcceptFailed(), ConnectSocket::Connect(), and ListenServer::Start().

vector< string > StringLib::explode const string &  str,
const string  delimiter,
const int  max = 0
 

Definition at line 55 of file StringLib.cpp.

string StringLib::itos const int  _int  ) 
 

Definition at line 47 of file StringLib.cpp.

Referenced by MyServer::__OnAccept(), MyIncomingSocket::__OnClose(), MyIncomingSocket::__OnConnClosed(), MyIncomingSocket::__OnConnected(), MyIncomingSocket::__OnRead(), MyIncomingSocket::__OnReadError(), ConnectSocket::Connect(), Socket::GetLastError(), ListenServer::OnAccept(), SocketHandler::Remove(), and ListenServer::Start().

void StringLib::out const string  str,
int  dbg = 0
 

Definition at line 24 of file StringLib.cpp.

Referenced by MyServer::__OnAccept(), MyIncomingSocket::__OnClose(), MyIncomingSocket::__OnConnClosed(), MyIncomingSocket::__OnRead(), MyIncomingSocket::__OnReadError(), StringLib::debug(), StringLib::error(), main(), and ListenServer::OnAccept().

vector< string > StringLib::split const string  str,
const string  dels
 

Definition at line 102 of file StringLib.cpp.

string StringLib::trim std::string &  str,
const string &  del = " "
 

Definition at line 132 of file StringLib.cpp.


SourceForge.netLogo