22 #ifndef __TERRALIB_COMMON_INTERNAL_URISYN_H
23 #define __TERRALIB_COMMON_INTERNAL_URISYN_H
24 #include "../Config.h"
62 bool TECOMMONEXPORT parse(
const traits& ts, std::string::const_iterator& first, std::string::const_iterator last, std::string& comp,
char* endc = 0);
const char * begin_cstring
begin cstring (or 0 if none)
const traits TECOMMONEXPORT AUTHORITY_TRAITS
authority traits
const char end_char
end char (or 0 if none)
const char TECOMMONEXPORT ENCODE_BEGIN_CHAR
encode begin char ('%')
void TECOMMONEXPORT convertPlus2Space(std::string &s)
bool TECOMMONEXPORT parse(const traits &ts, std::string::const_iterator &first, std::string::const_iterator last, std::string &comp, char *endc=0)
Parse the URI componet, returning whether successful and setting the string and end char and advancin...
std::string TECOMMONEXPORT encode(const traits &ts, const std::string &comp)
Encode the URI (sub) component.
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module.
const traits TECOMMONEXPORT QUERY_TRAITS
query traits
const traits TECOMMONEXPORT PATH_TRAITS
path traits
bool TECOMMONEXPORT decode(std::string &s)
Decode the pct-encoded (hex) sequences, if any, return success.
Traits used for parsing and encoding components.
const traits TECOMMONEXPORT SCHEME_TRAITS
scheme traits
const char begin_char
begin char (or 0 if none)
const traits TECOMMONEXPORT FRAGMENT_TRAITS
fragment traits
valid anywhere but 1st position