Lines Matching refs:buf
301 bool simpleXmlParseAttributes(const char* buf, unsigned bufLength, simpleXMLAttributeCb func, const… in simpleXmlParseAttributes() argument
303 const char *itr = buf, *itrEnd = buf + bufLength; in simpleXmlParseAttributes()
306 if (!buf || !func || !tmpBuf) goto error; in simpleXmlParseAttributes()
378 bool simpleXmlParse(const char* buf, unsigned bufLength, bool strip, simpleXMLCb func, const void* … in simpleXmlParse() argument
380 const char *itr = buf, *itrEnd = buf + bufLength; in simpleXmlParse()
382 if (!buf || !func) return false; in simpleXmlParse()
471 bool simpleXmlParseW3CAttribute(const char* buf, unsigned bufLength, simpleXMLAttributeCb func, con… in simpleXmlParseW3CAttribute() argument
478 if (!buf) return false; in simpleXmlParseW3CAttribute()
480 end = buf + bufLength; in simpleXmlParseW3CAttribute()
481 key = (char*)alloca(end - buf + 1); in simpleXmlParseW3CAttribute()
482 val = (char*)alloca(end - buf + 1); in simpleXmlParseW3CAttribute()
484 if (buf == end) return true; in simpleXmlParseW3CAttribute()
487 char* sep = (char*)strchr(buf, ':'); in simpleXmlParseW3CAttribute()
488 next = (char*)strchr(buf, ';'); in simpleXmlParseW3CAttribute()
499 memcpy(key, buf, sep - buf); in simpleXmlParseW3CAttribute()
500 key[sep - buf] = '\0'; in simpleXmlParseW3CAttribute()
505 memcpy(key, buf, sep - buf); in simpleXmlParseW3CAttribute()
506 key[sep - buf] = '\0'; in simpleXmlParseW3CAttribute()
511 memcpy(key, buf, next - buf); in simpleXmlParseW3CAttribute()
512 key[next - buf] = '\0'; in simpleXmlParseW3CAttribute()
529 buf = next + 1; in simpleXmlParseW3CAttribute()
540 const char* simpleXmlParseCSSAttribute(const char* buf, unsigned bufLength, char** tag, char** name… in simpleXmlParseCSSAttribute() argument
542 if (!buf) return nullptr; in simpleXmlParseCSSAttribute()
547 auto itr = _simpleXmlSkipWhiteSpace(buf, buf + bufLength); in simpleXmlParseCSSAttribute()
548 auto itrEnd = (const char*)memchr(buf, '{', bufLength); in simpleXmlParseCSSAttribute()
552 auto nextElement = (const char*)memchr(itrEnd, '}', bufLength - (itrEnd - buf)); in simpleXmlParseCSSAttribute()
577 const char* simpleXmlFindAttributesTag(const char* buf, unsigned bufLength) in simpleXmlFindAttributesTag() argument
579 const char *itr = buf, *itrEnd = buf + bufLength; in simpleXmlFindAttributesTag()
584 if (*itr == '=') return buf; in simpleXmlFindAttributesTag()
586 itr = _simpleXmlUnskipXmlEntities(itr, buf); in simpleXmlFindAttributesTag()