Lines Matching refs:XML_Char
175 typedef const XML_Char *KEY;
211 #define INIT_TAG_BUF_SIZE 32 /* must be a multiple of sizeof(XML_Char) */
225 XML_Char *uri;
231 const XML_Char *name;
236 const XML_Char *str;
237 const XML_Char *localPart;
238 const XML_Char *prefix;
268 const XML_Char *name;
269 const XML_Char *textPtr;
272 const XML_Char *systemId;
273 const XML_Char *base;
274 const XML_Char *publicId;
275 const XML_Char *notation;
284 const XML_Char *name;
296 XML_Char s[1];
302 const XML_Char *end;
303 XML_Char *ptr;
304 XML_Char *start;
308 /* The XML_Char before the name is used to determine whether
311 XML_Char *name;
320 const XML_Char *value;
326 const XML_Char *uriName;
330 const XML_Char *name;
399 const XML_Char *encodingName);
427 const ATTRIBUTE_ID *attId, const XML_Char *uri,
430 XML_Bool isId, const XML_Char *dfltValue,
450 static const XML_Char *getContext(XML_Parser parser);
451 static XML_Bool setContext(XML_Parser parser, const XML_Char *context);
453 static void FASTCALL normalizePublicId(XML_Char *s);
477 static XML_Char *poolAppend(STRING_POOL *pool, const ENCODING *enc,
479 static XML_Char *poolStoreString(STRING_POOL *pool, const ENCODING *enc,
482 static const XML_Char *FASTCALL poolCopyString(STRING_POOL *pool,
483 const XML_Char *s);
484 static const XML_Char *poolCopyStringN(STRING_POOL *pool, const XML_Char *s,
486 static const XML_Char *FASTCALL poolAppendString(STRING_POOL *pool,
487 const XML_Char *s);
494 static XML_Char *copyString(const XML_Char *s,
500 static XML_Parser parserCreate(const XML_Char *encodingName,
502 const XML_Char *nameSep, DTD *dtd);
504 static void parserInit(XML_Parser parser, const XML_Char *encodingName);
533 XML_Char *m_dataBuf;
534 XML_Char *m_dataBufEnd;
561 const XML_Char *m_protocolEncodingName;
579 const XML_Char *m_doctypeName;
580 const XML_Char *m_doctypeSysid;
581 const XML_Char *m_doctypePubid;
582 const XML_Char *m_declAttributeType;
583 const XML_Char *m_declNotationName;
584 const XML_Char *m_declNotationPublicId;
590 const XML_Char *m_curBase;
610 XML_Char m_namespaceSeparator;
626 XML_ParserCreate(const XML_Char *encodingName) {
631 XML_ParserCreateNS(const XML_Char *encodingName, XML_Char nsSep) {
632 XML_Char tmp[2];
637 static const XML_Char implicitContext[]
867 XML_ParserCreate_MM(const XML_Char *encodingName,
869 const XML_Char *nameSep) {
874 parserCreate(const XML_Char *encodingName,
875 const XML_Memory_Handling_Suite *memsuite, const XML_Char *nameSep,
922 = (XML_Char *)MALLOC(parser, INIT_DATA_BUF_SIZE * sizeof(XML_Char));
989 parserInit(XML_Parser parser, const XML_Char *encodingName) {
1072 XML_ParserReset(XML_Parser parser, const XML_Char *encodingName) {
1113 XML_SetEncoding(XML_Parser parser, const XML_Char *encodingName) {
1140 XML_ExternalEntityParserCreate(XML_Parser oldParser, const XML_Char *context,
1141 const XML_Char *encodingName) {
1238 XML_Char tmp[2];
1430 XML_SetBase(XML_Parser parser, const XML_Char *p) {
1443 const XML_Char *XMLCALL
2358 = {{XML_FEATURE_SIZEOF_XML_CHAR, XML_L("sizeof(XML_Char)"),
2359 sizeof(XML_Char)},
2402 int nameLen = sizeof(XML_Char) * (tag->name.strLen + 1);
2412 size of tag->buf is a multiple of sizeof(XML_Char).
2414 bufSize = nameLen + ROUND_UP(tag->rawNameLength, sizeof(XML_Char));
2422 if (tag->name.str == (XML_Char *)tag->buf)
2423 tag->name.str = (XML_Char *)temp;
2429 = (XML_Char *)temp + (tag->name.localPart - (XML_Char *)tag->buf);
2587 XML_Char c = 0xA;
2628 const XML_Char *name;
2630 XML_Char ch = (XML_Char)XmlPredefinedEntityName(
2679 const XML_Char *context;
2699 XML_Char *toPtr;
2725 toPtr = (XML_Char *)tag->buf;
2732 convLen = (int)(toPtr - (XML_Char *)tag->buf);
2745 toPtr = (XML_Char *)temp + convLen;
2749 tag->name.str = (XML_Char *)tag->buf;
2756 (const XML_Char **)parser->m_atts);
2783 (const XML_Char **)parser->m_atts);
2824 const XML_Char *localPart;
2825 const XML_Char *prefix;
2826 XML_Char *uri;
2833 uri = (XML_Char *)tag->name.str + tag->name.uriLen;
2837 prefix = (XML_Char *)tag->name.prefix;
2872 XML_Char buf[XML_ENCODE_MAX];
2882 XML_Char c = 0xA;
2932 parser->m_handlerArg, (XML_Char *)s,
2933 (int)((XML_Char *)end - (XML_Char *)s));
2966 charDataHandler(parser->m_handlerArg, (XML_Char *)s,
2967 (int)((XML_Char *)next - (XML_Char *)s));
3043 const XML_Char **appAtts; /* the attribute list for the application */
3048 XML_Char *uri;
3051 const XML_Char *localPart;
3057 const XML_Char *name = poolCopyString(&dtd->pool, tagNamePtr->str);
3098 appAtts = (const XML_Char **)parser->m_atts;
3256 const XML_Char *s = appAtts[i];
3267 ((XML_Char *)s)[-1] = 0; /* clear flag */
3291 const XML_Char c = b->uri[j];
3296 sip24_update(&sip_state, b->uri, b->uriLen * sizeof(XML_Char));
3301 sip24_update(&sip_state, s, keylen(s) * sizeof(XML_Char));
3319 const XML_Char *s1 = poolStart(&parser->m_tempPool);
3320 const XML_Char *s2 = parser->m_nsAtts[j].uriName;
3357 ((XML_Char *)s)[-1] = 0; /* clear flag */
3362 ((XML_Char *)(appAtts[i]))[-1] = 0;
3396 uri = (XML_Char *)MALLOC(parser, (n + EXPAND_SPARE) * sizeof(XML_Char));
3400 memcpy(uri, binding->uri, binding->uriLen * sizeof(XML_Char));
3409 memcpy(uri, localPart, i * sizeof(XML_Char));
3414 memcpy(uri + 1, binding->prefix->name, prefixLen * sizeof(XML_Char));
3425 const XML_Char *uri, BINDING **bindingsPtr) {
3426 static const XML_Char xmlNamespace[]
3435 static const int xmlLen = (int)sizeof(xmlNamespace) / sizeof(XML_Char) - 1;
3436 static const XML_Char xmlnsNamespace[]
3443 = (int)sizeof(xmlnsNamespace) / sizeof(XML_Char) - 1;
3491 XML_Char *temp = (XML_Char *)REALLOC(
3492 parser, b->uri, sizeof(XML_Char) * (len + EXPAND_SPARE));
3504 = (XML_Char *)MALLOC(parser, sizeof(XML_Char) * (len + EXPAND_SPARE));
3512 memcpy(b->uri, uri, len * sizeof(XML_Char));
3599 XML_Char c = 0xA;
3621 charDataHandler(parser->m_handlerArg, (XML_Char *)s,
3622 (int)((XML_Char *)next - (XML_Char *)s));
3800 const XML_Char *storedEncName = NULL;
3804 const XML_Char *storedversion = NULL;
3880 handleUnknownEncoding(XML_Parser parser, const XML_Char *encodingName) {
4103 static const XML_Char externalSubsetName[] = {ASCII_HASH, '\0'};
4105 static const XML_Char atypeCDATA[]
4107 static const XML_Char atypeID[] = {ASCII_I, ASCII_D, '\0'};
4108 static const XML_Char atypeIDREF[]
4110 static const XML_Char atypeIDREFS[]
4112 static const XML_Char atypeENTITY[]
4114 static const XML_Char atypeENTITIES[]
4117 static const XML_Char atypeNMTOKEN[]
4119 static const XML_Char atypeNMTOKENS[]
4122 static const XML_Char notationPrefix[]
4125 static const XML_Char enumValueSep[] = {ASCII_PIPE, '\0'};
4126 static const XML_Char enumValueStart[] = {ASCII_LPAREN, '\0'};
4241 XML_Char *pubId;
4261 XML_Char *tem
4417 const XML_Char *prefix;
4464 const XML_Char *attVal;
4617 const XML_Char *name = poolStoreString(&dtd->pool, enc, s, next);
4647 const XML_Char *name = poolStoreString(&dtd->pool, enc, s, next);
4694 XML_Char *tem = poolStoreString(&parser->m_tempPool, enc,
4707 const XML_Char *systemId = poolStoreString(&parser->m_tempPool, enc,
4826 const XML_Char *name;
4974 const XML_Char *name;
5309 XML_Char buf[XML_ENCODE_MAX];
5350 const XML_Char *name;
5353 XML_Char ch = (XML_Char)XmlPredefinedEntityName(
5431 const XML_Char *textEnd = entity->textPtr + entity->textLen;
5488 const XML_Char *name;
5569 XML_Char buf[XML_ENCODE_MAX];
5630 normalizeLines(XML_Char *s) {
5631 XML_Char *p;
5653 const XML_Char *target;
5654 XML_Char *data;
5680 XML_Char *data;
5739 parser->m_defaultHandler(parser->m_handlerArg, (XML_Char *)s,
5740 (int)((XML_Char *)end - (XML_Char *)s));
5745 XML_Bool isId, const XML_Char *value, XML_Parser parser) {
5790 const XML_Char *name;
5794 const XML_Char *s;
5821 const XML_Char *name;
5879 static const XML_Char *
5925 const XML_Char *s;
5956 const XML_Char *s;
5976 setContext(XML_Parser parser, const XML_Char *context) {
5978 const XML_Char *s = context;
6036 normalizePublicId(XML_Char *publicId) {
6037 XML_Char *p = publicId;
6038 XML_Char *s;
6168 const XML_Char *name;
6185 const XML_Char *name;
6219 const XML_Char *name;
6289 const XML_Char *cachedOldBase = NULL;
6290 const XML_Char *cachedNewBase = NULL;
6296 const XML_Char *name;
6307 const XML_Char *tem = poolCopyString(newPool, oldE->systemId);
6329 const XML_Char *tem
6337 const XML_Char *tem = poolCopyString(newPool, oldE->notation);
6379 sip24_update(&state, s, keylen(s) * sizeof(XML_Char));
6548 static XML_Char *
6565 static const XML_Char *FASTCALL
6566 poolCopyString(STRING_POOL *pool, const XML_Char *s) {
6576 static const XML_Char *
6577 poolCopyStringN(STRING_POOL *pool, const XML_Char *s, int n) {
6601 static const XML_Char *FASTCALL
6602 poolAppendString(STRING_POOL *pool, const XML_Char *s) {
6611 static XML_Char *
6625 ** return offsetof(BLOCK, s) + blockSize * sizeof(XML_Char);
6631 const size_t stretch = sizeof(XML_Char); /* can be 4 bytes */
6668 (pool->end - pool->start) * sizeof(XML_Char));
6746 memcpy(tem->s, pool->start, (pool->ptr - pool->start) * sizeof(XML_Char));
6803 XML_Content **contpos, XML_Char **strpos) {
6808 const XML_Char *src;
6838 XML_Char *str;
6840 + (dtd->contentStringLen * sizeof(XML_Char)));
6846 str = (XML_Char *)(&ret[dtd->scaffCount]);
6857 const XML_Char *name = poolStoreString(&dtd->pool, enc, ptr, end);
6876 static XML_Char *
6877 copyString(const XML_Char *s, const XML_Memory_Handling_Suite *memsuite) {
6879 XML_Char *result;
6889 result = memsuite->malloc_fcn(charsRequired * sizeof(XML_Char));
6893 memcpy(result, s, charsRequired * sizeof(XML_Char));