wfut  0.2.4
A client side C++ implementation of WFUT (WorldForge Update Tool).
WFUT::Encoder Class Reference

#include <Encoder.h>

Static Public Member Functions

static std::string encodeString (const std::string &str)
 
static std::string decodeString (const std::string &str)
 
static std::string encodeURL (const std::string &str)
 

Detailed Description

The Encoder class provides a few utility functions to convert strings to a format suitable for storing in an XML document and as a URL.

Definition at line 16 of file Encoder.h.

Member Function Documentation

std::string WFUT::Encoder::decodeString ( const std::string &  str)
static

Dencode the input string from an XML encoded string back to it's original form.

Definition at line 41 of file Encoder.cpp.

std::string WFUT::Encoder::encodeString ( const std::string &  str)
static

Encode the input string so that is can safely be stored in an XML/HTML document.

Definition at line 13 of file Encoder.cpp.

std::string WFUT::Encoder::encodeURL ( const std::string &  str)
static

Encodes characters in the input string so that it is a valid URL string.

Definition at line 62 of file Encoder.cpp.

Referenced by WFUT::IO::downloadFile(), and WFUT::IO::queueFile().


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