⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ospxmltype.h

📁 mgcp协议源代码。支持多种编码:g711
💻 H
字号:
/**########################################################################*########################################################################*########################################################################*                                                               *   COPYRIGHT (c) 1998, 1999 by TransNexus, LLC                          *                                                                    *   This software contains proprietary and confidential information  *   of TransNexus, LLC. Except as may be set forth in the license    *   agreement under which this software is supplied, use, disclosure, *   or reproduction is prohibited without the prior, express, written*   consent of TransNexus, LLC.                                      *                                     *******#########################################################################*#########################################################################*#########################################################################*//* * ospxmltype.h - Structures and prototypes for generic XML character *                types. These are more or less a duplication of the *                ANSI ctype.h functions. It is necessary to write *                them from scratch, though, in order to ensure *                strict XML compliance. * *                Note that the implementation treats each XML character *                as a C char, which is mostly likely 8 bits. The XML *                decoding routines still accept 16-bit characters *                though. Since the OSP uses only ASCII characters, *                any 16-bit encoding can be safely converted to 8-bit *                char variables. */#ifndef _OSPXMLTYPE_H#define _OSPXMLTYPE_H/* * The character types we care about, as bit masks for an eventual * ctype-like array. */#define OSPC_XMLTYPE_NONE   0x00#define OSPC_XMLTYPE_CHAR   0x01#define OSPC_XMLTYPE_SPACE  0x02#define OSPC_XMLTYPE_LETTER 0x04#define OSPC_XMLTYPE_DIGIT  0x08#define OSPC_XMLTYPE_NAME   0x10#define OSPC_XMLTYPE_NAME1  0x20/* * external definition of the XML ctype-like array; this is not * a static array so we can use macros to access it */extern const unsigned char OSPVXMLCType[];/**//*-----------------------------------------------------------------------* * macros that emulate functions *-----------------------------------------------------------------------*//* * Note: all macros are also implemented as functions in ospxmlelem.c. * For implementation details, see the comments in that file. To replace * a macro with a true function, simply comment out the macro definition * below. */#define OSPPXMLIsChar(ospvChar)   (OSPVXMLCType[ospvChar] & OSPC_XMLTYPE_CHAR)#define OSPPXMLIsSpace(ospvChar)  (OSPVXMLCType[ospvChar] & OSPC_XMLTYPE_SPACE)#define OSPPXMLIsLetter(ospvChar) (OSPVXMLCType[ospvChar] & OSPC_XMLTYPE_LETTER)#define OSPPXMLIsDigit(ospvChar)  (OSPVXMLCType[ospvChar] & OSPC_XMLTYPE_DIGIT)#define OSPPXMLIsName(ospvChar)   (OSPVXMLCType[ospvChar] & OSPC_XMLTYPE_NAME)#define OSPPXMLIsName1(ospvChar)  (OSPVXMLCType[ospvChar] & OSPC_XMLTYPE_NAME1)/**//*-----------------------------------------------------------------------* * function prototypes *-----------------------------------------------------------------------*/#ifndef OSPPXMLIsCharunsigned OSPPXMLIsChar(unsigned char);#endif#ifndef OSPPXMLIsSpaceunsigned OSPPXMLIsSpace(unsigned char);#endif#ifndef OSPPXMLIsLetterunsigned OSPPXMLIsLetter(unsigned char);#endif#ifndef OSPPXMLIsDigitunsigned OSPPXMLIsDigit(unsigned char);#endif#ifndef OSPPXMLIsNameunsigned OSPPXMLIsName(unsigned char);#endif#ifndef OSPPXMLIsName1unsigned OSPPXMLIsName1(unsigned char);#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -