Lines Matching refs:nLen
300 …r(const rtl::OUString& rCandidate, const sal_Unicode& rChar, sal_Int32& nPos, const sal_Int32 nLen) in skip_char() argument
302 while(nPos < nLen && rChar == rCandidate[nPos]) in skip_char()
308 …idate, const sal_Unicode& rCharA, const sal_Unicode& rCharB, sal_Int32& nPos, const sal_Int32 nLen) in skip_char() argument
310 while(nPos < nLen && (rCharA == rCandidate[nPos] || rCharB == rCandidate[nPos])) in skip_char()
316 …nst rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, const sal_Int32 nLen) in copySign() argument
318 if(nPos < nLen) in copySign()
330 …nst rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, const sal_Int32 nLen) in copyNumber() argument
334 while(bOnNumber && nPos < nLen) in copyNumber()
348 …nst rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, const sal_Int32 nLen) in copyHex() argument
352 while(bOnHex && nPos < nLen) in copyHex()
368 …nst rtl::OUString& rCandidate, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, const sal_Int32 nLen) in copyString() argument
372 while(bOnChar && nPos < nLen) in copyString()
388 …, const sal_Unicode& rLimiter, sal_Int32& nPos, rtl::OUStringBuffer& rTarget, const sal_Int32 nLen) in copyToLimiter() argument
390 while(nPos < nLen && rLimiter != rCandidate[nPos]) in copyToLimiter()
397 …ol readNumber(const rtl::OUString& rCandidate, sal_Int32& nPos, double& fNum, const sal_Int32 nLen) 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()
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
453 if(nPos < nLen) in readUnit()
457 if(nPos + 1 < nLen) in readUnit()
552 …berAndUnit(const rtl::OUString& rCandidate, sal_Int32& nPos, SvgNumber& aNum, const sal_Int32 nLen) 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 …l readAngle(const rtl::OUString& rCandidate, sal_Int32& nPos, double& fAngle, const sal_Int32 nLen) 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()
833 const sal_Int32 nLen(rCandidate.getLength()); in read_color() local
835 if(nLen) in read_color()
846 copyHex(rCandidate, nPos, aNum, nLen); 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()
892 if(nPos < nLen) 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()
952 const sal_Int32 nLen(rCandidate.getLength()); in readViewBox() local
954 if(nLen) 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()
994 const sal_Int32 nLen(rCandidate.getLength()); in readTransform() local
996 if(nLen) in readTransform()
999 skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readTransform()
1001 while(nPos < nLen) 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()
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()
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()
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()
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()
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()
1198 const sal_Int32 nLen(rCandidate.getLength()); in readSingleNumber() local
1201 return readNumberAndUnit(rCandidate, nPos, aNum, nLen); in readSingleNumber()
1210 const sal_Int32 nLen(rCandidate.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()
1230 const sal_Int32 nLen(rCandidate.getLength()); in readSvgPaint() local
1232 if(nLen) in readSvgPaint()
1269 const sal_Int32 nLen(rCandidate.getLength()); in readSvgNumberVector() local
1272 if(nLen) 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()
1292 const sal_Int32 nLen(rCandidate.getLength()); in readSvgAspectRatio() local
1294 if(nLen) in readSvgAspectRatio()
1302 while(nPos < nLen) in readSvgAspectRatio()
1305 skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); in readSvgAspectRatio()
1307 copyString(rCandidate, nPos, aTokenName, nLen); in readSvgAspectRatio()
1417 const sal_Int32 nLen(rCandidate.getLength()); in readSvgStringVector() local
1419 if(nLen) in readSvgStringVector()
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()
1458 sal_Int32 nLen(rCandidate.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()
1481 nLen = aData.getLength(); in readImageLink()
1483 skip_char(aData, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); in readImageLink()
1485 if(nPos < nLen) in readImageLink()
1503 const sal_Int32 nLen(rCandidate.getLength()); in convert() local
1505 if(nLen) in convert()
1511 while(nPos < nLen) in convert()
1544 const sal_Int32 nLen(rCandidate.getLength()); in removeBlockComments() local
1546 if(nLen) in removeBlockComments()
1555 while(nPos < nLen) 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()
1594 const sal_Int32 nLen(rCandidate.getLength()); in consolidateContiguosSpace() local
1596 if(nLen) in consolidateContiguosSpace()
1603 while(nPos < nLen) in consolidateContiguosSpace()
1630 if(aBuffer.getLength() != nLen) in consolidateContiguosSpace()