Lines Matching defs:in
24 * The definition of the URI regexp in the above RFC has no size limit
25 * In practice they are usually relativey short except for the
26 * data URI scheme as defined in RFC 2397. Even for data URI the usual
31 * Set to 1 MByte in 2012, this is only enforced on output
55 * Old rule from 2396 used in legacy handling code
237 * in the fragment identifier but this is used very broadly for
317 * Parse a port part and fills in the appropriate fields
349 * Parse an user informations part and fills in the appropriate fields
421 * Parse an host part and fills in the appropriate fields
500 * Parse an authority part and fills in the appropriate fields
539 * Parse a segment and fills in the appropriate fields
571 * Parse an path absolute or empty and fills in the appropriate fields
611 * Parse an path absolute and fills in the appropriate fields
657 * Parse an path without root and fills in the appropriate fields
699 * Parse an path which is not a scheme and fills in the appropriate fields
741 * Parse an hierarchical part and fills in the appropriate fields
791 * Parse an URI string and fills in the appropriate fields
849 * Parse an URI string and fills in the appropriate fields
890 * Parse an URI reference string and fills in the appropriate fields
929 * Returns a newly built xmlURIPtr or NULL in case of error
954 * Parse an URI reference string based on RFC 3986 and fills in the
975 * Returns a newly built xmlURIPtr or NULL in case of error
1009 * Returns the new structure or NULL in case of error
1206 * the colon in file:///d: should not be escaped or
1329 * Prints the URI in the stream @stream.
1431 * Analyze each segment in sequence for cases (c) and (d).
1476 * Analyze each segment in sequence for cases (e) and (f).
1488 * To satisfy the "iterative" clause in (e), we need to collapse the
1564 * considered to be in error. Implementations may handle this
1565 * error by retaining these components in the resolved path (i.e.,
1600 * @len: the length in bytes to unescape (or <= 0 to indicate full string)
1608 * Returns a copy of the string, but unescaped, will return NULL only in case
1614 const char *in;
1629 in = str;
1632 if ((len > 2) && (*in == '%') && (is_hex(in[1])) && (is_hex(in[2]))) {
1633 in++;
1634 if ((*in >= '0') && (*in <= '9'))
1635 *out = (*in - '0');
1636 else if ((*in >= 'a') && (*in <= 'f'))
1637 *out = (*in - 'a') + 10;
1638 else if ((*in >= 'A') && (*in <= 'F'))
1639 *out = (*in - 'A') + 10;
1640 in++;
1641 if ((*in >= '0') && (*in <= '9'))
1642 *out = *out * 16 + (*in - '0');
1643 else if ((*in >= 'a') && (*in <= 'f'))
1644 *out = *out * 16 + (*in - 'a') + 10;
1645 else if ((*in >= 'A') && (*in <= 'F'))
1646 *out = *out * 16 + (*in - 'A') + 10;
1647 in++;
1651 *out++ = *in++;
1665 * and the characters in the exception list.
1667 * Returns a new escaped string or NULL in case of error.
1673 const xmlChar *in;
1689 in = (const xmlChar *) str;
1691 while(*in != 0) {
1702 ch = *in;
1717 in++;
1719 ret[out++] = *in++;
1760 * Allow escaping errors in the unescaped form
1868 * @URI: the URI instance found in the document
1878 * Returns a new URI string (to be freed by the caller) or NULL in case
1891 * fragment identifier, as described in Section 4.3.
1950 * NOTE that in modern browsers, the parsing differs from the above
1951 * in the following aspect: the query component is allowed to be
2066 * copied to the buffer. In other words, any characters after the
2133 * Expresses the URI of the reference in terms relative to the
2157 * Returns a new URI string (to be freed by the caller) or NULL in case
2183 /* If URI not already in "relative" form */
2187 goto done; /* Error in URI, return NULL */
2204 goto done; /* Error in base, return NULL */
2275 * In URI, "back up" to the last '/' encountered. This will be the
2295 * In base, count the number of '/' from the differing point
2325 * Put in as many "../" as needed
2370 * @path: the resource locator in a filesystem notation
2389 * replace backslashes in pathnames with "forward slashes"
2441 /* Bypass if any non-alpha characters are present in first part */
2448 /* Escape all except the characters specified in the supplied path */
2482 /* Put in leading '/' plus path */
2516 * @path: the resource locator in a filesystem notation