Lines Matching refs:segment
536 * @empty: allow an empty segment
538 * Parse a segment and fills in the appropriate fields
541 * segment = *pchar
542 * segment-nz = 1*pchar
543 * segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" )
544 * ; non-zero-length segment without any colon ":"
573 * path-abempty = *( "/" segment )
613 * path-absolute = "/" [ segment-nz *( "/" segment ) ]
659 * path-rootless = segment-nz *( "/" segment )
701 * path-noscheme = segment-nz-nc *( "/" segment )
1418 * first non-empty segment.
1430 * Analyze each segment in sequence for cases (c) and (d).
1434 * c) All occurrences of "./", where "." is a complete path segment,
1446 * d) If the buffer string ends with "." as a complete path segment,
1452 /* Otherwise keep the segment. */
1467 /* Reset to the beginning of the first segment for the next sequence. */
1475 * Analyze each segment in sequence for cases (e) and (f).
1477 * e) All occurrences of "<segment>/../", where <segment> is a
1478 * complete path segment not equal to "..", are removed from the
1483 * f) If the buffer string ends with "<segment>/..", where <segment>
1484 * is a complete path segment not equal to "..", that
1485 * "<segment>/.." is removed.
1496 * the first character of the segment we want to examine.
1499 /* Find the end of the current segment. */
1504 /* If this is the last segment, we're done (we need at least two
1510 /* If the first segment is "..", or if the next segment _isn't_ "..",
1511 * keep this segment and try the next one.
1521 /* If we get here, remove this segment and the next one and back up
1522 * to the previous segment (if there is one), to implement the
1547 /* "segp" is pointing to the end of a previous segment; find it's
1548 * start. We need to back up to the previous segment and start
1744 xmlChar *ret, *segment = NULL;
1775 segment = xmlURIEscapeStr(BAD_CAST uri->scheme, BAD_CAST "+-.");
1776 NULLCHK(segment)
1777 ret = xmlStrcat(ret, segment);
1779 xmlFree(segment);
1783 segment =
1785 NULLCHK(segment)
1787 ret = xmlStrcat(ret, segment);
1788 xmlFree(segment);
1792 segment = xmlURIEscapeStr(BAD_CAST uri->user, BAD_CAST ";:&=+$,");
1793 NULLCHK(segment)
1795 ret = xmlStrcat(ret, segment);
1797 xmlFree(segment);
1801 segment = xmlURIEscapeStr(BAD_CAST uri->server, BAD_CAST "/?;:@");
1802 NULLCHK(segment)
1805 ret = xmlStrcat(ret, segment);
1806 xmlFree(segment);
1818 segment =
1820 NULLCHK(segment)
1821 ret = xmlStrcat(ret, segment);
1822 xmlFree(segment);
1830 segment =
1832 NULLCHK(segment)
1834 ret = xmlStrcat(ret, segment);
1835 xmlFree(segment);
1839 segment = xmlURIEscapeStr(BAD_CAST uri->opaque, BAD_CAST "");
1840 NULLCHK(segment)
1841 ret = xmlStrcat(ret, segment);
1842 xmlFree(segment);
1846 segment = xmlURIEscapeStr(BAD_CAST uri->fragment, BAD_CAST "#");
1847 NULLCHK(segment)
1849 ret = xmlStrcat(ret, segment);
1850 xmlFree(segment);
2064 * a) All but the last segment of the base URI's path component is