Lines Matching refs:retValue
5663 * @retValue: the returned value
5666 * The caller has to FREE the returned retValue.
5669 * in a @retValue of "???".
5680 xmlSchemaGetCanonValue(xmlSchemaValPtr val, const xmlChar **retValue)
5682 if ((retValue == NULL) || (val == NULL))
5684 *retValue = NULL;
5688 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
5690 *retValue =
5695 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
5697 *retValue = xmlSchemaWhiteSpaceReplace(
5699 if ((*retValue) == NULL)
5700 *retValue = BAD_CAST xmlStrdup(
5716 *retValue =
5718 if (*retValue == NULL)
5719 *retValue =
5725 *retValue = BAD_CAST xmlStrdup(BAD_CAST val->value.qname.name);
5728 *retValue = BAD_CAST xmlStrdup(BAD_CAST "{");
5729 *retValue = BAD_CAST xmlStrcat((xmlChar *) (*retValue),
5731 *retValue = BAD_CAST xmlStrcat((xmlChar *) (*retValue),
5733 *retValue = BAD_CAST xmlStrcat((xmlChar *) (*retValue),
5743 *retValue = xmlStrdup(BAD_CAST "0.0");
5805 *retValue = BAD_CAST buf;
5823 *retValue = xmlStrdup(BAD_CAST "0");
5831 *retValue = xmlMalloc(bufsize);
5832 if (*retValue == NULL)
5836 snprintf((char *) *retValue, bufsize,
5839 snprintf((char *) *retValue, bufsize,
5843 snprintf((char *) *retValue, bufsize,
5846 snprintf((char *) *retValue, bufsize,
5850 snprintf((char *) *retValue, bufsize, "-%lu", dec.lo);
5852 snprintf((char *) *retValue, bufsize, "%lu", dec.lo);
5858 *retValue = BAD_CAST xmlStrdup(BAD_CAST "true");
5860 *retValue = BAD_CAST xmlStrdup(BAD_CAST "false");
5895 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5903 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5909 *retValue = xmlMalloc(6);
5910 if (*retValue == NULL)
5912 snprintf((char *) *retValue, 6, "--%02u",
5919 *retValue = xmlMalloc(6);
5920 if (*retValue == NULL)
5922 snprintf((char *) *retValue, 6, "---%02u",
5929 *retValue = xmlMalloc(8);
5930 if (*retValue == NULL)
5932 snprintf((char *) *retValue, 8, "--%02u-%02u",
5947 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5976 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6004 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6033 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6037 *retValue = BAD_CAST xmlStrdup(BAD_CAST val->value.hex.str);
6046 *retValue = BAD_CAST xmlStrdup(BAD_CAST val->value.base64.str);
6057 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6069 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6073 *retValue = BAD_CAST xmlStrdup(BAD_CAST "???");
6076 if (*retValue == NULL)
6084 * @retValue: the returned value
6088 * The caller has to free the returned @retValue.
6095 const xmlChar **retValue,
6098 if ((retValue == NULL) || (val == NULL))
6104 *retValue = NULL;
6108 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
6110 *retValue = xmlSchemaCollapseString(val->value.str);
6112 *retValue = xmlSchemaWhiteSpaceReplace(val->value.str);
6113 if ((*retValue) == NULL)
6114 *retValue = BAD_CAST xmlStrdup(val->value.str);
6118 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
6121 *retValue = xmlSchemaCollapseString(val->value.str);
6123 *retValue = xmlSchemaWhiteSpaceReplace(val->value.str);
6124 if ((*retValue) == NULL)
6125 *retValue = BAD_CAST xmlStrdup(val->value.str);
6129 return (xmlSchemaGetCanonValue(val, retValue));