#include <iostream>
#include <assert.h>
#include <stdlib.h>
#include <string>
#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 17 of file TestXml.cpp.
17 {
18
19 std::string empty;
24
25 std::string raw( "<>&'\"" );
27
28 std::cout << "Basic tests passed.\n";
29
30
32 for ( ;; )
33 {
34 std::cout << "\nEnter line of raw text to encode:\n";
35 std::getline( std::cin,
s );
36 if (
s.empty() )
break;
37
39 }
40
41 for ( ;; )
42 {
43 std::cout << "\nEnter line of xml-encoded text to decode:\n";
44 std::getline( std::cin,
s );
45 if (
s.empty() )
break;
46
48 }
49
50 return 0;
51}
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.