Lines Matching refs:rCandidate

300 …void skip_char(const rtl::OUString& rCandidate, const sal_Unicode& rChar, sal_Int32& nPos, const s…  in skip_char()  argument
302 while(nPos < nLen && rChar == rCandidate[nPos]) in skip_char()
308 …void skip_char(const rtl::OUString& rCandidate, const sal_Unicode& rCharA, const sal_Unicode& rCha… in skip_char() argument
310 while(nPos < nLen && (rCharA == rCandidate[nPos] || rCharB == rCandidate[nPos])) in skip_char()
316 …void copySign(const rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, cons… in copySign() argument
320 const sal_Unicode aChar(rCandidate[nPos]); in copySign()
330 …void copyNumber(const rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, co… in copyNumber() argument
336 const sal_Unicode aChar(rCandidate[nPos]); in copyNumber()
348 …void copyHex(const rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, const… in copyHex() argument
354 const sal_Unicode aChar(rCandidate[nPos]); in copyHex()
368 …void copyString(const rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, co… in copyString() argument
374 const sal_Unicode aChar(rCandidate[nPos]); in copyString()
388 …void copyToLimiter(const rtl::OUString& rCandidate, const sal_Unicode& rLimiter, sal_Int32& nPos, … in copyToLimiter() argument
390 while(nPos < nLen && rLimiter != rCandidate[nPos]) in copyToLimiter()
392 rTarget.append(rCandidate[nPos]); in copyToLimiter()
397 …bool readNumber(const rtl::OUString& rCandidate, sal_Int32& nPos, double& fNum, const sal_Int32 nL… in readNumber() argument
403 copySign(rCandidate, nPos, aNum, nLen); in readNumber()
404 copyNumber(rCandidate, nPos, aNum, nLen); in readNumber()
408 const sal_Unicode aChar(rCandidate[nPos]); in readNumber()
421 copySign(rCandidate, nPos, aNum, nLen); in readNumber()
422 copyNumber(rCandidate, nPos, aNum, nLen); in readNumber()
449 SvgUnit readUnit(const rtl::OUString& rCandidate, sal_Int32& nPos, const sal_Int32 nLen) in readUnit() argument
455 const sal_Unicode aCharA(rCandidate[nPos]); in readUnit()
459 const sal_Unicode aCharB(rCandidate[nPos + 1]); in readUnit()
552 …bool readNumberAndUnit(const rtl::OUString& rCandidate, sal_Int32& nPos, SvgNumber& aNum, const sa… in readNumberAndUnit() argument
556 if(readNumber(rCandidate, nPos, fNum, nLen)) in readNumberAndUnit()
558 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in readNumberAndUnit()
559 aNum = SvgNumber(fNum, readUnit(rCandidate, nPos, nLen)); in readNumberAndUnit()
567 …bool readAngle(const rtl::OUString& rCandidate, sal_Int32& nPos, double& fAngle, const sal_Int32 n… in readAngle() argument
569 if(readNumber(rCandidate, nPos, fAngle, nLen)) in readAngle()
571 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in readAngle()
582 const sal_Unicode aChar(rCandidate[nPos]); in readAngle()
591 if(rCandidate.matchIgnoreAsciiCase(aStrGrad, nPos)) in readAngle()
601 if(rCandidate.matchIgnoreAsciiCase(aStrRad, nPos)) in readAngle()
829 const rtl::OUString& rCandidate, in read_color() argument
833 const sal_Int32 nLen(rCandidate.getLength()); in read_color()
837 const sal_Unicode aChar(rCandidate[0]); in read_color()
846 copyHex(rCandidate, nPos, aNum, nLen); in read_color()
881 if(rCandidate.matchIgnoreAsciiCase(aStrRgb, 0)) in read_color()
885 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in read_color()
888 if(readNumber(rCandidate, nPos, fR, nLen)) in read_color()
890 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in read_color()
894 const sal_Unicode aPercentChar(rCandidate[nPos]); in read_color()
900 skip_char(rCandidate, sal_Unicode('%'), nPos, nLen); in read_color()
903 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in read_color()
905 if(readNumber(rCandidate, nPos, fG, nLen)) in read_color()
911 skip_char(rCandidate, sal_Unicode('%'), nPos, nLen); in read_color()
914 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in read_color()
916 if(readNumber(rCandidate, nPos, fB, nLen)) in read_color()
926 skip_char(rCandidate, sal_Unicode('%'), nPos, nLen); in read_color()
929 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in read_color()
939 if(match_colorKeyword(rColor, rCandidate, bCaseIndependent)) in read_color()
950 basegfx::B2DRange readViewBox(const rtl::OUString& rCandidate, InfoProvider& rInfoProvider) in readViewBox() argument
952 const sal_Int32 nLen(rCandidate.getLength()); in readViewBox()
958 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readViewBox()
960 if(readNumberAndUnit(rCandidate, nPos, aMinX, nLen)) in readViewBox()
963 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readViewBox()
965 if(readNumberAndUnit(rCandidate, nPos, aMinY, nLen)) in readViewBox()
968 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readViewBox()
970 if(readNumberAndUnit(rCandidate, nPos, aWidth, nLen)) in readViewBox()
973 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readViewBox()
975 if(readNumberAndUnit(rCandidate, nPos, aHeight, nLen)) in readViewBox()
991 … basegfx::B2DHomMatrix readTransform(const rtl::OUString& rCandidate, InfoProvider& rInfoProvider) in readTransform() argument
994 const sal_Int32 nLen(rCandidate.getLength()); in readTransform()
999 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1003 const sal_Unicode aChar(rCandidate[nPos]); in readTransform()
1016 if(rCandidate.match(aStrMatrix, nPos)) in readTransform()
1020 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1024 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1027 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1029 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1032 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1034 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1037 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1039 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1042 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1044 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1047 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1049 … if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1052 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1053 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1070 if(rCandidate.match(aStrTranslate, nPos)) in readTransform()
1074 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1077 if(readNumberAndUnit(rCandidate, nPos, aTransX, nLen)) in readTransform()
1079 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1081 readNumberAndUnit(rCandidate, nPos, aTransY, nLen); in readTransform()
1082 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1083 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1094 if(rCandidate.match(aStrScale, nPos)) in readTransform()
1098 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1101 if(readNumberAndUnit(rCandidate, nPos, aScaleX, nLen)) in readTransform()
1103 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1105 readNumberAndUnit(rCandidate, nPos, aScaleY, nLen); in readTransform()
1106 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1107 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1114 else if(rCandidate.match(aStrSkewX, nPos)) in readTransform()
1118 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1121 if(readAngle(rCandidate, nPos, fSkewX, nLen)) in readTransform()
1123 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1124 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1129 else if(rCandidate.match(aStrSkewY, nPos)) in readTransform()
1133 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1136 if(readAngle(rCandidate, nPos, fSkewY, nLen)) in readTransform()
1138 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1139 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1148 if(rCandidate.match(aStrRotate, nPos)) in readTransform()
1152 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1155 if(readAngle(rCandidate, nPos, fAngle, nLen)) in readTransform()
1157 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1159 readNumberAndUnit(rCandidate, nPos, aX, nLen); in readTransform()
1160 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1162 readNumberAndUnit(rCandidate, nPos, aY, nLen); in readTransform()
1163 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1164 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1196 bool readSingleNumber(const rtl::OUString& rCandidate, SvgNumber& aNum) in readSingleNumber() argument
1198 const sal_Int32 nLen(rCandidate.getLength()); in readSingleNumber()
1201 return readNumberAndUnit(rCandidate, nPos, aNum, nLen); in readSingleNumber()
1204 bool readLocalUrl(const rtl::OUString& rCandidate, rtl::OUString& rURL) in readLocalUrl() argument
1208 if(rCandidate.match(aStrUrl, 0)) in readLocalUrl()
1210 const sal_Int32 nLen(rCandidate.getLength()); in readLocalUrl()
1213 skip_char(rCandidate, sal_Unicode('('), sal_Unicode('#'), nPos, nLen); in readLocalUrl()
1215 copyToLimiter(rCandidate, sal_Unicode(')'), nPos, aTokenValue, nLen); in readLocalUrl()
1225 const rtl::OUString& rCandidate, in readSvgPaint() argument
1230 const sal_Int32 nLen(rCandidate.getLength()); in readSvgPaint()
1236 if(read_color(rCandidate, aColor, bCaseIndependent)) in readSvgPaint()
1246 if(rCandidate.match(aStrNone, 0)) in readSvgPaint()
1251 else if(readLocalUrl(rCandidate, rURL)) in readSvgPaint()
1256 else if(rCandidate.match(aStrCurrentColor, 0)) in readSvgPaint()
1267 bool readSvgNumberVector(const rtl::OUString& rCandidate, SvgNumberVector& rSvgNumberVector) in readSvgNumberVector() argument
1269 const sal_Int32 nLen(rCandidate.getLength()); in readSvgNumberVector()
1276 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readSvgNumberVector()
1278 while(readNumberAndUnit(rCandidate, nPos, aNum, nLen)) in readSvgNumberVector()
1281 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readSvgNumberVector()
1290 SvgAspectRatio readSvgAspectRatio(const rtl::OUString& rCandidate) in readSvgAspectRatio() argument
1292 const sal_Int32 nLen(rCandidate.getLength()); in readSvgAspectRatio()
1305 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in readSvgAspectRatio()
1307 copyString(rCandidate, nPos, aTokenName, nLen); in readSvgAspectRatio()
1414 bool readSvgStringVector(const rtl::OUString& rCandidate, SvgStringVector& rSvgStringVector) in readSvgStringVector() argument
1417 const sal_Int32 nLen(rCandidate.getLength()); in readSvgStringVector()
1423 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readSvgStringVector()
1427 copyToLimiter(rCandidate, sal_Unicode(','), nPos, aTokenValue, nLen); in readSvgStringVector()
1428 skip_char(rCandidate, sal_Unicode(','), sal_Unicode(' '), nPos, nLen); in readSvgStringVector()
1441 …void readImageLink(const rtl::OUString& rCandidate, rtl::OUString& rXLink, rtl::OUString& rUrl, rt… in readImageLink() argument
1445 if(sal_Unicode('#') == rCandidate[0]) in readImageLink()
1448 rXLink = rCandidate.copy(1); in readImageLink()
1454 if(rCandidate.match(aStrData, 0)) in readImageLink()
1458 sal_Int32 nLen(rCandidate.getLength()); in readImageLink()
1462 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in readImageLink()
1463 copyToLimiter(rCandidate, sal_Unicode(';'), nPos, aBuffer, nLen); in readImageLink()
1464 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(';'), nPos, nLen); in readImageLink()
1474 rtl::OUString aData(rCandidate.copy(nPos)); in readImageLink()
1496 rUrl = rCandidate; in readImageLink()
1501 …rtl::OUString convert(const rtl::OUString& rCandidate, const sal_Unicode& rPattern, const sal_Unic… in convert() argument
1503 const sal_Int32 nLen(rCandidate.getLength()); in convert()
1513 const sal_Unicode aChar(rCandidate[nPos]); in convert()
1538 return rCandidate; in convert()
1542 rtl::OUString removeBlockComments(const rtl::OUString& rCandidate) in removeBlockComments() argument
1544 const sal_Int32 nLen(rCandidate.getLength()); in removeBlockComments()
1557 const sal_Unicode aChar(rCandidate[nPos]); in removeBlockComments()
1558 …nst bool bStart(aCommentSlash == aChar && nPos + 1 < nLen && aCommentStar == rCandidate[nPos + 1]); in removeBlockComments()
1559 …const bool bEnd(aCommentStar == aChar && nPos + 1 < nLen && aCommentSlash == rCandidate[nPos + 1]); in removeBlockComments()
1589 return rCandidate; in removeBlockComments()
1592 rtl::OUString consolidateContiguosSpace(const rtl::OUString& rCandidate) in consolidateContiguosSpace() argument
1594 const sal_Int32 nLen(rCandidate.getLength()); in consolidateContiguosSpace()
1605 const sal_Unicode aChar(rCandidate[nPos]); in consolidateContiguosSpace()
1636 return rCandidate; in consolidateContiguosSpace()
1639 rtl::OUString whiteSpaceHandlingDefault(const rtl::OUString& rCandidate) in whiteSpaceHandlingDefault() argument
1646 rtl::OUString aRetval(convert(rCandidate, aNewline, aNewline, true)); in whiteSpaceHandlingDefault()
1660 rtl::OUString whiteSpaceHandlingPreserve(const rtl::OUString& rCandidate) in whiteSpaceHandlingPreserve() argument
1667 rtl::OUString aRetval(convert(rCandidate, aNewline, aSpace, false)); in whiteSpaceHandlingPreserve()
1670 aRetval = convert(rCandidate, aTab, aSpace, false); in whiteSpaceHandlingPreserve()
1672 return rCandidate; in whiteSpaceHandlingPreserve()