Lines Matching refs:str
804 * @str: the string to unescape
814 xmlURIUnescapeString(const char *str, int len, char *target) {
818 if (str == NULL)
820 if (len <= 0) len = strlen(str);
832 in = str;
864 * @str: string to escape
873 xmlURIEscapeStr(const xmlChar *str, const xmlChar *list) {
879 if (str == NULL)
881 if (str[0] == 0)
882 return(xmlStrdup(str));
883 len = xmlStrlen(str);
893 in = (const xmlChar *) str;
933 * @str: the string of the URI to escape
947 xmlURIEscape(const xmlChar * str)
958 if (str == NULL)
967 ret2 = xmlParseURIReference(uri, (const char *)str);
1069 * @str: pointer to the string to analyze
1079 xmlParseURIFragment(xmlURIPtr uri, const char **str)
1083 if (str == NULL)
1086 cur = *str;
1094 uri->fragment = STRNDUP(*str, cur - *str);
1096 uri->fragment = xmlURIUnescapeString(*str, cur - *str, NULL);
1098 *str = cur;
1105 * @str: pointer to the string to analyze
1114 xmlParseURIQuery(xmlURIPtr uri, const char **str)
1118 if (str == NULL)
1121 cur = *str;
1130 uri->query = STRNDUP(*str, cur - *str);
1132 uri->query = xmlURIUnescapeString(*str, cur - *str, NULL);
1134 *str = cur;
1141 * @str: pointer to the string to analyze
1150 xmlParseURIScheme(xmlURIPtr uri, const char **str) {
1153 if (str == NULL)
1156 cur = *str;
1163 uri->scheme = STRNDUP(*str, cur - *str);
1165 *str = cur;
1172 * @str: pointer to the string to analyze
1181 xmlParseURIOpaquePart(xmlURIPtr uri, const char **str)
1185 if (str == NULL)
1188 cur = *str;
1201 uri->opaque = STRNDUP(*str, cur - *str);
1203 uri->opaque = xmlURIUnescapeString(*str, cur - *str, NULL);
1205 *str = cur;
1212 * @str: pointer to the string to analyze
1236 xmlParseURIServer(xmlURIPtr uri, const char **str) {
1243 if (str == NULL)
1246 cur = *str;
1256 uri->path = STRNDUP(*str, cur - *str);
1258 uri->user = xmlURIUnescapeString(*str, cur - *str, NULL);
1266 cur = *str;
1393 *str = cur;
1400 * @str: pointer to the string to analyze
1410 xmlParseURIRelSegment(xmlURIPtr uri, const char **str)
1414 if (str == NULL)
1417 cur = *str;
1430 uri->path = STRNDUP(*str, cur - *str);
1432 uri->path = xmlURIUnescapeString(*str, cur - *str, NULL);
1434 *str = cur;
1441 * @str: pointer to the string to analyze
1453 xmlParseURIPathSegments(xmlURIPtr uri, const char **str, int slash)
1457 if (str == NULL)
1460 cur = *str;
1483 len = cur - *str;
1495 *str = cur;
1505 if (cur - *str > 0) {
1507 memcpy(&path[len2], *str, cur - *str);
1508 path[len2 + (cur - *str)] = 0;
1510 xmlURIUnescapeString(*str, cur - *str, &path[len2]);
1516 *str = cur;
1523 * @str: pointer to the string to analyze
1544 xmlParseURIAuthority(xmlURIPtr uri, const char **str) {
1548 if (str == NULL)
1551 cur = *str;
1556 ret = xmlParseURIServer(uri, str);
1557 if ((ret == 0) && (*str != NULL) &&
1558 ((**str == 0) || (**str == '/') || (**str == '?')))
1560 *str = cur;
1577 uri->authority = STRNDUP(*str, cur - *str);
1579 uri->authority = xmlURIUnescapeString(*str, cur - *str, NULL);
1581 *str = cur;
1588 * @str: pointer to the string to analyze
1599 xmlParseURIHierPart(xmlURIPtr uri, const char **str) {
1603 if (str == NULL)
1606 cur = *str;
1631 *str = cur;
1638 * @str: pointer to the string to analyze
1648 xmlParseAbsoluteURI(xmlURIPtr uri, const char **str) {
1652 if (str == NULL)
1655 cur = *str;
1657 ret = xmlParseURIScheme(uri, str);
1659 if (**str != ':') {
1660 *str = cur;
1663 (*str)++;
1664 if (**str == '/')
1665 return(xmlParseURIHierPart(uri, str));
1666 return(xmlParseURIOpaquePart(uri, str));
1672 * @str: pointer to the string to analyze
1685 xmlParseRelativeURI(xmlURIPtr uri, const char **str) {
1689 if (str == NULL)
1692 cur = *str;
1722 *str = cur;
1729 * @str: the string to analyze
1739 xmlParseURIReference(xmlURIPtr uri, const char *str) {
1741 const char *tmp = str;
1743 if (str == NULL)
1751 ret = xmlParseAbsoluteURI(uri, &str);
1754 str = tmp;
1755 ret = xmlParseRelativeURI(uri, &str);
1762 if (*str == '#') {
1763 str++;
1764 ret = xmlParseURIFragment(uri, &str);
1767 if (*str != 0) {
1776 * @str: the URI string to analyze
1785 xmlParseURI(const char *str) {
1789 if (str == NULL)
1793 ret = xmlParseURIReference(uri, str);
1804 * @str: the URI string to analyze
1814 xmlParseURIRaw(const char *str, int raw) {
1818 if (str == NULL)
1825 ret = xmlParseURIReference(uri, str);