From 363cb299ddda76504f49e3445e6609fe3a4c8111 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Fri, 22 Dec 2017 19:01:25 +1100 Subject: sal: fix typo in tcvtmb.cxx and remove comment cruft Change-Id: I1617900cd2df096d46a2cba75ef2fe1373c0ab63 Reviewed-on: https://gerrit.libreoffice.org/46948 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sal/textenc/tcvtmb.cxx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'sal') 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, -- cgit