summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-12-22 19:01:25 +1100
committerStephan Bergmann <sbergman@redhat.com>2017-12-27 16:38:05 +0100
commit363cb299ddda76504f49e3445e6609fe3a4c8111 (patch)
treec7c5d90a4c71d63f08afd2fdcd107cc9548f8996 /sal
parent7cccb79f541404f6d317da49cee431294b9121c6 (diff)
sal: fix typo in tcvtmb.cxx and remove comment cruft
Change-Id: I1617900cd2df096d46a2cba75ef2fe1373c0ab63 Reviewed-on: https://gerrit.libreoffice.org/46948 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/textenc/tcvtmb.cxx14
1 files changed, 1 insertions, 13 deletions
diff --git a/sal/textenc/tcvtmb.cxx b/sal/textenc/tcvtmb.cxx
index 7446fbfec562..efdf01ea4e90 100644
--- a/sal/textenc/tcvtmb.cxx
+++ b/sal/textenc/tcvtmb.cxx
@@ -25,15 +25,11 @@
#include "tenchelp.hxx"
#include "unichars.hxx"
-/* ======================================================================= */
-
/* DBCS to Unicode conversion routine use a lead table for the first byte, */
/* where we determine the trail table or for single byte chars the unicode */
/* value. We have for all lead byte a separate table, because we can */
/* then share many tables for different charset encodings. */
-/* ======================================================================= */
-
sal_Size ImplDBCSToUnicode( const void* pData, SAL_UNUSED_PARAMETER void*,
const char* pSrcBuf, sal_Size nSrcBytes,
sal_Unicode* pDestBuf, sal_Size nDestChars,
@@ -82,7 +78,7 @@ sal_Size ImplDBCSToUnicode( const void* pData, SAL_UNUSED_PARAMETER void*,
}
else
{
- /* Source buffer to small */
+ /* Source buffer too small */
if ( pSrcBuf +1 == pEndSrcBuf )
{
if ( (nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0 )
@@ -207,8 +203,6 @@ sal_Size ImplDBCSToUnicode( const void* pData, SAL_UNUSED_PARAMETER void*,
return (nDestChars - (pEndDestBuf-pDestBuf));
}
-/* ----------------------------------------------------------------------- */
-
sal_Size ImplUnicodeToDBCS( const void* pData, SAL_UNUSED_PARAMETER void*,
const sal_Unicode* pSrcBuf, sal_Size nSrcChars,
char* pDestBuf, sal_Size nDestBytes,
@@ -361,13 +355,9 @@ sal_Size ImplUnicodeToDBCS( const void* pData, SAL_UNUSED_PARAMETER void*,
return (nDestBytes - (pEndDestBuf-pDestBuf));
}
-/* ======================================================================= */
-
#define JIS_EUC_LEAD_OFF 0x80
#define JIS_EUC_TRAIL_OFF 0x80
-/* ----------------------------------------------------------------------- */
-
sal_Size ImplEUCJPToUnicode( const void* pData,
SAL_UNUSED_PARAMETER void*,
const char* pSrcBuf, sal_Size nSrcBytes,
@@ -525,8 +515,6 @@ sal_Size ImplEUCJPToUnicode( const void* pData,
return (nDestChars - (pEndDestBuf-pDestBuf));
}
-/* ----------------------------------------------------------------------- */
-
sal_Size ImplUnicodeToEUCJP( const void* pData,
SAL_UNUSED_PARAMETER void*,
const sal_Unicode* pSrcBuf, sal_Size nSrcChars,