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()
819 bool read_color(const rtl::OUString& rCandidate, basegfx::BColor& rColor) in read_color() argument
821 const sal_Int32 nLen(rCandidate.getLength()); in read_color()
825 const sal_Unicode aChar(rCandidate[0]); in read_color()
834 copyHex(rCandidate, nPos, aNum, nLen); in read_color()
869 if(rCandidate.matchIgnoreAsciiCase(aStrRgb, 0)) in read_color()
873 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in read_color()
876 if(readNumber(rCandidate, nPos, fR, nLen)) in read_color()
878 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in read_color()
882 const sal_Unicode aPercentChar(rCandidate[nPos]); in read_color()
888 skip_char(rCandidate, sal_Unicode('%'), nPos, nLen); in read_color()
891 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in read_color()
893 if(readNumber(rCandidate, nPos, fG, nLen)) in read_color()
899 skip_char(rCandidate, sal_Unicode('%'), nPos, nLen); in read_color()
902 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in read_color()
904 if(readNumber(rCandidate, nPos, fB, nLen)) in read_color()
914 skip_char(rCandidate, sal_Unicode('%'), nPos, nLen); in read_color()
917 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in read_color()
927 if(match_colorKeyword(rColor, rCandidate)) in read_color()
938 basegfx::B2DRange readViewBox(const rtl::OUString& rCandidate, InfoProvider& rInfoProvider) in readViewBox() argument
940 const sal_Int32 nLen(rCandidate.getLength()); in readViewBox()
946 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readViewBox()
948 if(readNumberAndUnit(rCandidate, nPos, aMinX, nLen)) in readViewBox()
951 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readViewBox()
953 if(readNumberAndUnit(rCandidate, nPos, aMinY, nLen)) in readViewBox()
956 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readViewBox()
958 if(readNumberAndUnit(rCandidate, nPos, aWidth, nLen)) in readViewBox()
961 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readViewBox()
963 if(readNumberAndUnit(rCandidate, nPos, aHeight, nLen)) in readViewBox()
979 … basegfx::B2DHomMatrix readTransform(const rtl::OUString& rCandidate, InfoProvider& rInfoProvider) in readTransform() argument
982 const sal_Int32 nLen(rCandidate.getLength()); in readTransform()
987 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
991 const sal_Unicode aChar(rCandidate[nPos]); in readTransform()
1004 if(rCandidate.match(aStrMatrix, nPos)) in readTransform()
1008 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1012 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1015 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1017 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1020 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1022 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1025 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1027 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1030 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1032 if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1035 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1037 … if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) in readTransform()
1040 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1041 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1058 if(rCandidate.match(aStrTranslate, nPos)) in readTransform()
1062 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1065 if(readNumberAndUnit(rCandidate, nPos, aTransX, nLen)) in readTransform()
1067 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1069 readNumberAndUnit(rCandidate, nPos, aTransY, nLen); in readTransform()
1070 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1071 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1082 if(rCandidate.match(aStrScale, nPos)) in readTransform()
1086 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1089 if(readNumberAndUnit(rCandidate, nPos, aScaleX, nLen)) in readTransform()
1091 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1093 readNumberAndUnit(rCandidate, nPos, aScaleY, nLen); in readTransform()
1094 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1095 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1102 else if(rCandidate.match(aStrSkewX, nPos)) in readTransform()
1106 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1109 if(readAngle(rCandidate, nPos, fSkewX, nLen)) in readTransform()
1111 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1112 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1117 else if(rCandidate.match(aStrSkewY, nPos)) in readTransform()
1121 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1124 if(readAngle(rCandidate, nPos, fSkewY, nLen)) in readTransform()
1126 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1127 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1136 if(rCandidate.match(aStrRotate, nPos)) in readTransform()
1140 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); in readTransform()
1143 if(readAngle(rCandidate, nPos, fAngle, nLen)) in readTransform()
1145 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1147 readNumberAndUnit(rCandidate, nPos, aX, nLen); in readTransform()
1148 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1150 readNumberAndUnit(rCandidate, nPos, aY, nLen); in readTransform()
1151 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); in readTransform()
1152 … skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1184 bool readSingleNumber(const rtl::OUString& rCandidate, SvgNumber& aNum) in readSingleNumber() argument
1186 const sal_Int32 nLen(rCandidate.getLength()); in readSingleNumber()
1189 return readNumberAndUnit(rCandidate, nPos, aNum, nLen); in readSingleNumber()
1192 bool readLocalUrl(const rtl::OUString& rCandidate, rtl::OUString& rURL) in readLocalUrl() argument
1196 if(rCandidate.match(aStrUrl, 0)) in readLocalUrl()
1198 const sal_Int32 nLen(rCandidate.getLength()); in readLocalUrl()
1201 skip_char(rCandidate, sal_Unicode('('), sal_Unicode('#'), nPos, nLen); in readLocalUrl()
1203 copyToLimiter(rCandidate, sal_Unicode(')'), nPos, aTokenValue, nLen); in readLocalUrl()
1212 bool readSvgPaint(const rtl::OUString& rCandidate, SvgPaint& rSvgPaint, rtl::OUString& rURL) in readSvgPaint() argument
1214 const sal_Int32 nLen(rCandidate.getLength()); in readSvgPaint()
1220 if(read_color(rCandidate, aColor)) in readSvgPaint()
1230 if(rCandidate.match(aStrNone, 0)) in readSvgPaint()
1235 else if(readLocalUrl(rCandidate, rURL)) in readSvgPaint()
1240 else if(rCandidate.match(aStrCurrentColor, 0)) in readSvgPaint()
1251 bool readSvgNumberVector(const rtl::OUString& rCandidate, SvgNumberVector& rSvgNumberVector) in readSvgNumberVector() argument
1253 const sal_Int32 nLen(rCandidate.getLength()); in readSvgNumberVector()
1260 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readSvgNumberVector()
1262 while(readNumberAndUnit(rCandidate, nPos, aNum, nLen)) in readSvgNumberVector()
1265 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readSvgNumberVector()
1274 SvgAspectRatio readSvgAspectRatio(const rtl::OUString& rCandidate) in readSvgAspectRatio() argument
1276 const sal_Int32 nLen(rCandidate.getLength()); in readSvgAspectRatio()
1289 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in readSvgAspectRatio()
1291 copyString(rCandidate, nPos, aTokenName, nLen); in readSvgAspectRatio()
1398 bool readSvgStringVector(const rtl::OUString& rCandidate, SvgStringVector& rSvgStringVector) in readSvgStringVector() argument
1401 const sal_Int32 nLen(rCandidate.getLength()); in readSvgStringVector()
1407 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readSvgStringVector()
1411 copyToLimiter(rCandidate, sal_Unicode(','), nPos, aTokenValue, nLen); in readSvgStringVector()
1412 skip_char(rCandidate, sal_Unicode(','), sal_Unicode(' '), nPos, nLen); in readSvgStringVector()
1425 …void readImageLink(const rtl::OUString& rCandidate, rtl::OUString& rXLink, rtl::OUString& rUrl, rt… in readImageLink() argument
1429 if(sal_Unicode('#') == rCandidate[0]) in readImageLink()
1432 rXLink = rCandidate.copy(1); in readImageLink()
1438 if(rCandidate.match(aStrData, 0)) in readImageLink()
1442 sal_Int32 nLen(rCandidate.getLength()); in readImageLink()
1446 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in readImageLink()
1447 copyToLimiter(rCandidate, sal_Unicode(';'), nPos, aBuffer, nLen); in readImageLink()
1448 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(';'), nPos, nLen); in readImageLink()
1458 rtl::OUString aData(rCandidate.copy(nPos)); in readImageLink()
1480 rUrl = rCandidate; in readImageLink()
1485 …rtl::OUString convert(const rtl::OUString& rCandidate, const sal_Unicode& rPattern, const sal_Unic… in convert() argument
1487 const sal_Int32 nLen(rCandidate.getLength()); in convert()
1497 const sal_Unicode aChar(rCandidate[nPos]); in convert()
1522 return rCandidate; in convert()
1525 rtl::OUString consolidateContiguosSpace(const rtl::OUString& rCandidate) in consolidateContiguosSpace() argument
1527 const sal_Int32 nLen(rCandidate.getLength()); in consolidateContiguosSpace()
1538 const sal_Unicode aChar(rCandidate[nPos]); in consolidateContiguosSpace()
1569 return rCandidate; in consolidateContiguosSpace()
1572 rtl::OUString whiteSpaceHandlingDefault(const rtl::OUString& rCandidate) in whiteSpaceHandlingDefault() argument
1579 rtl::OUString aRetval(convert(rCandidate, aNewline, aNewline, true)); in whiteSpaceHandlingDefault()
1593 rtl::OUString whiteSpaceHandlingPreserve(const rtl::OUString& rCandidate) in whiteSpaceHandlingPreserve() argument
1600 rtl::OUString aRetval(convert(rCandidate, aNewline, aSpace, false)); in whiteSpaceHandlingPreserve()
1603 aRetval = convert(rCandidate, aTab, aSpace, false); in whiteSpaceHandlingPreserve()
1605 return rCandidate; in whiteSpaceHandlingPreserve()