Lines Matching refs:nPos

173 	sal_uInt16 nPos = sStrg.Search( cDecPoint );  in LeftShiftDecimalPoint()  local
175 if( nPos!=STRING_NOTFOUND ) in LeftShiftDecimalPoint()
178 sStrg.SetChar( nPos, sStrg.GetChar( nPos - 1 ) ); in LeftShiftDecimalPoint()
179 sStrg.SetChar( nPos-1, cDecPoint ); in LeftShiftDecimalPoint()
187 void SbxBasicFormater::StrRoundDigit( String& sStrg, short nPos, sal_Bool& bOverflow ) in StrRoundDigit() argument
190 if( nPos<0 ) in StrRoundDigit()
195 sal_Unicode c = sStrg.GetChar( nPos ); in StrRoundDigit()
196 if( nPos>0 && (c == cDecPoint || c == cThousandSep) ) in StrRoundDigit()
198 StrRoundDigit( sStrg,nPos-1,bOverflow ); in StrRoundDigit()
208 while( nPos>=0 && (sStrg.GetChar( nPos )<ASCII_0 || sStrg.GetChar( nPos )>ASCII_9) ) in StrRoundDigit()
209 nPos--; in StrRoundDigit()
212 if( nPos==-1 ) in StrRoundDigit()
222 sal_Unicode c2 = sStrg.GetChar( nPos ); in StrRoundDigit()
228 sStrg.SetChar( nPos, '0' ); in StrRoundDigit()
229 StrRoundDigit( sStrg,nPos-1,bOverflow ); in StrRoundDigit()
232 sStrg.SetChar( nPos, c2+1 ); in StrRoundDigit()
239 ShiftString( sStrg,nPos+1 ); in StrRoundDigit()
241 sStrg.SetChar( nPos+1, '1' ); in StrRoundDigit()
248 void SbxBasicFormater::StrRoundDigit( String& sStrg, short nPos ) in StrRoundDigit() argument
252 StrRoundDigit( sStrg,nPos,bOverflow ); in StrRoundDigit()
301 short SbxBasicFormater::GetDigitAtPosScan( short nPos, sal_Bool& bFoundFirstDigit ) in GetDigitAtPosScan() argument
307 if( nPos>nNumExp || abs(nNumExp-nPos)>MAX_NO_OF_DIGITS ) in GetDigitAtPosScan()
313 if( nPos<nNumExp ) in GetDigitAtPosScan()
315 no += nNumExp-nPos; in GetDigitAtPosScan()
317 if( nPos==nNumExp ) in GetDigitAtPosScan()
322 short SbxBasicFormater::GetDigitAtPosExpScan( short nPos, sal_Bool& bFoundFirstDigit ) in GetDigitAtPosExpScan() argument
325 if( nPos>nExpExp ) in GetDigitAtPosExpScan()
331 no += nExpExp-nPos; in GetDigitAtPosExpScan()
333 if( nPos==nExpExp ) in GetDigitAtPosExpScan()
341 short SbxBasicFormater::GetDigitAtPosExpScan( double dNewExponent, short nPos, in GetDigitAtPosExpScan() argument
348 return GetDigitAtPosExpScan( nPos,bFoundFirstDigit ); in GetDigitAtPosExpScan()
379 short SbxBasicFormater::GetDigitAtPos( double dNumber, short nPos, in GetDigitAtPos() argument
389 dPos = (double)nPos; in GetDigitAtPos()
396 if( nMaxDigit<nPos && !bFoundFirstDigit && nPos>=0 ) in GetDigitAtPos()
400 for( short i=nMaxDigit; i>=nPos; i-- ) in GetDigitAtPos()
434 sal_uInt16 nPos = sFormatStrg.Search( FORMAT_SEPARATOR ); in GetPosFormatString() local
436 if( nPos!=STRING_NOTFOUND ) in GetPosFormatString()
441 return sFormatStrg.Copy( 0,nPos ); in GetPosFormatString()
453 sal_uInt16 nPos = sFormatStrg.Search( FORMAT_SEPARATOR ); in GetNegFormatString() local
455 if( nPos!=STRING_NOTFOUND ) in GetNegFormatString()
460 String sTempStrg = sFormatStrg.Copy( nPos+1 ); in GetNegFormatString()
462 nPos = sTempStrg.Search( FORMAT_SEPARATOR ); in GetNegFormatString()
464 if( nPos==STRING_NOTFOUND ) in GetNegFormatString()
469 return sTempStrg.Copy( 0,nPos ); in GetNegFormatString()
480 sal_uInt16 nPos = sFormatStrg.Search( FORMAT_SEPARATOR ); in Get0FormatString() local
482 if( nPos!=STRING_NOTFOUND ) in Get0FormatString()
487 String sTempStrg = sFormatStrg.Copy( nPos+1 ); in Get0FormatString()
489 nPos = sTempStrg.Search( FORMAT_SEPARATOR ); in Get0FormatString()
490 if( nPos!=STRING_NOTFOUND ) in Get0FormatString()
493 sTempStrg = sTempStrg.Copy( nPos+1 ); in Get0FormatString()
494 nPos = sTempStrg.Search( FORMAT_SEPARATOR ); in Get0FormatString()
495 if( nPos==STRING_NOTFOUND ) in Get0FormatString()
499 return sTempStrg.Copy( 0,nPos ); in Get0FormatString()
512 sal_uInt16 nPos = sFormatStrg.Search( FORMAT_SEPARATOR ); in GetNullFormatString() local
514 if( nPos!=STRING_NOTFOUND ) in GetNullFormatString()
519 String sTempStrg = sFormatStrg.Copy( nPos+1 ); in GetNullFormatString()
521 nPos = sTempStrg.Search( FORMAT_SEPARATOR ); in GetNullFormatString()
522 if( nPos!=STRING_NOTFOUND ) in GetNullFormatString()
525 sTempStrg = sTempStrg.Copy( nPos+1 ); in GetNullFormatString()
526 nPos = sTempStrg.Search( FORMAT_SEPARATOR ); in GetNullFormatString()
527 if( nPos!=STRING_NOTFOUND ) in GetNullFormatString()
530 return sTempStrg.Copy( nPos+1 ); in GetNullFormatString()