diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 3 | ||||
-rw-r--r-- | svl/source/numbers/zformat.cxx | 8 | ||||
-rw-r--r-- | svl/source/numbers/zforscan.cxx | 4 |
3 files changed, 15 insertions, 0 deletions
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index cd889ce4d9d6..e56a5cef8502 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -182,6 +182,7 @@ double ImpSvNumberInputScan::StringToDouble( const OUString& rStr, bool bForceFr return fNum; } +namespace { /** * Splits up the input into numbers and strings for further processing @@ -209,6 +210,8 @@ enum ScanState // States of the Turing machine SsGetString = 3 }; +} + bool ImpSvNumberInputScan::NextNumberStringSymbol( const sal_Unicode*& pStr, OUString& rSymbol ) { diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index ce04f095c68f..0ba7c9b02f73 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -348,6 +348,8 @@ bool ImpSvNumFor::GetNewCurrencySymbol( OUString& rSymbol, * SvNumberformat */ +namespace { + enum BracketFormatSymbolType { BRACKET_SYMBOLTYPE_FORMAT = -1, // subformat string @@ -385,6 +387,8 @@ enum BracketFormatSymbolType BRACKET_SYMBOLTYPE_NATNUM19 = -33 }; +} + void SvNumberformat::ImpCopyNumberformat( const SvNumberformat& rFormat ) { sFormatstring = rFormat.sFormatstring; @@ -1408,6 +1412,8 @@ SvNumberformat::~SvNumberformat() * ---------------+-------------------+----------------------------+--------------- */ +namespace { + enum ScanState { SsStop, @@ -1420,6 +1426,8 @@ enum ScanState SsGetQuoted // quoted text }; +} + // read a string until ']' and delete spaces in input // static sal_Int32 SvNumberformat::ImpGetNumber(OUStringBuffer& rString, diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx index 04e86ea2ca5b..1216ae6756a7 100644 --- a/svl/source/numbers/zforscan.cxx +++ b/svl/source/numbers/zforscan.cxx @@ -757,6 +757,8 @@ short ImpSvNumberformatScan::GetKeyWord( const OUString& sSymbol, sal_Int32 nPos * we write back the rest of the characters! */ +namespace { + enum ScanState { SsStop = 0, @@ -768,6 +770,8 @@ enum ScanState SsGetBlank = 6 }; +} + short ImpSvNumberformatScan::Next_Symbol( const OUString& rStr, sal_Int32& nPos, OUString& sSymbol ) const |