Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

uniconv.h

Go to the documentation of this file.
00001 /* 00002 * Copyright 2002,2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * $Id: uniconv.h,v 1.2 2004/09/08 13:56:46 peiyongz Exp $ 00019 */ 00020 00021 #ifndef UNICONV_HPP 00022 #define UNICONV_HPP 00023 00024 #include <xercesc/util/XercesDefs.hpp> 00025 00026 XERCES_CPP_NAMESPACE_BEGIN 00027 00028 // This is the type for the returned handles 00029 typedef void * uniconv_t; 00030 #define UNICONV_ERROR (uniconv_t)-1 00031 #define UNICONV_NOHANDLE (uniconv_t)0 00032 00033 // These are the character conversion services APIs. They are modeled 00034 // after the iconv() APIs. 00035 uniconv_t uniconv_open(const char *,const char *); 00036 int uniconv_close(uniconv_t); 00037 int uniconv(uniconv_t cd, char **inbuf, size_t *inbytesleft, 00038 char **outbuf, size_t *outbytesleft); 00039 00040 // These are the case conversion APIs. They use the same handle type as the 00041 // conversion APIs above. 00042 typedef unsigned short unichar_t; 00043 uniconv_t uniconv_toupper_open(); 00044 uniconv_t uniconv_tolower_open(); 00045 #define uniconv_toupper_close(_a) _uniconv_case_close(_a) 00046 #define uniconv_tolower_close(_a) _uniconv_case_close(_a) 00047 int _uniconv_case_close(uniconv_t handle_area); 00048 unichar_t uniconv_caseit(uniconv_t cd, unichar_t inchar); 00049 00050 XERCES_CPP_NAMESPACE_END 00051 00052 #endif

Generated on Thu Apr 30 02:30:52 2009 for ACS C++ API by doxygen 1.3.8