Lines Matching refs:nPos
65 sal_Int32 nPos = 0; in convertMeasure() local
69 while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) ) in convertMeasure()
70 nPos++; in convertMeasure()
72 if( nPos < nLen && sal_Unicode('-') == rString[nPos] ) in convertMeasure()
75 nPos++; in convertMeasure()
79 while( nPos < nLen && in convertMeasure()
80 sal_Unicode('0') <= rString[nPos] && in convertMeasure()
81 sal_Unicode('9') >= rString[nPos] ) in convertMeasure()
85 nVal += (rString[nPos] - sal_Unicode('0')); in convertMeasure()
86 nPos++; in convertMeasure()
89 if( nPos < nLen && sal_Unicode('.') == rString[nPos] ) in convertMeasure()
91 nPos++; in convertMeasure()
93 while( nPos < nLen && in convertMeasure()
94 sal_Unicode('0') <= rString[nPos] && in convertMeasure()
95 sal_Unicode('9') >= rString[nPos] ) in convertMeasure()
99 nVal += ( ((double)(rString[nPos] - sal_Unicode('0'))) / nDiv ); in convertMeasure()
100 nPos++; in convertMeasure()
105 while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) ) in convertMeasure()
106 nPos++; in convertMeasure()
108 if( nPos < nLen ) in convertMeasure()
113 if( sal_Unicode('%') != rString[nPos] ) in convertMeasure()
118 if( nPos + 1 >= nLen || in convertMeasure()
119 (sal_Unicode('p') != rString[nPos] && in convertMeasure()
120 sal_Unicode('P') != rString[nPos])|| in convertMeasure()
121 (sal_Unicode('x') != rString[nPos+1] && in convertMeasure()
122 sal_Unicode('X') != rString[nPos+1]) ) in convertMeasure()
135 switch( rString[nPos] ) in convertMeasure()
170 switch( rString[nPos] ) in convertMeasure()
204 if( rString[nPos] == 'p' || rString[nPos] == 'P' ) in convertMeasure()
222 while( nPos < nLen && *pL ) in convertMeasure()
224 sal_Unicode c = rString[nPos]; in convertMeasure()
229 nPos++; in convertMeasure()
231 if( !*pL && (nPos == nLen || ' ' == rString[nPos]) ) in convertMeasure()
578 sal_Int32 nPos = 0; in convertNumber() local
582 while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) ) in convertNumber()
583 nPos++; in convertNumber()
585 if( nPos < nLen && sal_Unicode('-') == rString[nPos] ) in convertNumber()
588 nPos++; in convertNumber()
592 while( nPos < nLen && in convertNumber()
593 sal_Unicode('0') <= rString[nPos] && in convertNumber()
594 sal_Unicode('9') >= rString[nPos] ) in convertNumber()
598 rValue += (rString[nPos] - sal_Unicode('0')); in convertNumber()
599 nPos++; in convertNumber()
610 return nPos == nLen; in convertNumber()
975 sal_Int32 nPos(io_rnPos); in readUnsignedNumber() local
977 while (nPos < rString.getLength()) in readUnsignedNumber()
979 const sal_Unicode c = rString[nPos]; in readUnsignedNumber()
993 ++nPos; in readUnsignedNumber()
996 if (io_rnPos == nPos) // read something? in readUnsignedNumber()
1002 io_rnPos = nPos; in readUnsignedNumber()
1054 sal_Int32 nPos(0); in convertDuration() local
1060 ++nPos; in convertDuration()
1063 if ((nPos < string.getLength()) in convertDuration()
1064 && (string[nPos] != sal_Unicode('P'))) // duration must start with "P" in convertDuration()
1069 ++nPos; in convertDuration()
1083 bTimePart = readDurationT(string, nPos); in convertDuration()
1084 bSuccess = (R_SUCCESS == readUnsignedNumber(string, nPos, nTemp)); in convertDuration()
1088 bSuccess = readDurationComponent(string, nPos, nTemp, bTimePart, in convertDuration()
1094 bSuccess = readDurationComponent(string, nPos, nTemp, bTimePart, in convertDuration()
1100 bSuccess = readDurationComponent(string, nPos, nTemp, bTimePart, in convertDuration()
1113 bSuccess = readDurationComponent(string, nPos, nTemp, bTimePart, in convertDuration()
1119 bSuccess = readDurationComponent(string, nPos, nTemp, bTimePart, in convertDuration()
1124 if ((nPos < string.getLength()) && bSuccess) in convertDuration()
1126 if (sal_Unicode('.') == string[nPos]) in convertDuration()
1128 ++nPos; in convertDuration()
1133 const sal_Int32 nStart(nPos); in convertDuration()
1135 (R_NOTHING != readUnsignedNumber(string, nPos, nTemp)); in convertDuration()
1136 if ((nPos < string.getLength()) && bSuccess) in convertDuration()
1141 const sal_Int32 nDigits = nPos - nStart; in convertDuration()
1155 if (sal_Unicode('S') == string[nPos]) in convertDuration()
1157 ++nPos; in convertDuration()
1175 else if (sal_Unicode('S') == string[nPos]) in convertDuration()
1177 ++nPos; in convertDuration()
1191 if (nPos != string.getLength()) // string not processed completely? in convertDuration()
1363 sal_Int32 nPos(0); in convertDateOrDateTime() local
1365 if ((string.getLength() > nPos) && (sal_Unicode('-') == string[nPos])) in convertDateOrDateTime()
1367 ++nPos; in convertDateOrDateTime()
1373 bSuccess = readDateTimeComponent(string, nPos, nYear, 4, false); in convertDateOrDateTime()
1375 bSuccess &= (nPos < string.getLength()); // not last token in convertDateOrDateTime()
1377 if (bSuccess && (sal_Unicode('-') != string[nPos])) // separator in convertDateOrDateTime()
1383 ++nPos; in convertDateOrDateTime()
1389 bSuccess = readDateTimeComponent(string, nPos, nMonth, 2, true); in convertDateOrDateTime()
1391 bSuccess &= (nPos < string.getLength()); // not last token in convertDateOrDateTime()
1393 if (bSuccess && (sal_Unicode('-') != string[nPos])) // separator in convertDateOrDateTime()
1399 ++nPos; in convertDateOrDateTime()
1405 bSuccess = readDateTimeComponent(string, nPos, nDay, 2, true); in convertDateOrDateTime()
1410 if (bSuccess && (nPos < string.getLength())) in convertDateOrDateTime()
1412 if (sal_Unicode('T') == string[nPos]) // time separator in convertDateOrDateTime()
1415 ++nPos; in convertDateOrDateTime()
1426 bSuccess = readDateTimeComponent(string, nPos, nHours, 2, true); in convertDateOrDateTime()
1428 bSuccess &= (nPos < string.getLength()); // not last token in convertDateOrDateTime()
1430 if (bSuccess && (sal_Unicode(':') != string[nPos])) // separator in convertDateOrDateTime()
1436 ++nPos; in convertDateOrDateTime()
1441 bSuccess = readDateTimeComponent(string, nPos, nMinutes, 2, true); in convertDateOrDateTime()
1443 bSuccess &= (nPos < string.getLength()); // not last token in convertDateOrDateTime()
1445 if (bSuccess && (sal_Unicode(':') != string[nPos])) // separator in convertDateOrDateTime()
1451 ++nPos; in convertDateOrDateTime()
1456 bSuccess = readDateTimeComponent(string, nPos, nSeconds, 2, true); in convertDateOrDateTime()
1459 if (bSuccess && (nPos < string.getLength()) && in convertDateOrDateTime()
1460 (sal_Unicode('.') == string[nPos])) // fraction separator in convertDateOrDateTime()
1462 ++nPos; in convertDateOrDateTime()
1463 const sal_Int32 nStart(nPos); in convertDateOrDateTime()
1465 if (R_NOTHING == readUnsignedNumber(string, nPos, nTemp)) in convertDateOrDateTime()
1473 const sal_Int32 nDigits(nPos - nStart); in convertDateOrDateTime()
1507 if (bSuccess && (nPos < string.getLength())) in convertDateOrDateTime()
1509 const sal_Unicode c(string[nPos]); in convertDateOrDateTime()
1514 ++nPos; in convertDateOrDateTime()
1520 ++nPos; in convertDateOrDateTime()
1525 ++nPos; in convertDateOrDateTime()
1537 string, nPos, nTimezoneHours, 2, true); in convertDateOrDateTime()
1539 bSuccess &= (nPos < string.getLength()); // not last token in convertDateOrDateTime()
1540 if (bSuccess && (sal_Unicode(':') != string[nPos])) // separator in convertDateOrDateTime()
1546 ++nPos; in convertDateOrDateTime()
1551 string, nPos, nTimezoneMinutes, 2, true); in convertDateOrDateTime()
1563 bSuccess &= (nPos == string.getLength()); // trailing junk? in convertDateOrDateTime()
1606 sal_Int32 nPos ) in indexOfComma() argument
1610 for( ; nPos < nLen; nPos++ ) in indexOfComma()
1612 sal_Unicode c = rStr[nPos]; in indexOfComma()
1631 return nPos; in indexOfComma()
2011 sal_Int32 nPos = 0L; in GetUnitFromString() local
2016 while( nPos < nLen && sal_Unicode(' ') == rString[nPos] ) in GetUnitFromString()
2017 nPos++; in GetUnitFromString()
2020 if( nPos < nLen && sal_Unicode('-') == rString[nPos] ) in GetUnitFromString()
2021 nPos++; in GetUnitFromString()
2024 while( nPos < nLen && sal_Unicode('0') <= rString[nPos] && sal_Unicode('9') >= rString[nPos] ) in GetUnitFromString()
2025 nPos++; in GetUnitFromString()
2027 if( nPos < nLen && sal_Unicode('.') == rString[nPos] ) in GetUnitFromString()
2029 nPos++; in GetUnitFromString()
2030 while( nPos < nLen && sal_Unicode('0') <= rString[nPos] && sal_Unicode('9') >= rString[nPos] ) in GetUnitFromString()
2031 nPos++; in GetUnitFromString()
2035 while( nPos < nLen && sal_Unicode(' ') == rString[nPos] ) in GetUnitFromString()
2036 nPos++; in GetUnitFromString()
2038 if( nPos < nLen ) in GetUnitFromString()
2040 switch(rString[nPos]) in GetUnitFromString()
2050 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('m') in GetUnitFromString()
2051 || rString[nPos+1] == sal_Unicode('M'))) in GetUnitFromString()
2064 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('n') in GetUnitFromString()
2065 || rString[nPos+1] == sal_Unicode('n'))) in GetUnitFromString()
2072 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('m') in GetUnitFromString()
2073 || rString[nPos+1] == sal_Unicode('M'))) in GetUnitFromString()
2080 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('t') in GetUnitFromString()
2081 || rString[nPos+1] == sal_Unicode('T'))) in GetUnitFromString()
2083 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('c') in GetUnitFromString()
2084 || rString[nPos+1] == sal_Unicode('C'))) in GetUnitFromString()