utils.h File Reference
#include "../Config.h"
#include <string>
#include <stack>
#include <cstddef>

Go to the source code of this file.

Namespaces

 te
 URI C++ Library.
 
 te::common
 Namespace for the Common module of TerraLib.
 
 te::common::uri
 

Functions

void TECOMMONEXPORT te::common::uri::append_hex (char v, std::string &s)
 Convert the char v to hex and add the 2 chars to the end of s. More...
 
std::string TECOMMONEXPORT te::common::uri::convert (bool v)
 bool to string, true="1", false="0" More...
 
std::string TECOMMONEXPORT te::common::uri::convert (int v)
 int to string More...
 
std::string TECOMMONEXPORT te::common::uri::convert (unsigned int v)
 uint to string More...
 
std::string TECOMMONEXPORT te::common::uri::convert (long int v)
 long int to string More...
 
std::string TECOMMONEXPORT te::common::uri::convert (unsigned long int v)
 unsigned long int to string More...
 
std::string TECOMMONEXPORT te::common::uri::convert (long long int v)
 long long int to string More...
 
std::string TECOMMONEXPORT te::common::uri::convert (unsigned long long int v)
 unsigned long long int to string More...
 
std::string TECOMMONEXPORT te::common::uri::convert (double v)
 double to string More...
 
std::string TECOMMONEXPORT te::common::uri::convert (const std::string &v)
 string to trimmed string More...
 
std::string te::common::uri::convert (const char *v)
 cstring to string More...
 
bool TECOMMONEXPORT te::common::uri::convert (const std::string &s, bool &v)
 String to bool, returning true if set, which is when the string is not empty or all isspace. More...
 
bool TECOMMONEXPORT te::common::uri::convert (const std::string &s, int &v)
 String to int, returning true if set, which is when the string is not empty or all isspace. More...
 
bool TECOMMONEXPORT te::common::uri::convert (const std::string &s, unsigned int &v)
 String to unsigned int, returning true if set, which is when the string is not empty or all isspace. More...
 
bool TECOMMONEXPORT te::common::uri::convert (const std::string &s, unsigned long int &v)
 String to size_t, returning true if set, which is when the string is not empty or all isspace. More...
 
bool TECOMMONEXPORT te::common::uri::convert (const std::string &s, long long int &v)
 String to long long int, returning true if set, which is when the string is not empty or all isspace. More...
 
bool TECOMMONEXPORT te::common::uri::convert (const std::string &s, unsigned long long int &v)
 String to unsigned long long int, returning true if set, which is when the string is not empty or all isspace. More...
 
bool TECOMMONEXPORT te::common::uri::convert (const std::string &s, double &v)
 String to double, returning true if set, which is when the string is not empty or all isspace. More...
 
bool TECOMMONEXPORT te::common::uri::convert (const std::string &s, std::string &v)
 String to trimmed string, returning true if set, which is when the string is not empty or all isspace. More...
 
bool TECOMMONEXPORT te::common::uri::isspaces (const char *s)
 Test if string is empty or all isspace. More...
 
bool TECOMMONEXPORT te::common::uri::parse_hex (const std::string &s, size_t pos, char &chr)
 Parse hex chars at pos, returning success, and set the char and advance first on success. More...