diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-14 01:37:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-15 09:21:48 +0100 |
commit | 9124003eb1e398957a85c5c009ac5eddf5e6f28e (patch) | |
tree | d1348216600b18f3daa08224a4d4492b53337813 /rsc | |
parent | a6825d680c7f49dd462a858cc8691757a6dd4cba (diff) |
ByteString::IsNumericAscii->comphelper::string::isAsciiDecimalString
shrink ByteString api, remove need for intermediate OString/ByteString
with random-ish encoding solely for check
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/Executable_rsc.mk | 1 | ||||
-rw-r--r-- | rsc/source/rsc/rsc.cxx | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/rsc/Executable_rsc.mk b/rsc/Executable_rsc.mk index d4b175c44bbe..ec8945fea2e9 100644 --- a/rsc/Executable_rsc.mk +++ b/rsc/Executable_rsc.mk @@ -48,6 +48,7 @@ $(eval $(call gb_Executable_add_defs,rsc,\ $(eval $(call gb_Executable_add_linked_libs,rsc,\ i18nisolang1 \ + comphelper \ sal \ tl \ $(gb_STDLIBS) \ diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx index 6dbf71c3983c..26520bbc2abd 100644 --- a/rsc/source/rsc/rsc.cxx +++ b/rsc/source/rsc/rsc.cxx @@ -65,6 +65,7 @@ #include <rtl/strbuf.hxx> #include <rtl/tencinfo.h> #include <rtl/textenc.h> +#include <comphelper/string.hxx> #include <vector> #include <algorithm> @@ -1197,7 +1198,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, aLine.EraseLeadingChars( '\t' ); aLine.EraseAllChars( ';' ); - if( aLine.IsNumericAscii() ) + if (comphelper::string::isAsciiDecimalString(aLine)) { ByteString aBaseFileName( aPrefix ); sal_Int32 nNumber = atoi( aLine.GetBuffer() ); |