-
Notifications
You must be signed in to change notification settings - Fork 4
/
XString.hpp
46 lines (36 loc) · 1 KB
/
XString.hpp
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
/*
* XString: a simple class for translation between
* XMLCh strings and local coding
*
* Class definition
* September 21, 2003
* Richard Jones
*/
#ifndef SAW_XSTRING_DEF
#define SAW_XSTRING_DEF true
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/XMLString.hpp>
#include <string>
#include <list>
class XString: public std::string
{
/* The XString class extends the STL string class by adding
* unicode functionality required by the implementation of
* the Xerces xml library.
*/
public :
XString(void);
XString(const XMLCh* const x);
XString(const char* const s);
XString(const std::string& str);
XString(const XString& X);
XString& operator=(const XString& src);
~XString();
const XString basename() const; // implements basename() from strings.h
const XMLCh* unicode_str(); // must modify the object because it
// has to keep track of memory usage.
private:
XMLCh* fUnicode;
void dump();
};
#endif