#include <iostream>
#include <string>
#include <assert.h>
#include <stdlib.h>
#include "XmlRpcUtil.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN |
◆ main()
int main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 19 of file TestXml.cpp.
20{
21
22 std::string empty;
27
28 std::string raw("<>&'\"");
30
31 std::cout << "Basic tests passed.\n";
32
33
35 for (;;) {
36 std::cout << "\nEnter line of raw text to encode:\n";
37 std::getline(std::cin,
s);
39
41 }
42
43 for (;;) {
44 std::cout << "\nEnter line of xml-encoded text to decode:\n";
45 std::getline(std::cin,
s);
47
49 }
50
51 return 0;
52}
static std::string xmlEncode(const std::string &raw)
Convert raw text to encoded xml.
static std::string xmlDecode(const std::string &encoded)
Convert encoded xml to raw text.