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()
832 sal_Int32 nPos(1); in read_color() local
834 copyHex(rCandidate, nPos, aNum, nLen); in read_color()
872 sal_Int32 nPos(aStrRgb.getLength()); in read_color() local
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()
880 if(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()
944 sal_Int32 nPos(0); in readViewBox() local
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()
986 sal_Int32 nPos(0); in readTransform() local
987 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
989 while(nPos < nLen) in readTransform()
991 const sal_Unicode aChar(rCandidate[nPos]); in readTransform()
992 const sal_Int32 nInitPos(nPos); in readTransform()
1004 if(rCandidate.match(aStrMatrix, nPos)) in readTransform()
1007 nPos += aStrMatrix.getLength(); 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()
1061 nPos += aStrTranslate.getLength(); 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()
1085 nPos += aStrScale.getLength(); 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()
1105 nPos += aStrSkewX.getLength(); 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()
1120 nPos += aStrSkewY.getLength(); 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()
1139 nPos += aStrRotate.getLength(); 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()
1173 if(nInitPos == nPos) in readTransform()
1176 nPos++; in readTransform()
1187 sal_Int32 nPos(0); in readSingleNumber() local
1189 return readNumberAndUnit(rCandidate, nPos, aNum, nLen); in readSingleNumber()
1199 sal_Int32 nPos(aStrUrl.getLength()); in readLocalUrl() local
1201 skip_char(rCandidate, sal_Unicode('('), sal_Unicode('#'), nPos, nLen); in readLocalUrl()
1203 copyToLimiter(rCandidate, sal_Unicode(')'), nPos, aTokenValue, nLen); in readLocalUrl()
1258 sal_Int32 nPos(0); in readSvgNumberVector() local
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()
1280 sal_Int32 nPos(0); in readSvgAspectRatio() local
1286 while(nPos < nLen) in readSvgAspectRatio()
1288 const sal_Int32 nInitPos(nPos); in readSvgAspectRatio()
1289 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in readSvgAspectRatio()
1291 copyString(rCandidate, nPos, aTokenName, nLen); in readSvgAspectRatio()
1382 if(nInitPos == nPos) in readSvgAspectRatio()
1385 nPos++; in readSvgAspectRatio()
1405 sal_Int32 nPos(0); in readSvgStringVector() local
1407 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readSvgStringVector()
1409 while(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()
1441 sal_Int32 nPos(aStrData.getLength()); in readImageLink() local
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()
1451 if(rMimeType.getLength() && nPos < nLen) in readImageLink()
1458 rtl::OUString aData(rCandidate.copy(nPos)); in readImageLink()
1464 nPos = aStrBase64.getLength(); in readImageLink()
1467 skip_char(aData, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readImageLink()
1469 if(nPos < nLen) in readImageLink()
1471 rData = aData.copy(nPos); in readImageLink()
1491 sal_Int32 nPos(0); in convert() local
1495 while(nPos < nLen) in convert()
1497 const sal_Unicode aChar(rCandidate[nPos]); in convert()
1513 nPos++; in convert()
1531 sal_Int32 nPos(0); in consolidateContiguosSpace() local
1536 while(nPos < nLen) in consolidateContiguosSpace()
1538 const sal_Unicode aChar(rCandidate[nPos]); in consolidateContiguosSpace()
1555 nPos++; in consolidateContiguosSpace()