Lines Matching refs:retValue
5645 * @retValue: the returned value
5648 * The caller has to FREE the returned retValue.
5651 * in a @retValue of "???".
5662 xmlSchemaGetCanonValue(xmlSchemaValPtr val, const xmlChar **retValue)
5664 if ((retValue == NULL) || (val == NULL))
5666 *retValue = NULL;
5670 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
5672 *retValue =
5677 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
5679 *retValue = xmlSchemaWhiteSpaceReplace(
5681 if ((*retValue) == NULL)
5682 *retValue = BAD_CAST xmlStrdup(
5698 *retValue =
5700 if (*retValue == NULL)
5701 *retValue =
5707 *retValue = BAD_CAST xmlStrdup(BAD_CAST val->value.qname.name);
5710 *retValue = BAD_CAST xmlStrdup(BAD_CAST "{");
5711 *retValue = BAD_CAST xmlStrcat((xmlChar *) (*retValue),
5713 *retValue = BAD_CAST xmlStrcat((xmlChar *) (*retValue),
5715 *retValue = BAD_CAST xmlStrcat((xmlChar *) (*retValue),
5725 *retValue = xmlStrdup(BAD_CAST "0.0");
5787 *retValue = BAD_CAST buf;
5805 *retValue = xmlStrdup(BAD_CAST "0");
5813 *retValue = xmlMalloc(bufsize);
5814 if (*retValue == NULL)
5818 snprintf((char *) *retValue, bufsize,
5821 snprintf((char *) *retValue, bufsize,
5825 snprintf((char *) *retValue, bufsize,
5828 snprintf((char *) *retValue, bufsize,
5832 snprintf((char *) *retValue, bufsize, "-%lu", dec.lo);
5834 snprintf((char *) *retValue, bufsize, "%lu", dec.lo);
5840 *retValue = BAD_CAST xmlStrdup(BAD_CAST "true");
5842 *retValue = BAD_CAST xmlStrdup(BAD_CAST "false");
5877 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5885 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5891 *retValue = xmlMalloc(6);
5892 if (*retValue == NULL)
5894 snprintf((char *) *retValue, 6, "--%02u",
5901 *retValue = xmlMalloc(6);
5902 if (*retValue == NULL)
5904 snprintf((char *) *retValue, 6, "---%02u",
5911 *retValue = xmlMalloc(8);
5912 if (*retValue == NULL)
5914 snprintf((char *) *retValue, 8, "--%02u-%02u",
5929 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5958 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
5986 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6015 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6019 *retValue = BAD_CAST xmlStrdup(BAD_CAST val->value.hex.str);
6028 *retValue = BAD_CAST xmlStrdup(BAD_CAST val->value.base64.str);
6039 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6051 *retValue = BAD_CAST xmlStrdup(BAD_CAST buf);
6055 *retValue = BAD_CAST xmlStrdup(BAD_CAST "???");
6058 if (*retValue == NULL)
6066 * @retValue: the returned value
6070 * The caller has to free the returned @retValue.
6077 const xmlChar **retValue,
6080 if ((retValue == NULL) || (val == NULL))
6086 *retValue = NULL;
6090 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
6092 *retValue = xmlSchemaCollapseString(val->value.str);
6094 *retValue = xmlSchemaWhiteSpaceReplace(val->value.str);
6095 if ((*retValue) == NULL)
6096 *retValue = BAD_CAST xmlStrdup(val->value.str);
6100 *retValue = BAD_CAST xmlStrdup(BAD_CAST "");
6103 *retValue = xmlSchemaCollapseString(val->value.str);
6105 *retValue = xmlSchemaWhiteSpaceReplace(val->value.str);
6106 if ((*retValue) == NULL)
6107 *retValue = BAD_CAST xmlStrdup(val->value.str);
6111 return (xmlSchemaGetCanonValue(val, retValue));