INET Framework for OMNeT++/OMNEST
HttpUtils.cc File Reference
#include <algorithm>
#include <ctype.h>
#include "inet/applications/httptools/common/HttpUtils.h"

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::httptools
 

Functions

bool inet::httptools::isnotspace (int c)
 
std::string inet::httptools::trimLeft (std::string s)
 
std::string inet::httptools::trimLeft (std::string str, std::string delim)
 
std::string inet::httptools::trimRight (std::string s)
 
std::string inet::httptools::trimRight (std::string str, std::string delim)
 
std::string inet::httptools::trim (std::string str)
 
std::string inet::httptools::extractServerName (const char *url)
 
std::string inet::httptools::extractResourceName (const char *url)
 
std::vector< std::string > inet::httptools::parseResourceName (std::string resource)
 
std::string inet::httptools::getDelimited (std::string str, std::string ldelim, std::string rdelim)
 
HttpContentType inet::httptools::getResourceCategory (std::vector< std::string > res)
 
HttpContentType inet::httptools::getResourceCategory (std::string resourceExt)
 
std::string inet::httptools::htmlErrFromCode (int code)
 
double inet::httptools::safeatof (const char *strval, double defaultVal)
 
int inet::httptools::safeatoi (const char *strval, int defaultVal)
 
int inet::httptools::safeatobool (const char *strval, bool defaultVal)
 
std::vector< std::string > inet::httptools::splitFile (std::string fileName)