ReactOS 0.4.16-dev-117-g38f21f9
|
Go to the source code of this file.
Macros | |
#define | BAD_CAST (xmlChar *) |
Typedefs | |
typedef unsigned char | xmlChar |
BAD_CAST:
Macro to cast a string to an xmlChar * when one know its safe.
Definition at line 35 of file xmlstring.h.
xmlChar:
This is a basic byte in an UTF-8 encoded string. It's unsigned allowing to pinpoint case where char * are assigned to xmlChar * (possibly making serialization back impossible).
Definition at line 28 of file xmlstring.h.
xmlCharStrdup: @cur: the input char *
a strdup for char's to xmlChar's
Returns a new xmlChar * or NULL
Definition at line 114 of file xmlstring.c.
Referenced by xmlParseDocument(), xmlParseExtParsedEnt(), xmlParseTextDecl(), and xmlPosixStrdup().
xmlCharStrndup: @cur: the input char * @len: the len of @cur
a strndup for char's to xmlChar's
Returns a new xmlChar * or NULL
Definition at line 86 of file xmlstring.c.
Referenced by xmlCharStrdup().
xmlCheckUTF8: @utf: Pointer to putative UTF-8 encoded string.
Checks @utf for being valid UTF-8. @utf is assumed to be null-terminated. This function is not super-strict, as it will allow longer UTF-8 sequences than necessary. Note that Java is capable of producing these sequences if provoked. Also note, this routine checks for the 4-byte maximum size, but does not check for 0x10ffff maximum value.
Return value: true if @utf is valid.
Definition at line 779 of file xmlstring.c.
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL xmlGetUTF8Char | ( | const unsigned char * | utf, |
int * | len | ||
) |
xmlGetUTF8Char: @utf: a sequence of UTF-8 encoded bytes @len: a pointer to the minimum number of bytes present in the sequence. This is used to assure the next character is completely contained within the sequence.
Read the first UTF8 character from @utf
Returns the char value or -1 in case of error, and sets *len to the actual number of bytes consumed (0 in case of error)
Definition at line 708 of file xmlstring.c.
Referenced by xmlCharEncOutFunc().
xmlStrcasecmp: @str1: the first xmlChar * @str2: the second xmlChar *
a strcasecmp for xmlChar's
Returns the integer result of the comparison
Definition at line 275 of file xmlstring.c.
Referenced by xmlParseEncodingDecl(), xsltApplyStylesheetInternal(), xsltDocumentElem(), xsltGetHTMLIDs(), and xsltParseStylesheetPI().
xmlStrcasestr: @str: the xmlChar * array (haystack) @val: the xmlChar to search (needle)
a case-ignoring strstr for xmlChar's
Returns the xmlChar * for the first occurrence or NULL.
Definition at line 373 of file xmlstring.c.
xmlStrcat: @cur: the original xmlChar * array @add: the xmlChar * array added
a strcat for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'.
Returns a new xmlChar * containing the concatenated string. The original @cur is reallocated and should not be freed.
Definition at line 524 of file xmlstring.c.
Referenced by xmllintExternalEntityLoader(), xmlURIEscape(), xsltAddKey(), xsltAttrTemplateValueProcessNode(), xsltEvalAVT(), xsltFormatNumberConversion(), and xsltReverseCompMatch().
xmlStrchr: @str: the xmlChar * array @val: the xmlChar to search
a strchr for xmlChar's
Returns the xmlChar * for the first occurrence or NULL.
Definition at line 325 of file xmlstring.c.
Referenced by xmlBufWriteQuotedString(), xmlParseAttValueComplex(), xmlParseEntityDecl(), xmlParseEntityRef(), xmlParseNotationDecl(), xmlParsePITarget(), xmlParseReference(), xmlParserEntityCheck(), xmlParseStringEntityRef(), xmlURIEscapeStr(), xsltCompileAttr(), and xsltEvalStaticAttrValueTemplate().
xmlStrcmp: @str1: the first xmlChar * @str2: the second xmlChar *
a strcmp for xmlChar's
Returns the integer result of the comparison
Definition at line 133 of file xmlstring.c.
Referenced by xmlBuildRelativeURI(), xmlCreateEntityParserCtxtInternal(), xsltDefaultSortFunction(), and xsltLocaleStrcmp().
xmlStrdup: @cur: the input xmlChar *
a strdup for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'.
Returns a new xmlChar * or NULL
Definition at line 67 of file xmlstring.c.
Referenced by xmlAddAttributeDecl(), xmlAddElementDecl(), xmlAddID(), xmlAddNotationDecl(), xmlAddRef(), xmlBuildRelativeURI(), xmlBuildURI(), xmlCanonicPath(), xmlCopyDocElementContent(), xmlCreateEnumeration(), xmlCtxtResetPush(), xmlCtxtUseOptionsInternal(), xmlDoRead(), xmlGetDtdElementDesc2(), xmlHashAddEntry3(), xmlHashUpdateEntry3(), xmlInitializeGlobalState(), xmllintExternalEntityLoader(), xmlNewDocElementContent(), xmlNewEntityInputStream(), xmlNewInputFromFile(), xmlParseExternalEntityPrivate(), xmlParseInNodeContext(), xmlPathToURI(), xmlSAX2AttributeNs(), xmlSAX2EndDocument(), xmlSAX2StartDocument(), xmlSAX2StartElementNs(), xmlSAX2Text(), xmlSplitQName(), xmlStrcat(), xmlStrncatNew(), xmlSwitchEncoding(), xmlURIEscapeStr(), xsltAddKey(), xsltApplyStylesheetInternal(), xsltAttribute(), xsltAttrListTemplateProcess(), xsltAttrTemplateProcess(), xsltCheckWrite(), xsltCompileStepPattern(), xsltCopyText(), xsltDocumentElem(), xsltElement(), xsltElementAvailableFunction(), xsltFormatNumberConversion(), xsltFunctionAvailableFunction(), xsltGetNsProp(), xsltGetQNameURI(), xsltKeyFunction(), xsltNewDecimalFormat(), xsltNewExtDef(), xsltNewKeyDef(), xsltNewKeyTable(), xsltParseStylesheetKey(), xsltParseStylesheetOutput(), xsltParseStylesheetProcess(), xsltParseStylesheetTemplate(), xsltReverseCompMatch(), and xsltSystemPropertyFunction().
xmlStrEqual: @str1: the first xmlChar * @str2: the second xmlChar *
Check if both strings are equal of have same content. Should be a bit more readable and faster than xmlStrcmp()
Returns 1 if they are equal, 0 if they are different
Definition at line 160 of file xmlstring.c.
Referenced by exclPrefixPush(), xmlAddAttributeDecl(), xmlBuildRelativeURI(), xmlHashAddEntry3(), xmlHashLookup3(), xmlHashRemoveEntry3(), xmlHashScanFull3(), xmlHashUpdateEntry3(), xmlIsID(), xmlIsXHTML(), xmlParseAttribute2(), xmlParseDocument(), xmlParseEntityDecl(), xmlParseEnumerationType(), xmlParseExternalEntityPrivate(), xmlParseNotationType(), xmlParsePI(), xmlParsePITarget(), xmlParseStartTag2(), xmlParseXMLDecl(), xmlSaveUri(), xmlSAX2AttributeDecl(), xmlSAX2StartElementNs(), xmlStrQEqual(), xsltApplyFallbacks(), xsltApplySequenceConstructor(), xsltApplyStylesheetInternal(), xsltApplyXSLTTemplate(), xsltAttribute(), xsltAttributeComp(), xsltAttrListTemplateProcess(), xsltAttrTemplateProcess(), xsltCheckExtPrefix(), xsltCheckExtURI(), xsltCheckInstructionElement(), xsltCheckParentElement(), xsltCheckRead(), xsltCheckTopLevelElement(), xsltCheckWrite(), xsltCompileIdKeyPattern(), xsltCompileStepPattern(), xsltCopyNamespaceList(), xsltCopyNamespaceListInternal(), xsltCopyTree(), xsltDecimalFormatGetByName(), xsltDecimalFormatGetByQName(), xsltDefaultSortFunction(), xsltDocumentComp(), xsltDocumentElem(), xsltDocumentFunction(), xsltDocumentFunctionLoadDocument(), xsltElement(), xsltFindElemSpaceHandling(), xsltGatherNamespaces(), xsltGetCNsProp(), xsltGetInheritedNsList(), xsltGetKey(), xsltGetNsProp(), xsltGetSpecialNamespace(), xsltInitAllDocKeys(), xsltInitCtxtKey(), xsltInitDocKeyTable(), xsltLoadDocument(), xsltLoadStyleDocument(), xsltLoadStylesheetPI(), xsltMessage(), xsltNamespaceAlias(), xsltNumberComp(), xsltNumberFormat(), xsltParseStylesheetExcludePrefix(), xsltParseStylesheetExtPrefix(), xsltParseStylesheetImport(), xsltParseStylesheetInclude(), xsltParseStylesheetOutput(), xsltParseStylesheetPreserveSpace(), xsltParseStylesheetProcess(), xsltParseStylesheetStripSpace(), xsltParseStylesheetTop(), xsltParseTemplateContent(), xsltPreprocessStylesheet(), xsltProcessUserParamInternal(), xsltRegisterExtPrefix(), xsltRegisterGlobalVariable(), xsltSaveResultTo(), xsltSaveResultToFd(), xsltSaveResultToFile(), xsltSaveResultToFilename(), xsltSaveResultToString(), xsltShallowCopyNsNode(), xsltSortComp(), xsltStylePreCompute(), xsltSystemPropertyFunction(), xsltTestCompMatch(), xsltTestCompMatchCount(), xsltTestStepMatch(), xsltTextComp(), and xsltValueOfComp().
xmlStrlen: @str: the xmlChar * array
length of a xmlChar's string
Returns the number of xmlChar contained in the ARRAY.
Definition at line 426 of file xmlstring.c.
Referenced by xmlAddDefAttrs(), xmlBufAdd(), xmlBuildRelativeURI(), xmlCanonicPath(), xmlCreateDocParserCtxt(), xmlCtxtReadDoc(), xmlNewEntityInputStream(), xmlNewStringInputStream(), xmlParseAttValueComplex(), xmlParseBalancedChunkMemoryInternal(), xmlParseReference(), xmlParseStartTag2(), xmlReportError(), xmlSAX2Text(), xmlSnprintfElementContent(), xmlStrcasestr(), xmlStringDecodeEntities(), xmlStringLenDecodeEntities(), xmlStrncat(), xmlStrncatNew(), xmlStrstr(), xmlURIEscapeStr(), xsltAddTextString(), xsltComment(), xsltCopyText(), xsltCopyTextString(), xsltFormatNumberConversion(), xsltMessage(), and xsltNumberComp().
xmlStrncasecmp: @str1: the first xmlChar * @str2: the second xmlChar * @len: the max comparison length
a strncasecmp for xmlChar's
Returns the integer result of the comparison
Definition at line 300 of file xmlstring.c.
Referenced by xmlStrcasestr(), and xsltElementComp().
xmlStrncat: @cur: the original xmlChar * array @add: the xmlChar * array added @len: the length of @add
a strncat for array of xmlChar's, it will extend @cur with the len first bytes of @add. Note that if @len < 0 then this is an API error and NULL will be returned.
Returns a new xmlChar *, the original @cur is reallocated and should not be freed.
Definition at line 446 of file xmlstring.c.
Referenced by xmlStrcat(), xsltAddKey(), xsltAttrTemplateValueProcessNode(), and xsltCompileAttr().
xmlStrncatNew: @str1: first xmlChar string @str2: second xmlChar string @len: the len of @str2 or < 0
same as xmlStrncat, but creates a new string. The original two strings are not freed. If @len is < 0 then the length will be calculated automatically.
Returns a new xmlChar * or NULL
Definition at line 483 of file xmlstring.c.
xmlStrncmp: @str1: the first xmlChar * @str2: the second xmlChar * @len: the max comparison length
a strncmp for xmlChar's
Returns the integer result of the comparison
Definition at line 213 of file xmlstring.c.
Referenced by xmlDictExists(), xmlDictLookup(), xmlStrstr(), xmlUTF8Charcmp(), xmlUTF8Strloc(), xsltFormatNumberConversion(), and xsltUTF8Charcmp().
xmlStrndup: @cur: the input xmlChar * @len: the len of @cur
a strndup for array of xmlChar's
Returns a new xmlChar * or NULL
Definition at line 42 of file xmlstring.c.
Referenced by parsePath(), xmlAttrNormalizeSpace2(), xmlNewDocElementContent(), xmlParseAttribute2(), xmlParseAttValueInternal(), xmlParseNmtoken(), xmlParseStringName(), xmlSAX2AttributeNs(), xmlSAX2TextNode(), xmlSplitQName(), xmlStrdup(), xmlStrncat(), xmlStrncatNew(), xmlStrsub(), xsltAttrTemplateValueProcessNode(), xsltCompileAttr(), xsltCompilePatternInternal(), xsltCompileStepPattern(), xsltDocumentElem(), xsltGetQNameURI2(), xsltNumberFormatTokenize(), xsltParseStylesheetExcludePrefix(), xsltParseStylesheetExtPrefix(), xsltParseStylesheetOutput(), xsltParseStylesheetPI(), xsltParseStylesheetPreserveSpace(), xsltParseStylesheetStripSpace(), xsltSaveResultToString(), xsltScanLiteral(), and xsltScanNCName().
XMLPUBFUN int XMLCALL xmlStrQEqual | ( | const xmlChar * | pref, |
const xmlChar * | name, | ||
const xmlChar * | str | ||
) |
Definition at line 186 of file xmlstring.c.
Referenced by xmlDictQLookup(), and xmlHashQLookup3().
xmlStrstr: @str: the xmlChar * array (haystack) @val: the xmlChar to search (needle)
a strstr for xmlChar's
Returns the xmlChar * for the first occurrence or NULL.
Definition at line 345 of file xmlstring.c.
Referenced by xmlCanonicPath(), xsltComment(), xsltProcessingInstruction(), and xsltSystemPropertyFunction().
xmlStrsub: @str: the xmlChar * array (haystack) @start: the index of the first char (zero based) @len: the length of the substring
Extract a substring of a given string
Returns the xmlChar * for the first occurrence or NULL.
Definition at line 401 of file xmlstring.c.
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL xmlStrVPrintf | ( | xmlChar * | buf, |
int | len, | ||
const char * | msg, | ||
va_list | ap | ||
) |
xmlUTF8Charcmp: @utf1: pointer to first UTF8 char @utf2: pointer to second UTF8 char
compares the two UCS4 values
returns result of the compare as with xmlStrncmp
Definition at line 644 of file xmlstring.c.
xmlUTF8Size: @utf: pointer to the UTF8 character
calculates the internal size of a UTF8 character
returns the numbers of bytes in the character, -1 on format error
Definition at line 613 of file xmlstring.c.
Referenced by xmlUTF8Charcmp().
xmlUTF8Strlen: @utf: a sequence of UTF-8 encoded bytes
compute the length of an UTF8 string, it doesn't do a full UTF8 checking of the content of the string.
Returns the number of characters in the string or -1 in case of error
Definition at line 664 of file xmlstring.c.
xmlUTF8Strloc: @utf: the input UTF8 * @utfchar: the UTF8 character to be found
a function to provide the relative location of a UTF8 char
Returns the relative character position of the desired char or -1 if not found
Definition at line 926 of file xmlstring.c.
Referenced by xsltFormatNumberConversion().
xmlUTF8Strndup: @utf: the input UTF8 * @len: the len of @utf (in chars)
a strndup for array of UTF8's
Returns a new UTF8 * or NULL
Definition at line 868 of file xmlstring.c.
Referenced by xmlUTF8Strsub().
xmlUTF8Strpos: @utf: the input UTF8 * @pos: the position of the desired UTF8 char (in chars)
a function to provide the equivalent of fetching a character from a string array
Returns a pointer to the UTF8 character or NULL
Definition at line 894 of file xmlstring.c.
Referenced by xsltFormatNumberConversion().
xmlUTF8Strsize: @utf: a sequence of UTF-8 encoded bytes @len: the number of characters in the array
storage size of an UTF8 string the behaviour is not guaranteed if the input string is not UTF-8
Returns the storage size of the first 'len' characters of ARRAY
Definition at line 833 of file xmlstring.c.
Referenced by xmlUTF8Strloc(), xmlUTF8Strndup(), xsltFormatNumberConversion(), xsltFormatNumberPreSuffix(), and xsltUTF8Charcmp().
xmlUTF8Strsub: @utf: a sequence of UTF-8 encoded bytes @start: relative pos of first char @len: total number to copy
Create a substring from a given UTF-8 string Note: positions are given in units of UTF-8 chars
Returns a pointer to a newly created string or NULL if any problem
Definition at line 964 of file xmlstring.c.