/usr/include/ACEXML/common/XML_Types.h is in libacexml-dev 6.0.3+dfsg-0.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | // -*- C++ -*-
//=============================================================================
/**
* @file XML_Types.h
*
* This file collects the type definitions for data types
* used in ACE XML parser.
*
* $Id: XML_Types.h 92580 2010-11-15 09:48:02Z johnnyw $
*
* @author Nanbor Wang <nanbor@cs.wustl.edu>
*/
//=============================================================================
#ifndef _ACEXML_XML_TYPES_H_
#define _ACEXML_XML_TYPES_H_
#include /**/ "ace/pre.h"
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Basic_Types.h"
#include "ace/SString.h"
#include "ace/Functor_String.h"
# if defined (ACE_HAS_WCHAR) && (ACE_SIZEOF_WCHAR == 2)
typedef wchar_t ACEXML_UTF16;
# else
typedef ACE_UINT16 ACEXML_UTF16;
# endif /* ACE_HAS_WCHAR && ACE_SIZEOF_WCHAR == 2 */
# if defined (ACE_HAS_WCHAR) && (ACE_SIZEOF_WCHAR == 4)
typedef wchar_t ACEXML_UCS4;
# else
typedef ACE_UINT32 ACEXML_UCS4;
# endif /* ACE_HAS_WCHAR && ACE_SIZEOF_WCHAR == 4 */
typedef char ACEXML_UTF8;
/**
* @typedef ACEXML_Char
* ACEXML_Char only maps to ACEXML_UTF16 when ACE_USES_WCHAR is defined.
* Here we assume sizeof (wchar_t) is always 2 bytes.
*
* Default XML strings will use UTF-8 encoding. We would like to use
* the string classes in standard C++ Library here. But they are not
* very portable yet (as far as I know,) and I'll just use ACE_CString
* for now, unless UNICODE support is turned on. Notice that you
* should never convert strings between ACE_CString and ACE_WString
* using the built-in conversion functions as they only perform simple
* copy without any encoding conversion.
*/
typedef ACE_TCHAR ACEXML_Char;
# if defined (ACE_USES_WCHAR)
//typedef ACEXML_UTF16 ACEXML_Char;
typedef ACE_WString ACEXML_String;
# else
//typedef ACEXML_UTF8 ACEXML_Char;
typedef ACE_CString ACEXML_String;
# endif /* ACE_USES_WCHAR */
# if (!defined (ACEXML_HAS_INLINE) && defined (__ACE_INLINE__)) || (ACEXML_HAS_INLINE == 1)
# define __ACEXML_INLINE__ inline
# else
# if defined (__ACEXML_INLINE__)
# undef __ACEXML_INLINE__
# endif /* __ACEXML_INLINE__ */
# endif /* (!ACEXML_HAS_INLINE) && (__ACE_INLINE__) || (ACEXML_HAS_INLINE == 1) */
# if defined (__ACEXML_INLINE__)
# define ACEXML_INLINE inline
# else
# define ACEXML_INLINE
# endif /* __ACEXML_INLINE */
#include /**/ "ace/post.h"
#endif /* _ACEXML_XML_TYPE_H_ */
|