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

📄 xmlstring.hpp

📁 基于属性证书的访问控制源代码,由c++编写,包括openssl,xercesc等
💻 HPP
📖 第 1 页 / 共 5 页
字号:
      * @param name The string to check its NCName validity      * @return Returns true if name is NCName valid, otherwise false      */    static bool isValidNCName(const XMLCh* const name);    /**      * Deprecated: please use XMLChar1_0::isValidName      *      * Checks whether an name is a valid Name according to XML 1.0      * @param name The string to check its Name validity      * @return Returns true if name is Name valid, otherwise false      */    static bool isValidName(const XMLCh* const name);    /**      * Checks whether an name is a valid EncName.      * @param name The string to check its EncName validity      * @return Returns true if name is EncName valid, otherwise false      */    static bool isValidEncName(const XMLCh* const name);    /**      * Deprecated: please use XMLChar1_0::isValidQName      *      * Checks whether an name is a valid QName according to XML 1.0      * @param name The string to check its QName validity      * @return Returns true if name is QName valid, otherwise false      */    static bool isValidQName(const XMLCh* const name);    /**      * Checks whether a character is within [a-zA-Z].      * @param theChar the character to check      * @return Returns true if within the range, otherwise false      */    static bool isAlpha(XMLCh const theChar);    /**      * Checks whether a character is within [0-9].      * @param theChar the character to check      * @return Returns true if within the range, otherwise false      */    static bool isDigit(XMLCh const theChar);    /**      * Checks whether a character is within [0-9a-zA-Z].      * @param theChar the character to check      * @return Returns true if within the range, otherwise false      */    static bool isAlphaNum(XMLCh const theChar);    /**      * Checks whether a character is within [0-9a-fA-F].      * @param theChar the character to check      * @return Returns true if within the range, otherwise false      */    static bool isHex(XMLCh const theChar);    /**      * Deprecated: please use XMLChar1_0::isAllWhiteSpace      *      * Checks whether aa string contains only whitespace according to XML 1.0      * @param toCheck the string to check      * @return Returns true if it is, otherwise false      */    static bool isAllWhiteSpace(const XMLCh* const toCheck);    /** Find is the string appears in the enum list      * @param toFind the string to be found      * @param enumList the list      * return true if found      */    static bool isInList(const XMLCh* const toFind, const XMLCh* const enumList);    //@}    /** @name Conversion functions */    //@{    /** Converts binary data to a text string based a given radix      *      * @param toFormat The beginning of the input string to convert      * @param toFill The buffer that will hold the output on return. The      *        size of this buffer should at least be 'maxChars + 1'.      * @param maxChars The maximum number of output characters that can be      *         accepted. If the result will not fit, it is an error.      * @param radix The radix of the input data, based on which the conversion      * will be done      */    static void binToText    (        const   unsigned int    toFormat        ,       char* const     toFill        , const unsigned int    maxChars        , const unsigned int    radix        , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager    );    /** Converts binary data to a text string based a given radix      *      * @param toFormat The beginning of the input string to convert      * @param toFill The buffer that will hold the output on return. The      *        size of this buffer should at least be 'maxChars + 1'.      * @param maxChars The maximum number of output characters that can be      *         accepted. If the result will not fit, it is an error.      * @param radix The radix of the input data, based on which the conversion      * will be done      */    static void binToText    (        const   unsigned int    toFormat        ,       XMLCh* const    toFill        , const unsigned int    maxChars        , const unsigned int    radix        , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager    );    /** Converts binary data to a text string based a given radix      *      * @param toFormat The beginning of the input string to convert      * @param toFill The buffer that will hold the output on return. The      *        size of this buffer should at least be 'maxChars + 1'.      * @param maxChars The maximum number of output characters that can be      *         accepted. If the result will not fit, it is an error.      * @param radix The radix of the input data, based on which the conversion      * will be done      */    static void binToText    (        const   unsigned long   toFormat        ,       char* const     toFill        , const unsigned int    maxChars        , const unsigned int    radix        , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager    );    /** Converts binary data to a text string based a given radix      *      * @param toFormat The beginning of the input string to convert      * @param toFill The buffer that will hold the output on return. The      *        size of this buffer should at least be 'maxChars + 1'.      * @param maxChars The maximum number of output characters that can be      *         accepted. If the result will not fit, it is an error.      * @param radix The radix of the input data, based on which the conversion      * will be done      */    static void binToText    (        const   unsigned long   toFormat        ,       XMLCh* const    toFill        , const unsigned int    maxChars        , const unsigned int    radix        , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager    );    /** Converts binary data to a text string based a given radix      *      * @param toFormat The beginning of the input string to convert      * @param toFill The buffer that will hold the output on return. The      *        size of this buffer should at least be 'maxChars + 1'.      * @param maxChars The maximum number of output characters that can be      *         accepted. If the result will not fit, it is an error.      * @param radix The radix of the input data, based on which the conversion      * will be done      */    static void binToText    (        const   long            toFormat        ,       char* const     toFill        , const unsigned int    maxChars        , const unsigned int    radix        , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager    );    /** Converts binary data to a text string based a given radix      *      * @param toFormat The beginning of the input string to convert      * @param toFill The buffer that will hold the output on return. The      *        size of this buffer should at least be 'maxChars + 1'.      * @param maxChars The maximum number of output characters that can be      *         accepted. If the result will not fit, it is an error.      * @param radix The radix of the input data, based on which the conversion      * will be done      */    static void binToText    (        const   long            toFormat        ,       XMLCh* const    toFill        , const unsigned int    maxChars        , const unsigned int    radix        , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager    );    /** Converts binary data to a text string based a given radix      *      * @param toFormat The beginning of the input string to convert      * @param toFill The buffer that will hold the output on return. The      *        size of this buffer should at least be 'maxChars + 1'.      * @param maxChars The maximum number of output characters that can be      *         accepted. If the result will not fit, it is an error.      * @param radix The radix of the input data, based on which the conversion      * will be done      */    static void binToText    (        const   int             toFormat        ,       char* const     toFill        , const unsigned int    maxChars        , const unsigned int    radix        , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager    );    /** Converts binary data to a text string based a given radix      *      * @param toFormat The beginning of the input string to convert      * @param toFill The buffer that will hold the output on return. The      *        size of this buffer should at least be 'maxChars + 1'.      * @param maxChars The maximum number of output characters that can be      *         accepted. If the result will not fit, it is an error.      * @param radix The radix of the input data, based on which the conversion      * will be done      */    static void binToText    (        const   int             toFormat        ,       XMLCh* const    toFill        , const unsigned int    maxChars        , const unsigned int    radix        , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager    );    /**      * Converts a string of decimal chars to a binary value      *      * Note that leading and trailng whitespace is legal and will be ignored      * but the remainder must be all decimal digits.      *      * @param toConvert The string of digits to convert      * @param toFill    The unsigned int value to fill with the converted      *                  value.      */    static bool textToBin    (        const   XMLCh* const    toConvert        ,       unsigned int&   toFill        ,       MemoryManager*  const manager = XMLPlatformUtils::fgMemoryManager    );    /**      * Converts a string of decimal chars to a binary value      *      * Note that leading and trailng whitespace is legal and will be ignored,      *      * Only one and either of (+,-) after the leading whitespace, before      * any other characters are allowed.      *      * but the remainder must be all decimal digits.      *      * @param toConvert The string of digits to convert      */    static int parseInt    (        const   XMLCh* const    toConvert      , MemoryManager* const    manager = XMLPlatformUtils::fgMemoryManager    );    /** Cut leading chars from a string      *      * @param toCutFrom The string to cut chars from      * @param count     The count of leading chars to cut      */    static void cut    (                XMLCh* const    toCutFrom        , const unsigned int    count    );    /** Transcodes a string to native code-page      *      * NOTE: The returned buffer is dynamically allocated and is the      * responsibility of the caller to delete it when not longer needed.      * You can call XMLString::release to release this returned buffer.      *      * @param toTranscode The string to be transcoded      * @return Returns the transcoded string      * @see   XMLString::release(XMLCh**)      */    static char* transcode    (        const   XMLCh* const    toTranscode    );    static char* transcode    (        const   XMLCh* const         toTranscode        ,       MemoryManager* const manager    );    /** Transcodes a string to native code-page      *      * Be aware that when transcoding to an external encoding, that each      * Unicode char can create multiple output bytes. So you cannot assume      * a one to one correspondence of input chars to output bytes.      *      * @param toTranscode The string tobe transcoded      * @param toFill The buffer that is filled with the transcoded value.      *        The size of this buffer should atleast be 'maxChars + 1'.      * @param maxChars The maximum number of bytes that the output      *         buffer can hold (not including the null, which is why      *         toFill should be at least maxChars+1.).      * @return Returns true if successful, false if there was an error      */    static bool transcode    (        const   XMLCh* const    toTranscode        ,       char* const     toFill        , const unsigned int    maxChars        , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager    );    /** Transcodes a string to native code-page      *      * NOTE: The returned buffer is dynamically allocated and is the      * responsibility of the caller to delete it when not longer needed.      * You can call XMLString::release to release this returned buffer.      *      * @param toTranscode The string to be transcoded      * @return Returns the transcoded string      * @see   XMLString::release(char**)      */    static XMLCh* transcode    (        const   char* const     toTranscode    );    static XMLCh* transcode    (        const   char* const          toTranscode        ,       MemoryManager* const manager    );    /** Transcodes a string to native code-page

⌨️ 快捷键说明

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