• Home
  • Raw
  • Download

Lines Matching refs:attributes

81     **attributes,  member
121 ***attributes; member
180 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()
795 if (xml_info->attributes == (char **) NULL) in GetXMLTreeAttribute()
798 while ((xml_info->attributes[i] != (char *) NULL) && in GetXMLTreeAttribute()
799 (strcmp(xml_info->attributes[i],tag) != 0)) in GetXMLTreeAttribute()
801 if (xml_info->attributes[i] != (char *) NULL) in GetXMLTreeAttribute()
802 return(xml_info->attributes[i+1]); in GetXMLTreeAttribute()
807 while ((root->attributes[i] != (char **) NULL) && in GetXMLTreeAttribute()
808 (strcmp(root->attributes[i][0],xml_info->tag) != 0)) in GetXMLTreeAttribute()
810 if (root->attributes[i] == (char **) NULL) in GetXMLTreeAttribute()
813 while ((root->attributes[i][j] != (char *) NULL) && in GetXMLTreeAttribute()
814 (strcmp(root->attributes[i][j],tag) != 0)) in GetXMLTreeAttribute()
816 if (root->attributes[i][j] == (char *) NULL) in GetXMLTreeAttribute()
818 return(root->attributes[i][j+1]); in GetXMLTreeAttribute()
848 const XMLTreeInfo *xml_info,SplayTreeInfo *attributes) in GetXMLTreeAttributes() argument
858 assert(attributes != (SplayTreeInfo *) NULL); in GetXMLTreeAttributes()
859 if (xml_info->attributes == (char **) NULL) in GetXMLTreeAttributes()
862 while (xml_info->attributes[i] != (char *) NULL) in GetXMLTreeAttributes()
864 (void) AddValueToSplayTree(attributes, in GetXMLTreeAttributes()
865 ConstantString(xml_info->attributes[i]), in GetXMLTreeAttributes()
866 ConstantString(xml_info->attributes[i+1])); in GetXMLTreeAttributes()
1800 while ((root->attributes[i] != (char **) NULL) && in ParseInternalDoctype()
1802 (strcmp(n,root->attributes[i][0]) != 0)) in ParseInternalDoctype()
1854 if (root->attributes[i] == (char **) NULL) in ParseInternalDoctype()
1860 root->attributes=(char ***) AcquireQuantumMemory(2, in ParseInternalDoctype()
1861 sizeof(*root->attributes)); in ParseInternalDoctype()
1863 root->attributes=(char ***) ResizeQuantumMemory( in ParseInternalDoctype()
1864 root->attributes,(size_t) (i+2), in ParseInternalDoctype()
1865 sizeof(*root->attributes)); in ParseInternalDoctype()
1866 if (root->attributes == (char ***) NULL) in ParseInternalDoctype()
1869 root->attributes[i]=(char **) AcquireQuantumMemory(2, in ParseInternalDoctype()
1870 sizeof(**root->attributes)); in ParseInternalDoctype()
1871 if (root->attributes[i] == (char **) NULL) in ParseInternalDoctype()
1874 root->attributes[i][0]=ConstantString(t); in ParseInternalDoctype()
1875 root->attributes[i][1]=(char *) NULL; in ParseInternalDoctype()
1876 root->attributes[i+1]=(char **) NULL; in ParseInternalDoctype()
1878 for (j=1; root->attributes[i][j] != (char *) NULL; j+=3) ; in ParseInternalDoctype()
1879 root->attributes[i]=(char **) ResizeQuantumMemory( in ParseInternalDoctype()
1880 root->attributes[i],(size_t) (j+4),sizeof(**root->attributes)); in ParseInternalDoctype()
1881 if (root->attributes[i] == (char **) NULL) in ParseInternalDoctype()
1884 root->attributes[i][j+3]=(char *) NULL; in ParseInternalDoctype()
1885 root->attributes[i][j+2]=ConstantString(c); in ParseInternalDoctype()
1886 root->attributes[i][j+1]=(char *) NULL; in ParseInternalDoctype()
1888 root->attributes[i][j+1]=ParseEntities(v,root->entities,*c); in ParseInternalDoctype()
1889 root->attributes[i][j]=ConstantString(n); in ParseInternalDoctype()
1917 static void ParseOpenTag(XMLTreeRoot *root,char *tag,char **attributes) in ParseOpenTag() argument
1928 xml_info->attributes=attributes; in ParseOpenTag()
1959 **attributes, in NewXMLTree() local
2022 attributes=(char **) sentinel; in NewXMLTree()
2050 while ((root->attributes[i] != (char **) NULL) && in NewXMLTree()
2051 (strcmp(root->attributes[i][0],tag) != 0)) in NewXMLTree()
2053 attribute=root->attributes[i]; in NewXMLTree()
2061 attributes=(char **) AcquireQuantumMemory(4, in NewXMLTree()
2062 sizeof(*attributes)); in NewXMLTree()
2064 attributes=(char **) ResizeQuantumMemory(attributes,(size_t) in NewXMLTree()
2065 (l+4),sizeof(*attributes)); in NewXMLTree()
2066 if (attributes == (char **) NULL) in NewXMLTree()
2073 attributes[l+2]=(char *) NULL; in NewXMLTree()
2074 attributes[l+1]=(char *) NULL; in NewXMLTree()
2075 attributes[l]=p; in NewXMLTree()
2078 attributes[l]=ConstantString(""); in NewXMLTree()
2090 attributes[l+1]=p; in NewXMLTree()
2097 attributes[l]=ConstantString(""); in NewXMLTree()
2098 attributes[l+1]=ConstantString(""); in NewXMLTree()
2099 (void) DestroyXMLTreeAttributes(attributes); in NewXMLTree()
2109 (strcmp(attribute[j],attributes[l]) != 0)) in NewXMLTree()
2111 attributes[l+1]=ParseEntities(attributes[l+1], in NewXMLTree()
2116 attributes[l]=ConstantString(attributes[l]); in NewXMLTree()
2137 (void) DestroyXMLTreeAttributes(attributes); in NewXMLTree()
2144 (void) DestroyXMLTreeAttributes(attributes); in NewXMLTree()
2147 ParseOpenTag(root,tag,attributes); in NewXMLTree()
2158 ParseOpenTag(root,tag,attributes); in NewXMLTree()
2162 (void) DestroyXMLTreeAttributes(attributes); in NewXMLTree()
2169 (void) DestroyXMLTreeAttributes(attributes); in NewXMLTree()
2386 root->root.attributes=sentinel; in NewXMLTreeTag()
2387 root->attributes=(char ***) root->root.attributes; in NewXMLTreeTag()
2388 root->processing_instructions=(char ***) root->root.attributes; in NewXMLTreeTag()
2506 while ((xml_info->attributes[i] != (char *) NULL) && in SetXMLTreeAttribute()
2507 (strcmp(xml_info->attributes[i],tag) != 0)) in SetXMLTreeAttribute()
2509 if (xml_info->attributes[i] == (char *) NULL) in SetXMLTreeAttribute()
2516 if (xml_info->attributes != sentinel) in SetXMLTreeAttribute()
2517 xml_info->attributes=(char **) ResizeQuantumMemory( in SetXMLTreeAttribute()
2518 xml_info->attributes,(size_t) (i+4),sizeof(*xml_info->attributes)); in SetXMLTreeAttribute()
2521 xml_info->attributes=(char **) AcquireQuantumMemory(4, in SetXMLTreeAttribute()
2522 sizeof(*xml_info->attributes)); in SetXMLTreeAttribute()
2523 if (xml_info->attributes != (char **) NULL) in SetXMLTreeAttribute()
2524 xml_info->attributes[1]=ConstantString(""); in SetXMLTreeAttribute()
2526 if (xml_info->attributes == (char **) NULL) in SetXMLTreeAttribute()
2528 xml_info->attributes[i]=ConstantString(tag); in SetXMLTreeAttribute()
2529 xml_info->attributes[i+2]=(char *) NULL; in SetXMLTreeAttribute()
2530 (void) strlen(xml_info->attributes[i+1]); in SetXMLTreeAttribute()
2535 for (j=i; xml_info->attributes[j] != (char *) NULL; j+=2) ; in SetXMLTreeAttribute()
2536 if (xml_info->attributes[i+1] != (char *) NULL) in SetXMLTreeAttribute()
2537 xml_info->attributes[i+1]=DestroyString(xml_info->attributes[i+1]); in SetXMLTreeAttribute()
2540 xml_info->attributes[i+1]=ConstantString(value); in SetXMLTreeAttribute()
2543 if (xml_info->attributes[i] != (char *) NULL) in SetXMLTreeAttribute()
2544 xml_info->attributes[i]=DestroyString(xml_info->attributes[i]); in SetXMLTreeAttribute()
2545 (void) memmove(xml_info->attributes+i,xml_info->attributes+i+2,(size_t) in SetXMLTreeAttribute()
2546 (j-i)*sizeof(*xml_info->attributes)); in SetXMLTreeAttribute()
2547 xml_info->attributes=(char **) ResizeQuantumMemory(xml_info->attributes, in SetXMLTreeAttribute()
2548 (size_t) (j+2),sizeof(*xml_info->attributes)); in SetXMLTreeAttribute()
2549 if (xml_info->attributes == (char **) NULL) in SetXMLTreeAttribute()
2552 (void) memmove(xml_info->attributes[j+1]+(i/2),xml_info->attributes[j+1]+ in SetXMLTreeAttribute()
2553 (i/2)+1,(size_t) (((j+2)/2)-(i/2))*sizeof(**xml_info->attributes)); in SetXMLTreeAttribute()
2655 size_t *extent,size_t start,char ***attributes) in XMLTreeTagToXML() argument
2686 for (i=0; xml_info->attributes[i]; i+=2) in XMLTreeTagToXML()
2688 attribute=GetXMLTreeAttribute(xml_info,xml_info->attributes[i]); in XMLTreeTagToXML()
2689 if (attribute != xml_info->attributes[i+1]) in XMLTreeTagToXML()
2691 if ((*length+strlen(xml_info->attributes[i])+MagickPathExtent) > *extent) in XMLTreeTagToXML()
2693 *extent=(*length)+strlen(xml_info->attributes[i])+MagickPathExtent; in XMLTreeTagToXML()
2699 xml_info->attributes[i]); in XMLTreeTagToXML()
2700 (void) EncodePredefinedEntities(xml_info->attributes[i+1],-1,source,length, in XMLTreeTagToXML()
2705 while ((attributes[i] != (char **) NULL) && in XMLTreeTagToXML()
2706 (strcmp(attributes[i][0],xml_info->tag) != 0)) in XMLTreeTagToXML()
2709 while ((attributes[i] != (char **) NULL) && in XMLTreeTagToXML()
2710 (attributes[i][j] != (char *) NULL)) in XMLTreeTagToXML()
2712 if ((attributes[i][j+1] == (char *) NULL) || in XMLTreeTagToXML()
2713 (GetXMLTreeAttribute(xml_info,attributes[i][j]) != attributes[i][j+1])) in XMLTreeTagToXML()
2718 if ((*length+strlen(attributes[i][j])+MagickPathExtent) > *extent) in XMLTreeTagToXML()
2720 *extent=(*length)+strlen(attributes[i][j])+MagickPathExtent; in XMLTreeTagToXML()
2726 attributes[i][j]); in XMLTreeTagToXML()
2727 (void) EncodePredefinedEntities(attributes[i][j+1],-1,source,length,extent, in XMLTreeTagToXML()
2735 *source=XMLTreeTagToXML(xml_info->child,source,length,extent,0,attributes); in XMLTreeTagToXML()
2753 attributes); in XMLTreeTagToXML()
2832 xml=XMLTreeTagToXML(xml_info,&xml,&length,&extent,0,root->attributes); in XMLTreeInfoToXML()