Kaydet (Commit) 363cb299 authored tarafından Chris Sherlock's avatar Chris Sherlock Kaydeden (comit) Stephan Bergmann

sal: fix typo in tcvtmb.cxx and remove comment cruft

Change-Id: I1617900cd2df096d46a2cba75ef2fe1373c0ab63
Reviewed-on: https://gerrit.libreoffice.org/46948Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 7cccb79f
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment