Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

StringTokenizer.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(STRINGTOKENIZER_HEADER_GUARD_1357924680)
17 #define STRINGTOKENIZER_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
27 
28 
29 
31 
32 
33 
34 XALAN_CPP_NAMESPACE_BEGIN
35 
36 
37 
39 {
40 public:
41 
42  static const XalanDOMChar s_defaultTokens[];
43 
44  typedef size_t size_type;
45 
56  StringTokenizer(const XalanDOMString& theString,
57  const XalanDOMString& theTokens,
58  bool fReturnTokens = false);
59 
70  StringTokenizer(const XalanDOMString& theString,
71  const XalanDOMChar* theTokens = s_defaultTokens,
72  bool fReturnTokens = false);
73 
83  StringTokenizer(const XalanDOMChar* theString,
84  const XalanDOMChar* theTokens = s_defaultTokens,
85  bool fReturnTokens = false);
86 
96  StringTokenizer(const XalanDOMChar* theString,
97  const XalanDOMString& theTokens,
98  bool fReturnTokens = false);
99 
100  ~StringTokenizer();
101 
107  bool
108  hasMoreTokens() const;
109 
110 
117  void
118  nextToken(XalanDOMString& theToken);
119 
125  size_type
126  countTokens() const;
127 
128  void
130  {
131  m_currentIndex = 0;
132  }
133 
134 protected:
135 
137  FindNextDelimiterIndex(XalanDOMString::size_type theStartIndex) const;
138 
139 private:
140 
141  // These are not implemented...
143 
145  operator=(const StringTokenizer&);
146 
147  bool
148  operator==(const StringTokenizer&) const;
149 
150 
151  // Data members...
152  const XalanDOMChar* const m_string;
153 
154  const XalanDOMChar* const m_tokens;
155 
156  const bool m_returnTokens;
157 
158  XalanDOMString::size_type m_currentIndex;
159 
160  const XalanDOMString::size_type m_stringLength;
161 
162  const XalanDOMString::size_type m_tokensLength;
163 };
164 
165 
166 
167 XALAN_CPP_NAMESPACE_END
168 
169 
170 
171 #endif // STRINGTOKENIZER_HEADER_GUARD_1357924680
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
void reset()
Definition: StringTokenizer.hpp:129
Definition: StringTokenizer.hpp:38
Definition: XalanDOMString.hpp:42
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:33
unsigned int size_type
Definition: XalanDOMString.hpp:53
size_t size_type
Definition: StringTokenizer.hpp:44

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo