Lines Matching refs:uriReference

115 sal_Int32 parseScheme(rtl::OUString const & uriReference) {  in parseScheme()  argument
116 if (uriReference.getLength() >= 2 && isAlpha(uriReference[0])) { in parseScheme()
117 for (sal_Int32 i = 0; i < uriReference.getLength(); ++i) { in parseScheme()
118 sal_Unicode c = uriReference[i]; in parseScheme()
272 css::uno::Reference< css::uri::XUriReference > const & uriReference, in processSegments()
275 sal_Int32 count = uriReference->getPathSegmentCount() - (base ? 1 : 0); in processSegments()
279 rtl::OUString segment(uriReference->getPathSegment(i)); in processSegments()
318 parse(rtl::OUString const & uriReference)
324 css::uno::Reference< css::uri::XUriReference > const & uriReference,
332 css::uno::Reference< css::uri::XUriReference > const & uriReference,
345 css::uno::Reference< css::uri::XUriReference > const & uriReference) in clone()
346 { return parse(uriReference->getUriReference()); } in clone()
371 rtl::OUString const & uriReference) throw (css::uno::RuntimeException) in parse() argument
373 sal_Int32 fragment = uriReference.indexOf('#'); in parse()
375 fragment = uriReference.getLength(); in parse()
380 sal_Int32 n = parseScheme(uriReference); in parse()
383 scheme = uriReference.copy(0, n); in parse()
384 schemeSpecificPart = uriReference.copy(n + 1, fragment - (n + 1)); in parse()
405 schemeSpecificPart = uriReference.copy(0, fragment); in parse()
443 if (uriRef.is() && fragment != uriReference.getLength()) { in parse()
444 uriRef->setFragment(uriReference.copy(fragment + 1)); in parse()
451 css::uno::Reference< css::uri::XUriReference > const & uriReference, in makeAbsolute()
457 || !baseUriReference->isHierarchical() || !uriReference.is()) { in makeAbsolute()
459 } else if (uriReference->isAbsolute()) { in makeAbsolute()
460 return clone(uriReference); in makeAbsolute()
461 } else if (!uriReference->hasAuthority() in makeAbsolute()
462 && uriReference->getPath().getLength() == 0 in makeAbsolute()
463 && !uriReference->hasQuery()) { in makeAbsolute()
466 if (uriReference->hasFragment()) { in makeAbsolute()
467 abs->setFragment(uriReference->getFragment()); in makeAbsolute()
475 if (uriReference->hasAuthority()) { in makeAbsolute()
477 abs.append(uriReference->getAuthority()); in makeAbsolute()
482 if (uriReference->hasRelativePath()) { in makeAbsolute()
486 processSegments(segments, uriReference, false, true); in makeAbsolute()
512 rtl::OUString segment(uriReference->getPathSegment(*i - 2)); in makeAbsolute()
550 abs.append(uriReference->getPath()); in makeAbsolute()
552 if (uriReference->hasQuery()) { in makeAbsolute()
554 abs.append(uriReference->getQuery()); in makeAbsolute()
556 if (uriReference->hasFragment()) { in makeAbsolute()
558 abs.append(uriReference->getFragment()); in makeAbsolute()
566 css::uno::Reference< css::uri::XUriReference > const & uriReference, in makeRelative()
573 || !baseUriReference->isHierarchical() || !uriReference.is()) { in makeRelative()
575 } else if (!uriReference->isAbsolute() || !uriReference->isHierarchical() in makeRelative()
577 uriReference->getScheme())) { in makeRelative()
578 return clone(uriReference); in makeRelative()
582 if ((baseUriReference->hasAuthority() != uriReference->hasAuthority()) in makeRelative()
585 uriReference->getAuthority())) in makeRelative()
587 if (uriReference->hasAuthority()) { in makeRelative()
589 rel.append(uriReference->getAuthority()); in makeRelative()
591 rel.append(uriReference->getPath()); in makeRelative()
593 baseUriReference->getPath(), uriReference->getPath()) in makeRelative()
595 && uriReference->getPath().getLength() <= 1)) in makeRelative()
596 && baseUriReference->hasQuery() == uriReference->hasQuery() in makeRelative()
598 baseUriReference->getQuery(), uriReference->getQuery())) in makeRelative()
605 uriReference->getPathSegmentCount(), 1); in makeRelative()
610 uriReference->getPathSegment(i))) in makeRelative()
617 || !uriReference->getPath().matchAsciiL( in makeRelative()
621 || uriReference->getPath().getLength() > 1) in makeRelative()
623 if (uriReference->getPath().getLength() == 0) { in makeRelative()
626 OSL_ASSERT(uriReference->getPath()[0] == '/'); in makeRelative()
627 if (uriReference->getPath().matchAsciiL( in makeRelative()
629 OSL_ASSERT(uriReference->hasAuthority()); in makeRelative()
631 rel.append(uriReference->getAuthority()); in makeRelative()
633 rel.append(uriReference->getPath()); in makeRelative()
646 || (uriReference->getPathSegment(count2 - 1).getLength() in makeRelative()
650 && (uriReference->getPathSegment(i).getLength() == 0 in makeRelative()
651 || (parseScheme(uriReference->getPathSegment(i)) in makeRelative()
661 rtl::OUString s(uriReference->getPathSegment(i)); in makeRelative()
680 if (!omitQuery && uriReference->hasQuery()) { in makeRelative()
682 rel.append(uriReference->getQuery()); in makeRelative()
684 if (uriReference->hasFragment()) { in makeRelative()
686 rel.append(uriReference->getFragment()); in makeRelative()