|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 /* |
|
18 * Licensed to the Apache Software Foundation (ASF) under one or more |
|
19 * contributor license agreements. See the NOTICE file distributed with |
|
20 * this work for additional information regarding copyright ownership. |
|
21 * The ASF licenses this file to You under the Apache License, Version 2.0 |
|
22 * (the "License"); you may not use this file except in compliance with |
|
23 * the License. You may obtain a copy of the License at |
|
24 * |
|
25 * http://www.apache.org/licenses/LICENSE-2.0 |
|
26 * |
|
27 * Unless required by applicable law or agreed to in writing, software |
|
28 * distributed under the License is distributed on an "AS IS" BASIS, |
|
29 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
30 * See the License for the specific language governing permissions and |
|
31 * limitations under the License. |
|
32 */ |
|
33 |
|
34 #ifndef XMLWIN1252TRANSCODER_HPP |
|
35 #define XMLWIN1252TRANSCODER_HPP |
|
36 |
|
37 #include <xercesc/util/XercesDefs.hpp> |
|
38 #include <xercesc/util/XML256TableTranscoder.hpp> |
|
39 |
|
40 XERCES_CPP_NAMESPACE_BEGIN |
|
41 |
|
42 |
|
43 // |
|
44 // This class provides an implementation of the XMLTranscoder interface |
|
45 // for the Windows variant of Latin1, called Windows-1252. Its close to |
|
46 // Latin1, but is somewhat different. |
|
47 // |
|
48 class XMLUTIL_EXPORT XMLWin1252Transcoder : public XML256TableTranscoder |
|
49 { |
|
50 public : |
|
51 // ----------------------------------------------------------------------- |
|
52 // Public constructors and destructor |
|
53 // ----------------------------------------------------------------------- |
|
54 XMLWin1252Transcoder |
|
55 ( |
|
56 const XMLCh* const encodingName |
|
57 , const unsigned int blockSize |
|
58 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager |
|
59 ); |
|
60 |
|
61 virtual ~XMLWin1252Transcoder(); |
|
62 |
|
63 |
|
64 private : |
|
65 // ----------------------------------------------------------------------- |
|
66 // Unimplemented constructors and operators |
|
67 // ----------------------------------------------------------------------- |
|
68 XMLWin1252Transcoder(); |
|
69 XMLWin1252Transcoder(const XMLWin1252Transcoder&); |
|
70 XMLWin1252Transcoder& operator=(const XMLWin1252Transcoder&); |
|
71 }; |
|
72 |
|
73 XERCES_CPP_NAMESPACE_END |
|
74 |
|
75 #endif |