Lines Matching refs:sFormatStrg
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()
431 String SbxBasicFormater::GetPosFormatString( const String& sFormatStrg, sal_Bool & bFound ) in GetPosFormatString() argument
434 sal_uInt16 nPos = sFormatStrg.Search( FORMAT_SEPARATOR ); in GetPosFormatString()
441 return sFormatStrg.Copy( 0,nPos ); in GetPosFormatString()
450 String SbxBasicFormater::GetNegFormatString( const String& sFormatStrg, sal_Bool & bFound ) in GetNegFormatString() argument
453 sal_uInt16 nPos = sFormatStrg.Search( FORMAT_SEPARATOR ); in GetNegFormatString()
460 String sTempStrg = sFormatStrg.Copy( nPos+1 ); in GetNegFormatString()
477 String SbxBasicFormater::Get0FormatString( const String& sFormatStrg, sal_Bool & bFound ) in Get0FormatString() argument
480 sal_uInt16 nPos = sFormatStrg.Search( FORMAT_SEPARATOR ); in Get0FormatString()
487 String sTempStrg = sFormatStrg.Copy( nPos+1 ); in Get0FormatString()
509 String SbxBasicFormater::GetNullFormatString( const String& sFormatStrg, sal_Bool & bFound ) in GetNullFormatString() argument
512 sal_uInt16 nPos = sFormatStrg.Search( FORMAT_SEPARATOR ); in GetNullFormatString()
519 String sTempStrg = sFormatStrg.Copy( nPos+1 ); in GetNullFormatString()
542 short SbxBasicFormater::AnalyseFormatString( const String& sFormatStrg, in AnalyseFormatString() argument
553 nLen = sFormatStrg.Len(); in AnalyseFormatString()
568 bGenerateThousandSeparator = sFormatStrg.Search( ',' ) != STRING_NOTFOUND; in AnalyseFormatString()
573 sal_Unicode c = sFormatStrg.GetChar( i ); in AnalyseFormatString()
626 sal_Unicode ch = sFormatStrg.GetChar( i+1 ); in AnalyseFormatString()
663 const String& sFormatStrg, String& sReturnStrg, in ScanFormatString() argument
691 /*nErr =*/ AnalyseFormatString( sFormatStrg,nNoOfDigitsLeft,nNoOfDigitsRight, in ScanFormatString()
727 nLen = sFormatStrg.Len(); in ScanFormatString()
770 c = sFormatStrg.GetChar( i ); in ScanFormatString()
892 ParseBack( sReturnStrg,sFormatStrg,i-1 ); in ScanFormatString()
933 ParseBack( sReturnStrg,sFormatStrg,i-1 ); in ScanFormatString()
940 c = sFormatStrg.GetChar( ++i ); in ScanFormatString()
977 ParseBack( sReturnStrg,sFormatStrg,i-1 ); in ScanFormatString()
989 ParseBack( sReturnStrg,sFormatStrg,i-1 ); in ScanFormatString()
997 ParseBack( sReturnStrg,sFormatStrg,i-1 ); in ScanFormatString()
1001 c = sFormatStrg.GetChar( ++i ); in ScanFormatString()
1040 ParseBack( sReturnStrg,sFormatStrg,sFormatStrg.Len()-1 ); in ScanFormatString()
1044 String SbxBasicFormater::BasicFormatNull( String sFormatStrg ) in BasicFormatNull() argument
1047 String sNullFormatStrg = GetNullFormatString( sFormatStrg,bNullFormatFound ); in BasicFormatNull()
1056 String SbxBasicFormater::BasicFormat( double dNumber, String sFormatStrg ) in BasicFormat() argument
1061 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_GENERALNUMBER ) ) in BasicFormat()
1062 sFormatStrg.AssignAscii( GENERALNUMBER_FORMAT ); in BasicFormat()
1063 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_CURRENCY ) ) in BasicFormat()
1064 sFormatStrg = sCurrencyFormatStrg; // old: CURRENCY_FORMAT; in BasicFormat()
1065 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_FIXED ) ) in BasicFormat()
1066 sFormatStrg.AssignAscii( FIXED_FORMAT ); in BasicFormat()
1067 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_STANDARD ) ) in BasicFormat()
1068 sFormatStrg.AssignAscii( STANDARD_FORMAT ); in BasicFormat()
1069 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_PERCENT ) ) in BasicFormat()
1070 sFormatStrg.AssignAscii( PERCENT_FORMAT ); in BasicFormat()
1071 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_SCIENTIFIC ) ) in BasicFormat()
1072 sFormatStrg.AssignAscii( SCIENTIFIC_FORMAT ); in BasicFormat()
1073 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_YESNO ) ) in BasicFormat()
1075 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_TRUEFALSE ) ) in BasicFormat()
1077 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_ONOFF ) ) in BasicFormat()
1082 String sPosFormatStrg = GetPosFormatString( sFormatStrg, bPosFormatFound ); in BasicFormat()
1083 String sNegFormatStrg = GetNegFormatString( sFormatStrg, bNegFormatFound ); in BasicFormat()
1084 String s0FormatStrg = Get0FormatString( sFormatStrg, b0FormatFound ); in BasicFormat()
1092 sTempStrg = sFormatStrg; in BasicFormat()
1127 sTempStrg = sFormatStrg; in BasicFormat()
1135 (/*sPosFormatStrg!=EMPTYFORMATSTRING*/bPosFormatFound ? sPosFormatStrg : sFormatStrg), in BasicFormat()
1142 sal_Bool SbxBasicFormater::isBasicFormat( String sFormatStrg ) in isBasicFormat() argument
1144 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_GENERALNUMBER ) ) in isBasicFormat()
1146 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_CURRENCY ) ) in isBasicFormat()
1148 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_FIXED ) ) in isBasicFormat()
1150 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_STANDARD ) ) in isBasicFormat()
1152 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_PERCENT ) ) in isBasicFormat()
1154 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_SCIENTIFIC ) ) in isBasicFormat()
1156 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_YESNO ) ) in isBasicFormat()
1158 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_TRUEFALSE ) ) in isBasicFormat()
1160 if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_ONOFF ) ) in isBasicFormat()