• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/libxml2-26/libxml2/

Lines Matching +defs:def +defs:len

1109 xmlAttrNormalizeSpace2(xmlParserCtxtPtr ctxt, xmlChar *src, int *len)
1116 if ((ctxt == NULL) || (src == NULL) || (len == NULL))
1118 i = *len;
1146 *len = (int) strlen((const char *)ret);
1149 *len -= remove_head;
1150 memmove(src, src + remove_head, 1 + *len);
1171 int len;
1193 name = xmlSplitQName3(fullname, &len);
1199 prefix = xmlDictLookup(ctxt->dict, fullname, len);
1238 name = xmlSplitQName3(fullattr, &len);
1244 prefix = xmlDictLookup(ctxt->dict, fullattr, len);
1250 len = xmlStrlen(value);
1251 value = xmlDictLookup(ctxt->dict, value, len);
1253 defaults->values[5 * defaults->nbAttrs + 3] = value + len;
2665 * @len: the string length
2681 xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len,
2693 if ((ctxt == NULL) || (str == NULL) || (len < 0))
2695 last = str + len;
2876 * @len: the size of @str
2884 static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len,
2907 for (i = 0;i < len;i++)
2969 int len = 0;
2992 while ((c != 0) && (c != ':') && (len < max)) { /* tested bigname.xml */
2993 buf[len++] = c;
2996 if (len >= max) {
3001 max = len * 2;
3008 memcpy(buffer, buf, len);
3010 if (len + 10 > max) {
3023 buffer[len++] = c;
3026 buffer[len] = 0;
3037 ret = xmlStrndup(buf, len);
3051 len = 0;
3071 while ((c != 0) && (len < max)) { /* tested bigname2.xml */
3072 buf[len++] = c;
3075 if (len >= max) {
3080 max = len * 2;
3087 memcpy(buffer, buf, len);
3089 if (len + 10 > max) {
3102 buffer[len++] = c;
3105 buffer[len] = 0;
3109 ret = xmlStrndup(buf, len);
3220 int *len, int *alloc, int normalize);
3224 int len = 0, l;
3262 len += l;
3292 len += l;
3302 len += l;
3318 len += l;
3330 if ((len > XML_MAX_NAME_LENGTH) &&
3336 return(xmlDictLookup(ctxt->dict, ctxt->input->cur - (len + 1), len));
3337 return(xmlDictLookup(ctxt->dict, ctxt->input->cur - len, len));
3404 int len = 0, l;
3425 if ((len > XML_MAX_NAME_LENGTH) &&
3435 len += l;
3446 if ((len > XML_MAX_NAME_LENGTH) &&
3451 return(xmlDictLookup(ctxt->dict, ctxt->input->cur - len, len));
3457 * @len: length of the string parsed
3576 int len = 0, l;
3588 COPY_BUF(l,buf,len,c);
3592 COPY_BUF(l,buf,len,c);
3595 if (len >= XML_MAX_NAMELEN) { /* test bigentname.xml */
3601 int max = len * 2;
3608 memcpy(buffer, buf, len);
3610 if (len + 10 > max) {
3613 if ((len > XML_MAX_NAME_LENGTH) &&
3629 COPY_BUF(l,buffer,len,c);
3633 buffer[len] = 0;
3638 if ((len > XML_MAX_NAME_LENGTH) &&
3644 return(xmlStrndup(buf, len));
3663 int len = 0, l;
3681 COPY_BUF(l,buf,len,c);
3691 if (len >= XML_MAX_NAMELEN) {
3697 int max = len * 2;
3704 memcpy(buffer, buf, len);
3714 if (len + 10 > max) {
3733 COPY_BUF(l,buffer,len,c);
3737 buffer[len] = 0;
3741 if (len == 0)
3743 if ((len > XML_MAX_NAME_LENGTH) &&
3748 return(xmlStrndup(buf, len));
3767 int len = 0;
3811 if (len + 5 >= size) {
3823 COPY_BUF(l,buf,len,c);
3838 buf[len] = 0;
3902 * @len: the resulting attribute len
3916 size_t len = 0;
3953 if ((len > XML_MAX_TEXT_LENGTH) &&
3967 if (len + 10 > buf_size) {
3970 buf[len++] = '&';
3976 if (len + 10 > buf_size) {
3979 buf[len++] = '&';
3980 buf[len++] = '#';
3981 buf[len++] = '3';
3982 buf[len++] = '8';
3983 buf[len++] = ';';
3986 if (len + 10 > buf_size) {
3989 len += xmlCopyChar(0, &buf[len], val);
3998 if (len + 10 > buf_size) {
4003 buf[len++] = '&';
4004 buf[len++] = '#';
4005 buf[len++] = '3';
4006 buf[len++] = '8';
4007 buf[len++] = ';';
4009 buf[len++] = ent->content[0];
4022 buf[len++] = 0x20;
4025 buf[len++] = *current++;
4026 if (len + 10 > buf_size) {
4034 if (len + 10 > buf_size) {
4038 buf[len++] = ent->content[0];
4067 buf[len++] = '&';
4068 while (len + i + 10 > buf_size) {
4072 buf[len++] = *cur++;
4073 buf[len++] = ';';
4078 if ((len != 0) || (!normalize)) {
4080 COPY_BUF(l,buf,len,0x20);
4081 while (len + 10 > buf_size) {
4089 COPY_BUF(l,buf,len,c);
4090 if (len + 10 > buf_size) {
4103 while ((len > 0) && (buf[len - 1] == 0x20)) len--;
4105 buf[len] = 0;
4123 if (len >= INT_MAX) {
4129 if (attlen != NULL) *attlen = (int) len;
4196 int len = 0;
4223 if (len + 5 >= size) {
4252 COPY_BUF(l,buf,len,cur);
4261 buf[len] = 0;
4285 int len = 0;
4311 if (len + 1 >= size) {
4329 buf[len++] = cur;
4347 buf[len] = 0;
4734 * @len: number of bytes filles in the buffer
4746 size_t len, size_t size) {
4756 len = 0;
4796 if ((len > XML_MAX_TEXT_LENGTH) &&
4803 if (len + 5 >= size) {
4817 COPY_BUF(ql,buf,len,q);
4840 buf[len] = 0;
4881 size_t len = 0;
4946 len = 0;
4947 } else if (len + nbchar + 1 >= size) {
4949 size += len + nbchar + XML_PARSER_BUFFER_SIZE;
4960 memcpy(&buf[len], ctxt->input->cur, nbchar);
4961 len += nbchar;
4962 buf[len] = 0;
4965 if ((len > XML_MAX_TEXT_LENGTH) &&
5031 xmlParseCommentComplex(ctxt, buf, len, size);
5159 size_t len = 0;
5215 if (len + 5 >= size) {
5236 if ((len > XML_MAX_TEXT_LENGTH) &&
5245 COPY_BUF(l,buf,len,cur);
5254 if ((len > XML_MAX_TEXT_LENGTH) &&
5262 buf[len] = 0;
5888 * parse the Attribute list def for an element
5963 * : parse the Attribute list def for an element
5996 int def;
6030 def = xmlParseDefaultDecl(ctxt, &defaultValue);
6031 if (def <= 0) {
6066 type, def, defaultValue, tree);
6071 (def != XML_ATTRIBUTE_IMPLIED) &&
6072 (def != XML_ATTRIBUTE_REQUIRED)) {
8871 * @len: attribute len result
8899 * caller if it was copied, this can be detected by val[*len] == 0.
8903 xmlParseAttValueInternal(xmlParserCtxtPtr ctxt, int *len, int *alloc,
9055 if (len != NULL) {
9056 *len = last - start;
9067 return xmlParseAttValueComplex(ctxt, len, normalize);
9077 * @len: an int * to save the length of the attribute
9089 int *len, int *alloc)
9123 val = xmlParseAttValueInternal(ctxt, len, alloc, normalize);
9134 val2 = xmlAttrNormalizeSpace2(ctxt, val, len);
9156 internal_val = xmlStrndup(val, *len);
9168 internal_val = xmlStrndup(val, *len);
9279 int len = -1, alloc = 0;
9282 &aprefix, &attvalue, &len, &alloc);
9290 if (len < 0) len = xmlStrlen(attvalue);
9292 const xmlChar *URL = xmlDictLookup(ctxt->dict, attvalue, len);
9317 if ((len == 29) &&
9342 const xmlChar *URL = xmlDictLookup(ctxt->dict, attvalue, len);
9370 if ((len == 29) &&
9421 if (attvalue[len] == 0)
9433 attvalue += len;
9440 if ((attvalue != NULL) && (attvalue[len] == 0))
9740 int len = 0;
9776 if (len + 5 >= size) {
9795 COPY_BUF(rl,buf,len,r);
9812 buf[len] = 0;
9827 ctxt->sax->cdataBlock(ctxt->userData, buf, len);
9829 ctxt->sax->characters(ctxt->userData, buf, len);
10112 int len = 0;
10126 buf[len++] = cur;
10133 buf[len++] = cur;
10137 if (len + 1 >= size) {
10149 buf[len++] = cur;
10153 buf[len] = 0;
10217 int len = 0;
10230 buf[len++] = cur;
10238 if (len + 1 >= size) {
10250 buf[len++] = cur;
10259 buf[len] = 0;
10914 int base, len;
10926 len = in->length;
10929 len = xmlBufUse(in->buf->buffer);
10932 if (third) len -= 2;
10933 else if (next) len --;
10934 for (;base < len;base++) {
11035 * @len: length of the block in bytes
11043 xmlCheckCdataPush(const xmlChar *utf, int len) {
11048 if ((utf == NULL) || (len <= 0))
11051 for (ix = 0; ix < len;) { /* string is 0-terminated */
11061 if (ix + 2 > len) return(ix);
11070 if (ix + 3 > len) return(ix);
11081 if (ix + 4 > len) return(ix);
12201 unsigned int len = 45;
12207 len = 90;
12212 len = 180;
12214 if (ctxt->input->buf->rawconsumed < len)
12215 len -= ctxt->input->buf->rawconsumed;
12219 * if size is greater than len. Otherwise, memmove in xmlBufferAdd
12222 if ((unsigned int) size > len) {
12223 remain = size - len;
12224 size = len;
14558 int len;
14562 len = xmlStrlen(cur);
14563 return(xmlCreateMemoryParserCtxt((const char *)cur, len));