Lines Matching refs:retValue
5638 * @retValue: the returned value
5641 * The caller has to FREE the returned retValue.
5644 * in a @retValue of "???".
5655 xmlSchemaGetCanonValue(xmlSchemaValPtr val, const xmlChar **retValue)
5657 if ((retValue == NULL) || (val == NULL))
5659 *retValue = NULL;
5663 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
5665 *retValue =
5670 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
5672 *retValue = xmlSchemaWhiteSpaceReplace(
5674 if ((*retValue) == NULL)
5675 *retValue = BAD_CAST xmlStrdup(
5691 *retValue =
5693 if (*retValue == NULL)
5694 *retValue =
5700 *retValue = BAD_CAST xmlStrdup(BAD_CAST val->value.qname.name);
5703 *retValue = BAD_CAST xmlStrdup(BAD_CAST "{");
5704 *retValue = BAD_CAST xmlStrcat((xmlChar *) (*retValue),
5706 *retValue = BAD_CAST xmlStrcat((xmlChar *) (*retValue),
5708 *retValue = BAD_CAST xmlStrcat((xmlChar *) (*retValue),
5718 *retValue = xmlStrdup(BAD_CAST "0.0");
5780 *retValue = BAD_CAST buf;
5798 *retValue = xmlStrdup(BAD_CAST "0");
5806 *retValue = xmlMalloc(bufsize);
5807 if (*retValue == NULL)
5811 snprintf((char *) *retValue, bufsize,
5814 snprintf((char *) *retValue, bufsize,
5818 snprintf((char *) *retValue, bufsize,
5821 snprintf((char *) *retValue, bufsize,
5825 snprintf((char *) *retValue, bufsize, "-%lu", dec.lo);
5827 snprintf((char *) *retValue, bufsize, "%lu", dec.lo);
5833 *retValue = BAD_CAST xmlStrdup(BAD_CAST "true");
5835 *retValue = BAD_CAST xmlStrdup(BAD_CAST "false");
5870 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5878 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5884 *retValue = xmlMalloc(6);
5885 if (*retValue == NULL)
5887 snprintf((char *) *retValue, 6, "--%02u",
5894 *retValue = xmlMalloc(6);
5895 if (*retValue == NULL)
5897 snprintf((char *) *retValue, 6, "---%02u",
5904 *retValue = xmlMalloc(8);
5905 if (*retValue == NULL)
5907 snprintf((char *) *retValue, 8, "--%02u-%02u",
5922 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5951 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5979 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6008 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6012 *retValue = BAD_CAST xmlStrdup(BAD_CAST val->value.hex.str);
6021 *retValue = BAD_CAST xmlStrdup(BAD_CAST val->value.base64.str);
6032 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6044 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6048 *retValue = BAD_CAST xmlStrdup(BAD_CAST "???");
6051 if (*retValue == NULL)
6059 * @retValue: the returned value
6063 * The caller has to free the returned @retValue.
6070 const xmlChar **retValue,
6073 if ((retValue == NULL) || (val == NULL))
6079 *retValue = NULL;
6083 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
6085 *retValue = xmlSchemaCollapseString(val->value.str);
6087 *retValue = xmlSchemaWhiteSpaceReplace(val->value.str);
6088 if ((*retValue) == NULL)
6089 *retValue = BAD_CAST xmlStrdup(val->value.str);
6093 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
6096 *retValue = xmlSchemaCollapseString(val->value.str);
6098 *retValue = xmlSchemaWhiteSpaceReplace(val->value.str);
6099 if ((*retValue) == NULL)
6100 *retValue = BAD_CAST xmlStrdup(val->value.str);
6104 return (xmlSchemaGetCanonValue(val, retValue));