Xalan-C++ API Reference 1.12.0
XalanUTF16Transcoder.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(XALANUTF16TRANSCODER_HEADER_GUARD_1357924680)
19#define XALANUTF16TRANSCODER_HEADER_GUARD_1357924680
20
21
22
23// Base include file. Must be first.
25
26
27
28// Base class header file...
30
31
32
33namespace XALAN_CPP_NAMESPACE {
34
35
36
38{
39public:
40
41 explicit
43
45 create(MemoryManager& theManager);
46
47 virtual
49
50 /**
51 * Transcode data from UTF-16 to UTF-16.
52 *
53 * @param theSourceData The source data to transcode
54 * @param theSourceCount The length of the source data.
55 * @param theResult The error code, if any.
56 * @param theTarget The target array for storing the transcoded data.
57 * @param theTargetSize The number of characters that can be stored in the target.
58 * @param theSourceCharsTranscoded The count of the source characters that were transcoded.
59 * @param theTargetBytesUsed The number of characters stored in the target array
60 * @return The result code.
61 */
62 virtual eCode
70
71 /**
72 * Transcode data from UTF-16 to UTF-16.
73 *
74 * @param theSourceData The source data to transcode
75 * @param theSourceCount The length of the source data.
76 * @param theResult The error code, if any.
77 * @param theTarget The target array for storing the transcoded data.
78 * @param theTargetSize The number of characters that can be stored in the target.
79 * @param theSourceCharsTranscoded The count of the source characters that were transcoded.
80 * @param theTargetBytesUsed The number of characters stored in the target array
81 * @return The result code.
82 */
83 virtual eCode
91 unsigned char* theCharSizes);
92
93 virtual bool
95
96private:
97
98 // Not implemented...
100
102 operator=(const XalanUTF16Transcoder&);
103};
104
105
106
107}
108
109
110
111#endif // XALANUTF16TRANSCODER_HEADER_GUARD_1357924680
#define XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
XalanTranscodingServices::size_type size_type
XalanTranscodingServices::XalanXMLByte XalanXMLByte
XalanUTF16Transcoder(MemoryManager &theManager)
static XalanUTF16Transcoder * create(MemoryManager &theManager)
virtual eCode transcode(const XalanDOMChar *theSourceData, size_type theSourceCount, XalanXMLByte *theTarget, size_type theTargetSize, size_type &theSourceCharsTranscoded, size_type &theTargetBytesUsed)
Transcode data from UTF-16 to UTF-16.
virtual bool canTranscodeTo(XalanUnicodeChar theChar) const
virtual eCode transcode(const XalanXMLByte *theSourceData, size_type theSourceCount, XalanDOMChar *theTarget, size_type theTargetSize, size_type &theSourceCharsTranscoded, size_type &theTargetBytesUsed, unsigned char *theCharSizes)
Transcode data from UTF-16 to UTF-16.