Lines Matching refs:nPos
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()
304 nPos++; in skip_char()
308 …ndidate, const sal_Unicode& rCharA, const sal_Unicode& rCharB, sal_Int32& nPos, const sal_Int32 nL… in skip_char() argument
310 while(nPos < nLen && (rCharA == rCandidate[nPos] || rCharB == rCandidate[nPos])) in skip_char()
312 nPos++; in skip_char()
316 …void copySign(const rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, cons… in copySign() argument
318 if(nPos < nLen) in copySign()
320 const sal_Unicode aChar(rCandidate[nPos]); in copySign()
325 nPos++; in copySign()
330 …void copyNumber(const rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, co… in copyNumber() argument
334 while(bOnNumber && nPos < nLen) in copyNumber()
336 const sal_Unicode aChar(rCandidate[nPos]); in copyNumber()
343 nPos++; in copyNumber()
348 …void copyHex(const rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, const… in copyHex() argument
352 while(bOnHex && nPos < nLen) in copyHex()
354 const sal_Unicode aChar(rCandidate[nPos]); in copyHex()
363 nPos++; in copyHex()
368 …void copyString(const rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, co… in copyString() argument
372 while(bOnChar && nPos < nLen) in copyString()
374 const sal_Unicode aChar(rCandidate[nPos]); in copyString()
383 nPos++; in copyString()
388 …(const rtl::OUString& rCandidate, const sal_Unicode& rLimiter, sal_Int32& nPos, rtl::OUStringBuffe… in copyToLimiter() argument
390 while(nPos < nLen && rLimiter != rCandidate[nPos]) in copyToLimiter()
392 rTarget.append(rCandidate[nPos]); in copyToLimiter()
393 nPos++; in copyToLimiter()
397 …bool readNumber(const rtl::OUString& rCandidate, sal_Int32& nPos, double& fNum, const sal_Int32 nL… in readNumber() argument
399 if(nPos < nLen) in readNumber()
403 copySign(rCandidate, nPos, aNum, nLen); in readNumber()
404 copyNumber(rCandidate, nPos, aNum, nLen); in readNumber()
406 if(nPos < nLen) in readNumber()
408 const sal_Unicode aChar(rCandidate[nPos]); in readNumber()
416 nPos++; in readNumber()
418 const sal_Int32 nPosAfterE(nPos); in readNumber()
421 copySign(rCandidate, nPos, aNum, nLen); in readNumber()
422 copyNumber(rCandidate, nPos, aNum, nLen); in readNumber()
424 if(nPosAfterE == nPos) in readNumber()
429 nPos--; in readNumber()
449 SvgUnit readUnit(const rtl::OUString& rCandidate, sal_Int32& nPos, const sal_Int32 nLen) in readUnit() argument
453 if(nPos < nLen) in readUnit()
455 const sal_Unicode aCharA(rCandidate[nPos]); in readUnit()
457 if(nPos + 1 < nLen) in readUnit()
459 const sal_Unicode aCharB(rCandidate[nPos + 1]); in readUnit()
535 nPos += 2; in readUnit()
543 nPos++; 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()
580 if(nPos < nLen) in readAngle()
582 const sal_Unicode aChar(rCandidate[nPos]); in readAngle()
591 if(rCandidate.matchIgnoreAsciiCase(aStrGrad, nPos)) in readAngle()
594 nPos += aStrGrad.getLength(); in readAngle()
601 if(rCandidate.matchIgnoreAsciiCase(aStrRad, nPos)) in readAngle()
604 nPos += aStrRad.getLength(); in readAngle()
844 sal_Int32 nPos(1); in read_color() local
846 copyHex(rCandidate, nPos, aNum, nLen); in read_color()
884 sal_Int32 nPos(aStrRgb.getLength()); in read_color() local
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()
892 if(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()
956 sal_Int32 nPos(0); in readViewBox() local
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()
998 sal_Int32 nPos(0); in readTransform() local
999 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1001 while(nPos < nLen) in readTransform()
1003 const sal_Unicode aChar(rCandidate[nPos]); in readTransform()
1004 const sal_Int32 nInitPos(nPos); in readTransform()
1016 if(rCandidate.match(aStrMatrix, nPos)) in readTransform()
1019 nPos += aStrMatrix.getLength(); 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()
1073 nPos += aStrTranslate.getLength(); 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()
1097 nPos += aStrScale.getLength(); 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()
1117 nPos += aStrSkewX.getLength(); 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()
1132 nPos += aStrSkewY.getLength(); 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()
1151 nPos += aStrRotate.getLength(); 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()
1185 if(nInitPos == nPos) in readTransform()
1188 nPos++; in readTransform()
1199 sal_Int32 nPos(0); in readSingleNumber() local
1201 return readNumberAndUnit(rCandidate, nPos, aNum, nLen); in readSingleNumber()
1211 sal_Int32 nPos(aStrUrl.getLength()); in readLocalUrl() local
1213 skip_char(rCandidate, sal_Unicode('('), sal_Unicode('#'), nPos, nLen); in readLocalUrl()
1215 copyToLimiter(rCandidate, sal_Unicode(')'), nPos, aTokenValue, nLen); in readLocalUrl()
1274 sal_Int32 nPos(0); in readSvgNumberVector() local
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()
1296 sal_Int32 nPos(0); in readSvgAspectRatio() local
1302 while(nPos < nLen) in readSvgAspectRatio()
1304 const sal_Int32 nInitPos(nPos); in readSvgAspectRatio()
1305 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in readSvgAspectRatio()
1307 copyString(rCandidate, nPos, aTokenName, nLen); in readSvgAspectRatio()
1398 if(nInitPos == nPos) in readSvgAspectRatio()
1401 nPos++; in readSvgAspectRatio()
1421 sal_Int32 nPos(0); in readSvgStringVector() local
1423 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readSvgStringVector()
1425 while(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()
1457 sal_Int32 nPos(aStrData.getLength()); in readImageLink() local
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()
1467 if(rMimeType.getLength() && nPos < nLen) in readImageLink()
1474 rtl::OUString aData(rCandidate.copy(nPos)); in readImageLink()
1480 nPos = aStrBase64.getLength(); in readImageLink()
1483 skip_char(aData, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readImageLink()
1485 if(nPos < nLen) in readImageLink()
1487 rData = aData.copy(nPos); in readImageLink()
1507 sal_Int32 nPos(0); in convert() local
1511 while(nPos < nLen) in convert()
1513 const sal_Unicode aChar(rCandidate[nPos]); in convert()
1529 nPos++; in convert()
1548 sal_Int32 nPos(0); in removeBlockComments() local
1555 while(nPos < nLen) in removeBlockComments()
1557 const sal_Unicode aChar(rCandidate[nPos]); in removeBlockComments()
1558 …const 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()
1563 nPos += 2; in removeBlockComments()
1569 nPos += 2; in removeBlockComments()
1579 nPos++; in removeBlockComments()
1598 sal_Int32 nPos(0); in consolidateContiguosSpace() local
1603 while(nPos < nLen) in consolidateContiguosSpace()
1605 const sal_Unicode aChar(rCandidate[nPos]); in consolidateContiguosSpace()
1622 nPos++; in consolidateContiguosSpace()