Lines Matching refs:nPos
422 inline xub_StrLen nextChar(UniString const & rStr, xub_StrLen nPos) in nextChar() argument
424 return INetMIME::isHighSurrogate(rStr.GetChar(nPos)) in nextChar()
425 && rStr.Len() - nPos >= 2 in nextChar()
426 && INetMIME::isLowSurrogate(rStr.GetChar(nPos + 1)) ? in nextChar()
427 nPos + 2 : nPos + 1; in nextChar()
431 xub_StrLen nPos, xub_StrLen nEnd) in isBoundary1() argument
433 if (nPos == nEnd) in isBoundary1()
435 if (rCharClass.isLetterNumeric(rStr, nPos)) in isBoundary1()
437 switch (rStr.GetChar(nPos)) in isBoundary1()
453 xub_StrLen nPos, xub_StrLen nEnd) in isBoundary2() argument
455 if (nPos == nEnd) in isBoundary2()
457 if (rCharClass.isLetterNumeric(rStr, nPos)) in isBoundary2()
459 switch (rStr.GetChar(nPos)) in isBoundary2()
643 for (xub_StrLen nPos = rBegin; nPos != rEnd; nPos = nextChar(rText, nPos)) in FindFirstURLInText() local
645 sal_Unicode c = rText.GetChar(nPos); in FindFirstURLInText()
650 xub_StrLen i = nPos; in FindFirstURLInText()
671 INetURLObject aUri(UniString(rText, nPos, in FindFirstURLInText()
672 nUriEnd - nPos), in FindFirstURLInText()
677 rBegin = nPos; in FindFirstURLInText()
701 INetURLObject aUri(UniString(rText, nPos, in FindFirstURLInText()
702 nUriEnd - nPos), in FindFirstURLInText()
707 rBegin = nPos; in FindFirstURLInText()
716 i = nPos; in FindFirstURLInText()
719 && rText.GetChar(nPos + 3) == '.' in FindFirstURLInText()
720 && (((rText.GetChar(nPos) == 'w' in FindFirstURLInText()
721 || rText.GetChar(nPos) == 'W') in FindFirstURLInText()
722 && (rText.GetChar(nPos + 1) == 'w' in FindFirstURLInText()
723 || rText.GetChar(nPos + 1) == 'W') in FindFirstURLInText()
724 && (rText.GetChar(nPos + 2) == 'w' in FindFirstURLInText()
725 || rText.GetChar(nPos + 2) == 'W')) in FindFirstURLInText()
726 || ((rText.GetChar(nPos) == 'f' in FindFirstURLInText()
727 || rText.GetChar(nPos) == 'F') in FindFirstURLInText()
728 && (rText.GetChar(nPos + 1) == 't' in FindFirstURLInText()
729 || rText.GetChar(nPos + 1) == 'T') in FindFirstURLInText()
730 && (rText.GetChar(nPos + 2) == 'p' in FindFirstURLInText()
731 || rText.GetChar(nPos + 2) == 'P')))) in FindFirstURLInText()
751 INetURLObject aUri(UniString(rText, nPos, in FindFirstURLInText()
752 nUriEnd - nPos), in FindFirstURLInText()
757 rBegin = nPos; in FindFirstURLInText()
765 if ((eStyle & INetURLObject::FSYS_DOS) != 0 && rEnd - nPos >= 3 in FindFirstURLInText()
766 && rText.GetChar(nPos + 1) == ':' in FindFirstURLInText()
767 && (rText.GetChar(nPos + 2) == '/' in FindFirstURLInText()
768 || rText.GetChar(nPos + 2) == '\\')) // 7th, 8th in FindFirstURLInText()
770 i = nPos + 3; in FindFirstURLInText()
776 INetURLObject aUri(UniString(rText, nPos, in FindFirstURLInText()
777 nUriEnd - nPos), in FindFirstURLInText()
784 rBegin = nPos; in FindFirstURLInText()
792 else if ((eStyle & INetURLObject::FSYS_DOS) != 0 && rEnd - nPos >= 2 in FindFirstURLInText()
793 && rText.GetChar(nPos) == '\\' in FindFirstURLInText()
794 && rText.GetChar(nPos + 1) == '\\') // 6th in FindFirstURLInText()
796 xub_StrLen i = nPos + 2; in FindFirstURLInText()
806 INetURLObject aUri(UniString(rText, nPos, in FindFirstURLInText()
807 nUriEnd - nPos), in FindFirstURLInText()
814 rBegin = nPos; in FindFirstURLInText()
826 for (xub_StrLen i = nPos + 1; i != rEnd; ++i) in FindFirstURLInText()
844 INetURLObject aUri(UniString(rText, nPos, i - nPos), in FindFirstURLInText()
849 rBegin = nPos; in FindFirstURLInText()
860 bBoundary1 = isBoundary1(rCharClass, rText, nPos, rEnd); in FindFirstURLInText()
861 bBoundary2 = isBoundary2(rCharClass, rText, nPos, rEnd); in FindFirstURLInText()