summaryrefslogtreecommitdiff
path: root/svtools/source/misc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-04 21:17:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-05 10:54:19 +0100
commite99a072c0e19d1bab68a49758acaac22dd981e0c (patch)
tree927772b072c8cf79026a2146478f9e1c267cac5a /svtools/source/misc
parentaf60795f76f04e5a0315eeaa4cb9c5a90f4ae90c (diff)
add a fairly efficient read_LEuInt16s_AsOUString, merge similar things
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/filterutils.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/svtools/source/misc/filterutils.cxx b/svtools/source/misc/filterutils.cxx
deleted file mode 100644
index d0d481a81988..000000000000
--- a/svtools/source/misc/filterutils.cxx
+++ /dev/null
@@ -1,39 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-// MARKER(update_precomp.py): autogen include statement, do not remove
-#include "precompiled_svtools.hxx"
-#include <svtools/filterutils.hxx>
-#include <rtl/ustrbuf.hxx>
-
-namespace svt
-{
-//........................................................................
-
- using namespace ::com::sun::star;
-
- rtl::OUString lcl_createStringFromArray( const char* pcCharArr, sal_uInt32 nBufSize )
- {
- rtl::OUStringBuffer aBuffer;
- // buffer contains Little-Endian Unicode
- sal_Int32 nStrLen = static_cast< sal_Int32 >( nBufSize ) / 2;
- aBuffer.setLength( nStrLen );
- const char* pcCurrChar = pcCharArr;
- for( sal_Int32 nChar = 0; nChar < nStrLen; ++nChar )
- {
- /* *pcCurrChar may contain negative values and therefore MUST be
- casted to unsigned char, before assigned to a sal_Unicode. */
- sal_Unicode cChar = static_cast< unsigned char >( *pcCurrChar++ );
- cChar |= (static_cast< unsigned char >( *pcCurrChar++ ) << 8);
- aBuffer.setCharAt( nChar, cChar );
- }
- return aBuffer.makeStringAndClear();
- }
-
- rtl::OUString BinFilterUtils::CreateOUStringFromUniStringArray( const char* pcCharArr, sal_uInt32 nBufSize )
- {
- return lcl_createStringFromArray( pcCharArr, nBufSize );
- }
-//........................................................................
-} // namespace svt
-//........................................................................
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */