Xalan-C++ API Reference 1.12.0
XalanEXSLTStringImpl.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18#if !defined(EXSLT_STRINGIMPL_HEADER_GUARD_1357924680)
19#define EXSLT_STRINGIMPL_HEADER_GUARD_1357924680
20
21
22
24
25
26
28
29
30
32
33
34
35namespace XALAN_CPP_NAMESPACE {
36
37
38
40{
41public:
42
44
48
49
50 virtual
54
55 // These methods are inherited from Function ...
56
57 virtual XObjectPtr
61 const XObjectArgVectorType& args,
62 const Locator* locator) const;
63
64 using ParentType::execute;
65
67 clone(MemoryManager& theManager) const
68 {
69 return XalanCopyConstruct(theManager, *this);
70 }
71
72protected:
73
74 const XalanDOMString&
76 {
77 return XalanMessageLoader::getMessage(
79 XalanMessages::EXSLTFunctionAcceptsTwoOrThreeArguments_1Param,
80 "align()");
81 }
82
83private:
84
85 // Not implemented...
87 operator=(const XalanEXSLTFunctionAlign&);
88
89 bool
91
92
93 // Data members...
94 static const XalanDOMChar s_centerString[];
95 static const XalanDOMChar s_rightString[];
96};
97
98
99
101{
102public:
103
105
107 Function()
108 {
109 }
110
111 virtual
115
116 // These methods are inherited from Function ...
117
118 virtual XObjectPtr
122 const XObjectArgVectorType& args,
123 const Locator* locator) const;
124
125 using ParentType::execute;
126
128 clone(MemoryManager& theManager) const
129 {
130 return XalanCopyConstruct(theManager, *this);
131 }
132
133protected:
134
135 const XalanDOMString&
137 {
138 return XalanMessageLoader::getMessage(
139 theBuffer,
140 XalanMessages::EXSLTFunctionAcceptsOneArgument_1Param,
141 "concat()");
142 }
143
144private:
145
146 // Not implemented...
148 operator=(const XalanEXSLTFunctionConcat&);
149
150 bool
152};
153
154
155
157{
158public:
159
161
163 Function(),
164 m_space(s_spaceString, theManager)
165 {
166 }
167
168 // A dummy constructor for use internally. Do not use this one!!!!
170 MemoryManager& theManager,
171 int /* theDummy */) :
172 Function(),
173 m_space(theManager)
174 {
175 }
176
179 MemoryManager& theManager) :
181 m_space(s_spaceString, theManager)
182 {
183 }
184
185 virtual
189
190 // These methods are inherited from Function ...
191
192 virtual XObjectPtr
196 const XObjectArgVectorType& args,
197 const Locator* locator) const;
198
199 using ParentType::execute;
200
202 clone(MemoryManager& theManager) const
203 {
205 }
206
207protected:
208
209 const XalanDOMString&
211 {
212 return XalanMessageLoader::getMessage(
213 theBuffer,
214 XalanMessages::EXSLTFunctionAccepts1Or2Argument_1Param,
215 "padding()");
216 }
217
218private:
219
220 // Not implemented...
222
224 operator=(const XalanEXSLTFunctionPadding&);
225
226 bool
228
229
230 // Data members...
231 const XalanDOMString m_space;
232
233 static const XalanDOMChar s_spaceString[];
234};
235
236
238{
239public:
240
242
247
248 virtual
252
253 // These methods are inherited from Function ...
254
255 virtual XObjectPtr
259 const XObjectArgVectorType& args,
260 const Locator* locator) const;
261
262 using ParentType::execute;
263
265 clone(MemoryManager& theManager) const
266 {
267 return XalanCopyConstruct(theManager, *this);
268 }
269
270protected:
271
272 const XalanDOMString&
274 {
275 return XalanMessageLoader::getMessage(
276 theBuffer,
277 XalanMessages::EXSLTFunctionAcceptsTwoOrThreeArguments_1Param,
278 "encode-uri()");
279 }
280
281 const XalanDOMString&
285
286 static const XalanDOMChar s_reservedChars[];
288
289 static const XalanDOMChar s_excludedChars[];
291
292private:
293
294 // Not implemented...
296 operator=(const XalanEXSLTFunctionEncodeURI&);
297
298 bool
300};
301
302
303
305{
306public:
307
309
314
315 virtual
319
320 // These methods are inherited from Function ...
321
322 virtual XObjectPtr
326 const XObjectArgVectorType& args,
327 const Locator* locator) const;
328
329 using ParentType::execute;
330
332 clone(MemoryManager& theManager) const
333 {
334 return XalanCopyConstruct(theManager, *this);
335 }
336
337protected:
338
339 const XalanDOMString&
341 {
342 return XalanMessageLoader::getMessage(
343 theBuffer,
344 XalanMessages::EXSLTFunctionAccepts1Or2Argument_1Param,
345 "decode-uri()");
346
347 }
348
353 const Locator* locator,
355 const XalanDOMChar lowHexChar) const;
356
358
359private:
360
361 // Not implemented...
363 operator=(const XalanEXSLTFunctionDecodeURI&);
364
365 bool
367};
368
369}
370
371
372
373#endif // EXSLT_STRINGIMPL_HEADER_GUARD_1357924680
#define XALAN_EXSLT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Class to hold XObjectPtr return types.
Definition XObject.hpp:884
virtual XObjectPtr execute(XPathExecutionContext &executionContext, XalanNode *context, const XObjectArgVectorType &args, const Locator *locator) const
Execute an XPath function object.
const XalanDOMString & getError(XalanDOMString &theBuffer) const
Get the error message to report when the function is called with the wrong number of arguments.
virtual XalanEXSLTFunctionAlign * clone(MemoryManager &theManager) const
Create a copy of the function object.
virtual XalanEXSLTFunctionConcat * clone(MemoryManager &theManager) const
Create a copy of the function object.
virtual XObjectPtr execute(XPathExecutionContext &executionContext, XalanNode *context, const XObjectArgVectorType &args, const Locator *locator) const
Execute an XPath function object.
const XalanDOMString & getError(XalanDOMString &theBuffer) const
Get the error message to report when the function is called with the wrong number of arguments.
XalanDOMChar hexCharsToByte(XPathExecutionContext &executionContext, XalanNode *context, const Locator *locator, const XalanDOMChar highHexChar, const XalanDOMChar lowHexChar) const
virtual XObjectPtr execute(XPathExecutionContext &executionContext, XalanNode *context, const XObjectArgVectorType &args, const Locator *locator) const
Execute an XPath function object.
virtual XalanEXSLTFunctionDecodeURI * clone(MemoryManager &theManager) const
Create a copy of the function object.
static const XalanDOMString::size_type s_octetSize
const XalanDOMString & getError(XalanDOMString &theBuffer) const
Get the error message to report when the function is called with the wrong number of arguments.
static const XalanDOMString::size_type s_excludedCharsSize
static const XalanDOMString::size_type s_reservedCharsSize
const XalanDOMString & getError(XalanDOMString &theBuffer) const
Get the error message to report when the function is called with the wrong number of arguments.
virtual XObjectPtr execute(XPathExecutionContext &executionContext, XalanNode *context, const XObjectArgVectorType &args, const Locator *locator) const
Execute an XPath function object.
const XalanDOMString & escapedOctet(XalanDOMChar theChar, XalanDOMString &theBuffer) const
virtual XalanEXSLTFunctionEncodeURI * clone(MemoryManager &theManager) const
Create a copy of the function object.
virtual XObjectPtr execute(XPathExecutionContext &executionContext, XalanNode *context, const XObjectArgVectorType &args, const Locator *locator) const
Execute an XPath function object.
const XalanDOMString & getError(XalanDOMString &theBuffer) const
Get the error message to report when the function is called with the wrong number of arguments.
XalanEXSLTFunctionPadding(MemoryManager &theManager, int)
XalanEXSLTFunctionPadding(MemoryManager &theManager)
virtual XalanEXSLTFunctionPadding * clone(MemoryManager &theManager) const
Create a copy of the function object.
XalanEXSLTFunctionPadding(const XalanEXSLTFunctionPadding &other, MemoryManager &theManager)
Type * XalanCopyConstruct(MemoryManager &theMemoryManager, const Type &theSource)
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)