Kaydet (Commit) 1c31558e authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

svl: convert SvNumberformat constructor to OUString

Change-Id: I4031e0a89737687ff167360b987961e8b0e362fe
üst ed9a3618
...@@ -184,10 +184,10 @@ public: ...@@ -184,10 +184,10 @@ public:
SvNumberformat( ImpSvNumberformatScan& rSc, LanguageType eLge ); SvNumberformat( ImpSvNumberformatScan& rSc, LanguageType eLge );
// Normal ctor // Normal ctor
SvNumberformat( String& rString, SvNumberformat( OUString& rString,
ImpSvNumberformatScan* pSc, ImpSvNumberformatScan* pSc,
ImpSvNumberInputScan* pISc, ImpSvNumberInputScan* pISc,
xub_StrLen& nCheckPos, sal_Int32& nCheckPos,
LanguageType& eLan, LanguageType& eLan,
bool bStand = false ); bool bStand = false );
...@@ -487,7 +487,7 @@ private: ...@@ -487,7 +487,7 @@ private:
double& fOrgDateTime, const ImpSvNumFor& rNumFor ) const; double& fOrgDateTime, const ImpSvNumFor& rNumFor ) const;
#endif #endif
/** Whether to use possessive genitive case month name, or partitive case /** Whether to use possessive genitive case month name, or partitive case
month name, instead of nominative name (noun). month name, instead of nominative name (noun).
@param io_nState @param io_nState
...@@ -502,7 +502,7 @@ private: ...@@ -502,7 +502,7 @@ private:
@param eCodeType @param eCodeType
a NfKeywordIndex, must designate a month type code a NfKeywordIndex, must designate a month type code
@returns one of com::sun::star::i18n::CalendarDisplayCode values @returns one of com::sun::star::i18n::CalendarDisplayCode values
according to eCodeType and the check executed (or passed). according to eCodeType and the check executed (or passed).
*/ */
SVL_DLLPRIVATE sal_Int32 ImpUseMonthCase( int & io_nState, const ImpSvNumFor& rNumFor, NfKeywordIndex eCodeType ) const; SVL_DLLPRIVATE sal_Int32 ImpUseMonthCase( int & io_nState, const ImpSvNumFor& rNumFor, NfKeywordIndex eCodeType ) const;
...@@ -518,14 +518,14 @@ private: ...@@ -518,14 +518,14 @@ private:
const SvNumberFormatter& GetFormatter() const { return *rScan.GetNumberformatter(); } const SvNumberFormatter& GetFormatter() const { return *rScan.GetNumberformatter(); }
// divide in substrings and color conditions // divide in substrings and color conditions
SVL_DLLPRIVATE short ImpNextSymbol( String& rString, SVL_DLLPRIVATE short ImpNextSymbol( OUStringBuffer& rString,
xub_StrLen& nPos, sal_Int32& nPos,
String& sSymbol ); OUString& sSymbol );
// read string until ']' and strip blanks (after condition) // read string until ']' and strip blanks (after condition)
SVL_DLLPRIVATE static xub_StrLen ImpGetNumber( String& rString, SVL_DLLPRIVATE static sal_Int32 ImpGetNumber( OUStringBuffer& rString,
xub_StrLen& nPos, sal_Int32& nPos,
String& sSymbol ); OUString& sSymbol );
/** /**
* Parse the content of '[$-xxx] or '[$-xxxxxxxx]' and extract the locale * Parse the content of '[$-xxx] or '[$-xxxxxxxx]' and extract the locale
...@@ -549,7 +549,7 @@ private: ...@@ -549,7 +549,7 @@ private:
* list of language types. These numbers also correspond with the * list of language types. These numbers also correspond with the
* numbers used by Microsoft Office. * numbers used by Microsoft Office.
*/ */
SVL_DLLPRIVATE static LocaleType ImpGetLocaleType( const String& rString, xub_StrLen& nPos ); SVL_DLLPRIVATE static LocaleType ImpGetLocaleType( const OUString& rString, sal_Int32& nPos );
/** Obtain calendar and numerals from a LocaleType that was parsed from a /** Obtain calendar and numerals from a LocaleType that was parsed from a
LCID with ImpGetLocaleType(). LCID with ImpGetLocaleType().
...@@ -564,8 +564,10 @@ private: ...@@ -564,8 +564,10 @@ private:
calendar code, else an empty string. The calendar string needs to be calendar code, else an empty string. The calendar string needs to be
inserted at a proper positon to rString after all bracketed prefixes. inserted at a proper positon to rString after all bracketed prefixes.
*/ */
SVL_DLLPRIVATE String ImpObtainCalendarAndNumerals( String & rString, SVL_DLLPRIVATE OUString ImpObtainCalendarAndNumerals( OUStringBuffer & rString,
xub_StrLen & nPos, LanguageType & nLang, const LocaleType & aTmpLocale ); sal_Int32 & nPos,
LanguageType & nLang,
const LocaleType & aTmpLocale );
// standard number output // standard number output
SVL_DLLPRIVATE void ImpGetOutputStandard( double& fNumber, String& OutString ); SVL_DLLPRIVATE void ImpGetOutputStandard( double& fNumber, String& OutString );
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment