Lines Matching refs:attributes
80 **attributes, member
120 ***attributes; member
179 child->attributes=sentinel; in AddChildToXMLTree()
438 static char **DestroyXMLTreeAttributes(char **attributes) in DestroyXMLTreeAttributes() argument
446 if ((attributes == (char **) NULL) || (attributes == sentinel)) in DestroyXMLTreeAttributes()
448 for (i=0; attributes[i] != (char *) NULL; i+=2) in DestroyXMLTreeAttributes()
453 if (attributes[i] != (char *) NULL) in DestroyXMLTreeAttributes()
454 attributes[i]=DestroyString(attributes[i]); in DestroyXMLTreeAttributes()
455 if (attributes[i+1] != (char *) NULL) in DestroyXMLTreeAttributes()
456 attributes[i+1]=DestroyString(attributes[i+1]); in DestroyXMLTreeAttributes()
458 attributes=(char **) RelinquishMagickMemory(attributes); in DestroyXMLTreeAttributes()
497 **attributes; in DestroyXMLTreeRoot() local
522 for (i=0; root->attributes[i] != (char **) NULL; i++) in DestroyXMLTreeRoot()
524 attributes=root->attributes[i]; in DestroyXMLTreeRoot()
525 if (attributes[0] != (char *) NULL) in DestroyXMLTreeRoot()
526 attributes[0]=DestroyString(attributes[0]); in DestroyXMLTreeRoot()
527 for (j=1; attributes[j] != (char *) NULL; j+=3) in DestroyXMLTreeRoot()
529 if (attributes[j] != (char *) NULL) in DestroyXMLTreeRoot()
530 attributes[j]=DestroyString(attributes[j]); in DestroyXMLTreeRoot()
531 if (attributes[j+1] != (char *) NULL) in DestroyXMLTreeRoot()
532 attributes[j+1]=DestroyString(attributes[j+1]); in DestroyXMLTreeRoot()
533 if (attributes[j+2] != (char *) NULL) in DestroyXMLTreeRoot()
534 attributes[j+2]=DestroyString(attributes[j+2]); in DestroyXMLTreeRoot()
536 attributes=(char **) RelinquishMagickMemory(attributes); in DestroyXMLTreeRoot()
538 if (root->attributes[0] != (char **) NULL) in DestroyXMLTreeRoot()
539 root->attributes=(char ***) RelinquishMagickMemory(root->attributes); in DestroyXMLTreeRoot()
567 xml_info->attributes=DestroyXMLTreeAttributes(xml_info->attributes); in DestroyXMLTree()
796 if (xml_info->attributes == (char **) NULL) in GetXMLTreeAttribute()
799 while ((xml_info->attributes[i] != (char *) NULL) && in GetXMLTreeAttribute()
800 (strcmp(xml_info->attributes[i],tag) != 0)) in GetXMLTreeAttribute()
802 if (xml_info->attributes[i] != (char *) NULL) in GetXMLTreeAttribute()
803 return(xml_info->attributes[i+1]); in GetXMLTreeAttribute()
808 while ((root->attributes[i] != (char **) NULL) && in GetXMLTreeAttribute()
809 (strcmp(root->attributes[i][0],xml_info->tag) != 0)) in GetXMLTreeAttribute()
811 if (root->attributes[i] == (char **) NULL) in GetXMLTreeAttribute()
814 while ((root->attributes[i][j] != (char *) NULL) && in GetXMLTreeAttribute()
815 (strcmp(root->attributes[i][j],tag) != 0)) in GetXMLTreeAttribute()
817 if (root->attributes[i][j] == (char *) NULL) in GetXMLTreeAttribute()
819 return(root->attributes[i][j+1]); in GetXMLTreeAttribute()
849 SplayTreeInfo *attributes) in GetXMLTreeAttributes() argument
859 assert(attributes != (SplayTreeInfo *) NULL); in GetXMLTreeAttributes()
860 if (xml_info->attributes == (char **) NULL) in GetXMLTreeAttributes()
863 while (xml_info->attributes[i] != (char *) NULL) in GetXMLTreeAttributes()
865 (void) AddValueToSplayTree(attributes, in GetXMLTreeAttributes()
866 ConstantString(xml_info->attributes[i]), in GetXMLTreeAttributes()
867 ConstantString(xml_info->attributes[i+1])); in GetXMLTreeAttributes()
1787 while ((root->attributes[i] != (char **) NULL) && in ParseInternalDoctype()
1789 (strcmp(n,root->attributes[i][0]) != 0)) in ParseInternalDoctype()
1841 if (root->attributes[i] == (char **) NULL) in ParseInternalDoctype()
1847 root->attributes=(char ***) AcquireQuantumMemory(2, in ParseInternalDoctype()
1848 sizeof(*root->attributes)); in ParseInternalDoctype()
1850 root->attributes=(char ***) ResizeQuantumMemory( in ParseInternalDoctype()
1851 root->attributes,(size_t) (i+2), in ParseInternalDoctype()
1852 sizeof(*root->attributes)); in ParseInternalDoctype()
1853 if (root->attributes == (char ***) NULL) in ParseInternalDoctype()
1856 root->attributes[i]=(char **) AcquireQuantumMemory(2, in ParseInternalDoctype()
1857 sizeof(**root->attributes)); in ParseInternalDoctype()
1858 if (root->attributes[i] == (char **) NULL) in ParseInternalDoctype()
1861 root->attributes[i][0]=ConstantString(t); in ParseInternalDoctype()
1862 root->attributes[i][1]=(char *) NULL; in ParseInternalDoctype()
1863 root->attributes[i+1]=(char **) NULL; in ParseInternalDoctype()
1865 for (j=1; root->attributes[i][j] != (char *) NULL; j+=3) ; in ParseInternalDoctype()
1866 root->attributes[i]=(char **) ResizeQuantumMemory( in ParseInternalDoctype()
1867 root->attributes[i],(size_t) (j+4),sizeof(**root->attributes)); in ParseInternalDoctype()
1868 if (root->attributes[i] == (char **) NULL) in ParseInternalDoctype()
1871 root->attributes[i][j+3]=(char *) NULL; in ParseInternalDoctype()
1872 root->attributes[i][j+2]=ConstantString(c); in ParseInternalDoctype()
1873 root->attributes[i][j+1]=(char *) NULL; in ParseInternalDoctype()
1875 root->attributes[i][j+1]=ParseEntities(v,root->entities,*c); in ParseInternalDoctype()
1876 root->attributes[i][j]=ConstantString(n); in ParseInternalDoctype()
1904 static void ParseOpenTag(XMLTreeRoot *root,char *tag,char **attributes) in ParseOpenTag() argument
1915 xml_info->attributes=attributes; in ParseOpenTag()
1946 **attributes, in NewXMLTree() local
2009 attributes=(char **) sentinel; in NewXMLTree()
2036 while ((root->attributes[i] != (char **) NULL) && in NewXMLTree()
2037 (strcmp(root->attributes[i][0],tag) != 0)) in NewXMLTree()
2039 attribute=root->attributes[i]; in NewXMLTree()
2047 attributes=(char **) AcquireQuantumMemory(4, in NewXMLTree()
2048 sizeof(*attributes)); in NewXMLTree()
2050 attributes=(char **) ResizeQuantumMemory(attributes, in NewXMLTree()
2051 (size_t) (l+4),sizeof(*attributes)); in NewXMLTree()
2052 if (attributes == (char **) NULL) in NewXMLTree()
2059 attributes[l+2]=(char *) NULL; in NewXMLTree()
2060 attributes[l+1]=(char *) NULL; in NewXMLTree()
2061 attributes[l]=p; in NewXMLTree()
2064 attributes[l]=ConstantString(""); in NewXMLTree()
2076 attributes[l+1]=p; in NewXMLTree()
2083 attributes[l]=ConstantString(""); in NewXMLTree()
2084 attributes[l+1]=ConstantString(""); in NewXMLTree()
2085 (void) DestroyXMLTreeAttributes(attributes); in NewXMLTree()
2095 (strcmp(attribute[j],attributes[l]) != 0)) in NewXMLTree()
2097 attributes[l+1]=ParseEntities(attributes[l+1], in NewXMLTree()
2102 attributes[l]=ConstantString(attributes[l]); in NewXMLTree()
2123 (void) DestroyXMLTreeAttributes(attributes); in NewXMLTree()
2131 ParseOpenTag(root,tag,attributes); in NewXMLTree()
2142 ParseOpenTag(root,tag,attributes); in NewXMLTree()
2146 (void) DestroyXMLTreeAttributes(attributes); in NewXMLTree()
2153 (void) DestroyXMLTreeAttributes(attributes); in NewXMLTree()
2371 root->root.attributes=sentinel; in NewXMLTreeTag()
2372 root->attributes=(char ***) root->root.attributes; in NewXMLTreeTag()
2373 root->processing_instructions=(char ***) root->root.attributes; in NewXMLTreeTag()
2491 while ((xml_info->attributes[i] != (char *) NULL) && in SetXMLTreeAttribute()
2492 (strcmp(xml_info->attributes[i],tag) != 0)) in SetXMLTreeAttribute()
2494 if (xml_info->attributes[i] == (char *) NULL) in SetXMLTreeAttribute()
2501 if (xml_info->attributes != sentinel) in SetXMLTreeAttribute()
2502 xml_info->attributes=(char **) ResizeQuantumMemory( in SetXMLTreeAttribute()
2503 xml_info->attributes,(size_t) (i+4),sizeof(*xml_info->attributes)); in SetXMLTreeAttribute()
2506 xml_info->attributes=(char **) AcquireQuantumMemory(4, in SetXMLTreeAttribute()
2507 sizeof(*xml_info->attributes)); in SetXMLTreeAttribute()
2508 if (xml_info->attributes != (char **) NULL) in SetXMLTreeAttribute()
2509 xml_info->attributes[1]=ConstantString(""); in SetXMLTreeAttribute()
2511 if (xml_info->attributes == (char **) NULL) in SetXMLTreeAttribute()
2513 xml_info->attributes[i]=ConstantString(tag); in SetXMLTreeAttribute()
2514 xml_info->attributes[i+2]=(char *) NULL; in SetXMLTreeAttribute()
2515 (void) strlen(xml_info->attributes[i+1]); in SetXMLTreeAttribute()
2520 for (j=i; xml_info->attributes[j] != (char *) NULL; j+=2) ; in SetXMLTreeAttribute()
2521 if (xml_info->attributes[i+1] != (char *) NULL) in SetXMLTreeAttribute()
2522 xml_info->attributes[i+1]=DestroyString(xml_info->attributes[i+1]); in SetXMLTreeAttribute()
2525 xml_info->attributes[i+1]=ConstantString(value); in SetXMLTreeAttribute()
2528 if (xml_info->attributes[i] != (char *) NULL) in SetXMLTreeAttribute()
2529 xml_info->attributes[i]=DestroyString(xml_info->attributes[i]); in SetXMLTreeAttribute()
2530 (void) CopyMagickMemory(xml_info->attributes+i,xml_info->attributes+i+2, in SetXMLTreeAttribute()
2531 (size_t) (j-i)*sizeof(*xml_info->attributes)); in SetXMLTreeAttribute()
2532 xml_info->attributes=(char **) ResizeQuantumMemory(xml_info->attributes, in SetXMLTreeAttribute()
2533 (size_t) (j+2),sizeof(*xml_info->attributes)); in SetXMLTreeAttribute()
2534 if (xml_info->attributes == (char **) NULL) in SetXMLTreeAttribute()
2537 (void) CopyMagickMemory(xml_info->attributes[j+1]+(i/2), in SetXMLTreeAttribute()
2538 xml_info->attributes[j+1]+(i/2)+1,(size_t) (((j+2)/2)-(i/2))* in SetXMLTreeAttribute()
2539 sizeof(**xml_info->attributes)); in SetXMLTreeAttribute()
2641 size_t *extent,size_t start,char ***attributes) in XMLTreeTagToXML() argument
2672 for (i=0; xml_info->attributes[i]; i+=2) in XMLTreeTagToXML()
2674 attribute=GetXMLTreeAttribute(xml_info,xml_info->attributes[i]); in XMLTreeTagToXML()
2675 if (attribute != xml_info->attributes[i+1]) in XMLTreeTagToXML()
2677 if ((*length+strlen(xml_info->attributes[i])+MagickPathExtent) > *extent) in XMLTreeTagToXML()
2679 *extent=(*length)+strlen(xml_info->attributes[i])+MagickPathExtent; in XMLTreeTagToXML()
2685 xml_info->attributes[i]); in XMLTreeTagToXML()
2686 (void) EncodePredefinedEntities(xml_info->attributes[i+1],-1,source,length, in XMLTreeTagToXML()
2691 while ((attributes[i] != (char **) NULL) && in XMLTreeTagToXML()
2692 (strcmp(attributes[i][0],xml_info->tag) != 0)) in XMLTreeTagToXML()
2695 while ((attributes[i] != (char **) NULL) && in XMLTreeTagToXML()
2696 (attributes[i][j] != (char *) NULL)) in XMLTreeTagToXML()
2698 if ((attributes[i][j+1] == (char *) NULL) || in XMLTreeTagToXML()
2699 (GetXMLTreeAttribute(xml_info,attributes[i][j]) != attributes[i][j+1])) in XMLTreeTagToXML()
2704 if ((*length+strlen(attributes[i][j])+MagickPathExtent) > *extent) in XMLTreeTagToXML()
2706 *extent=(*length)+strlen(attributes[i][j])+MagickPathExtent; in XMLTreeTagToXML()
2712 attributes[i][j]); in XMLTreeTagToXML()
2713 (void) EncodePredefinedEntities(attributes[i][j+1],-1,source,length,extent, in XMLTreeTagToXML()
2721 *source=XMLTreeTagToXML(xml_info->child,source,length,extent,0,attributes); in XMLTreeTagToXML()
2739 attributes); in XMLTreeTagToXML()
2818 xml=XMLTreeTagToXML(xml_info,&xml,&length,&extent,0,root->attributes); in XMLTreeInfoToXML()