Lines Matching refs:sStrg
150 inline void SbxBasicFormater::ShiftString( String& sStrg, sal_uInt16 nStartPos ) in ShiftString() argument
152 sStrg.Erase( nStartPos,1 ); in ShiftString()
156 inline void SbxBasicFormater::StrAppendChar( String& sStrg, sal_Unicode ch ) in StrAppendChar() argument
158 sStrg.Insert( ch ); in StrAppendChar()
164 void SbxBasicFormater::AppendDigit( String& sStrg, short nDigit ) in AppendDigit() argument
167 StrAppendChar( sStrg, (sal_Unicode)(nDigit+ASCII_0) ); in AppendDigit()
171 void SbxBasicFormater::LeftShiftDecimalPoint( String& sStrg ) in LeftShiftDecimalPoint() argument
173 sal_uInt16 nPos = sStrg.Search( cDecPoint ); 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
195 sal_Unicode c = sStrg.GetChar( nPos ); 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()
214 ShiftString( sStrg,0 ); in StrRoundDigit()
216 sStrg.SetChar( 0, '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()
257 void SbxBasicFormater::ParseBack( String& sStrg, const String& sFormatStrg, in ParseBack() argument
262 i>0 && sFormatStrg.GetChar( i ) == '#' && sStrg.GetChar( (sStrg.Len()-1) ) == '0'; in ParseBack()
264 { sStrg.Erase( sStrg.Len()-1 ); } in ParseBack()