The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SWORD_NAMESPACE_START::__init Class Reference
+ Collaboration diagram for SWORD_NAMESPACE_START::__init:

Public Member Functions

 __init ()
 

Detailed Description

Definition at line 39 of file url.cpp.

Constructor & Destructor Documentation

SWORD_NAMESPACE_START::__init::__init ( )
inline

Definition at line 41 of file url.cpp.

41  {
42  for (unsigned short int c = 32; c <= 255; ++c) { //first set all encoding chars
43  if ( (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || strchr("-_.!~*'()", c)) {
44  continue; //we don't need an encoding for this char
45  }
46 
47  SWBuf buf;
48  buf.setFormatted("%%%-.2X", c);
49  m[c] = buf;
50  }
51  //the special encodings for certain chars
52  m[' '] = '+';
53  }
Definition: swbuf.h:47
SWBuf & setFormatted(const char *format,...)
Definition: swbuf.cpp:50

The documentation for this class was generated from the following file: