~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/dom/domstringimpl.h

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __DOMSTRINGIMPL_H__
 
2
#define __DOMSTRINGIMPL_H__
 
3
/**
 
4
 * Phoebe DOM Implementation.
 
5
 *
 
6
 * This is a C++ approximation of the W3C DOM model, which follows
 
7
 * fairly closely the specifications in the various .idl files, copies of
 
8
 * which are provided for reference.  Most important is this one:
 
9
 *
 
10
 * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
 
11
 *
 
12
 * Authors:
 
13
 *   Bob Jamison
 
14
 *
 
15
 * Copyright (C) 2005 Bob Jamison
 
16
 *
 
17
 *  This library is free software; you can redistribute it and/or
 
18
 *  modify it under the terms of the GNU Lesser General Public
 
19
 *  License as published by the Free Software Foundation; either
 
20
 *  version 2.1 of the License, or (at your option) any later version.
 
21
 *
 
22
 *  This library is distributed in the hope that it will be useful,
 
23
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
24
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
25
 *  Lesser General Public License for more details.
 
26
 *
 
27
 *  You should have received a copy of the GNU Lesser General Public
 
28
 *  License along with this library; if not, write to the Free Software
 
29
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
30
 */
 
31
 
 
32
class DOMStringImpl
 
33
{
 
34
public:
 
35
 
 
36
    /**
 
37
     *
 
38
     */
 
39
    DOMString();
 
40
 
 
41
    /**
 
42
     *
 
43
     */
 
44
    DOMString(const char *str);
 
45
 
 
46
    /**
 
47
     *
 
48
     */
 
49
    DOMString(const DOMString &str);
 
50
 
 
51
    /**
 
52
     *
 
53
     */
 
54
    virtual ~DOMString();
 
55
 
 
56
    /**
 
57
     *
 
58
     */
 
59
    virtual void append(const DOMString &str);
 
60
 
 
61
    /**
 
62
     *
 
63
     */
 
64
    virtual void append(const char *str);
 
65
 
 
66
    /**
 
67
     *
 
68
     */
 
69
    virtual void push_back(int ch);
 
70
 
 
71
    /**
 
72
     *
 
73
     */
 
74
    virtual DOMString &substring(int start, int end);
 
75
 
 
76
    /**
 
77
     *
 
78
     */
 
79
    virtual int charAt(unsigned long index);
 
80
 
 
81
    /**
 
82
     *
 
83
     */
 
84
    virtual unsigned long size();
 
85
 
 
86
    /**
 
87
     *
 
88
     */
 
89
    virtual const char *c_str();
 
90
 
 
91
 
 
92
protected:
 
93
 
 
94
    void init();
 
95
 
 
96
    char *cstring;
 
97
 
 
98
    unsigned long length;
 
99
 
 
100
};
 
101
 
 
102
 
 
103
 
 
104
 
 
105
 
 
106
 
 
107
#endif  /* __DOMSTRINGIMPL_H__ */