blob: 3e031331fc27ce0c82e0db340c74d8afd20dfba4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
//#define KOXML_USE_STL
/*
-----------------------------------------------------------------------
-----------------------------------------------------------------------
*/
#ifndef KOXML_USE_STL
# include <tqtextstream.h>
# define KOXML_ISTREAM TQTextStream
# define KOXML_OSTREAM TQTextStream
# include <tqstring.h>
# define KOXML_STRING TQString
// Unicode character
# define KOXML_CHAR TQChar
# define KOXML_STRING_REMOVE( string_var, pos, count) string_var.remove (pos, count)
# define KOXML_STRING_INSERT( string_var, pos, str) string_var.insert(pos, str)
#else
# include <iostream>
using namespace std;
# define KOXML_ISTREAM istream
# define KOXML_OSTREAM ostream
# define KOXML_CHAR char // evtl. wchar
////////////////////////////////////////////////////////
//evtl. an MFC o.ä. anpassen
#ifdef __MFC_STRING_BENUTZT__
#else
# include <string>
# define KOXML_STRING string // evtl. wstring
# define KOXML_STRING_REMOVE( string_var, pos, count) string_var.erase (pos, count)
# define KOXML_STRING_INSERT( string_var, pos, str) string_var.insert(pos, (string)str)
#endif
#endif
|