summaryrefslogtreecommitdiff
path: root/sal/textenc
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2019-08-02 11:30:01 +0200
committerAndrea Gelmini <andrea.gelmini@gelma.net>2019-08-02 14:03:36 +0200
commit7bef1aa72271361921b452559bb5debe3bfcf925 (patch)
treeb3c52438585ea675846567edad7bfab81d2ebfb5 /sal/textenc
parent493a1bfbc07394a94b6b8f0b35946b9e17c96001 (diff)
Fix typos
Change-Id: Ie183c445bf8a545f59aac7b0e29f72ab679a6cf3 Reviewed-on: https://gerrit.libreoffice.org/76852 Tested-by: Jenkins Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Diffstat (limited to 'sal/textenc')
-rw-r--r--sal/textenc/convertsimple.cxx2
-rw-r--r--sal/textenc/tcvtjp2.tab20
-rw-r--r--sal/textenc/tcvtmb.cxx6
-rw-r--r--sal/textenc/tcvtutf7.cxx6
-rw-r--r--sal/textenc/tencinfo.cxx4
-rw-r--r--sal/textenc/textenc.cxx2
6 files changed, 20 insertions, 20 deletions
diff --git a/sal/textenc/convertsimple.cxx b/sal/textenc/convertsimple.cxx
index 9eb6b928021c..386c77ba80a8 100644
--- a/sal/textenc/convertsimple.cxx
+++ b/sal/textenc/convertsimple.cxx
@@ -32,7 +32,7 @@ static ImplReplaceCharData const aImplRepCharTab[] =
{ 0x00A1, 0x0021 }, /* INVERTED EXCLAMATION MARK */
{ 0x00B7, 0x0045 }, /* MIDDLE DOT */
{ 0x00BF, 0x003F }, /* INVERTED QUESTION MARK */
- { 0x00D7, 0x002A }, /* MULTIPLIKATION SIGN */
+ { 0x00D7, 0x002A }, /* MULTIPLICATION SIGN */
{ 0x00F7, 0x002F }, /* DIVISION SIGN */
{ 0x2000, 0x0020 }, /* EN QUAD */
{ 0x2001, 0x0020 }, /* EM QUAD */
diff --git a/sal/textenc/tcvtjp2.tab b/sal/textenc/tcvtjp2.tab
index 19105511f273..fc9b0a3d98d7 100644
--- a/sal/textenc/tcvtjp2.tab
+++ b/sal/textenc/tcvtjp2.tab
@@ -23,10 +23,10 @@
/* ======================================================================= */
-/* 0x00A2 --> 0x8191 - APPLE_JAPANESE, but I think, this extension is better than the replacment char */
-/* 0x00A3 --> 0x8192 - APPLE_JAPANESE, but I think, this extension is better than the replacment char */
-/* 0x00A5 --> 0x005C - APPLE_JAPANESE, but I think, this extension is better than the replacment char */
-/* 0x00AC --> 0x81CA - APPLE_JAPANESE/SJIS, but I think, this extension is better than the replacment char */
+/* 0x00A2 --> 0x8191 - APPLE_JAPANESE, but I think, this extension is better than the replacement char */
+/* 0x00A3 --> 0x8192 - APPLE_JAPANESE, but I think, this extension is better than the replacement char */
+/* 0x00A5 --> 0x005C - APPLE_JAPANESE, but I think, this extension is better than the replacement char */
+/* 0x00AC --> 0x81CA - APPLE_JAPANESE/SJIS, but I think, this extension is better than the replacement char */
static sal_uInt16 const aImplUniToDBCSTab_SJIS_00[] =
{
@@ -141,12 +141,12 @@ static sal_uInt16 const aImplUniToDBCSTab_SJIS_04[] =
/* ----------------------------------------------------------------------- */
-/* 0x2014 --> 0x815C - APPLE_JAPANESE/SJIS, but I think, this extension is better than the replacment char */
-/* 0x2015 --> 0x815C - MS932, but I think, this extension is better than the replacment char */
-/* 0x2016 --> 0x8161 - APPLE_JAPANESE/SJIS, but I think, this extension is better than the replacment char */
+/* 0x2014 --> 0x815C - APPLE_JAPANESE/SJIS, but I think, this extension is better than the replacement char */
+/* 0x2015 --> 0x815C - MS932, but I think, this extension is better than the replacement char */
+/* 0x2016 --> 0x8161 - APPLE_JAPANESE/SJIS, but I think, this extension is better than the replacement char */
/* 0x2026 --> 0x8163 - APPLE_JAPANESE is normally 0x00FF (HORIZONTAL ELLIPSIS), because in the APPLE import table 0x8183 is this 0x22EF (MIDLINE HORIZONTAL ELLIPSIS) */
/* but we import this code as 0x2026 */
-/* 0x203E --> 0x8150 - APPLE_JAPANESE, but I think, this extension is better than the replacment char */
+/* 0x203E --> 0x8150 - APPLE_JAPANESE, but I think, this extension is better than the replacement char */
/* in SJIS this is 0x7E, but we import 0x7E as 0x7E, so this would be the better way */
static sal_uInt16 const aImplUniToDBCSTab_SJIS_20[] =
@@ -446,8 +446,8 @@ static sal_uInt16 const aImplUniToDBCSTab_APPLEJAPANESE_27[] =
/* ----------------------------------------------------------------------- */
/* 0x3014 --> 0x8160 - come from SJIS */
-/* 0x301D --> 0x8780 - MS932, but I think, this extension is better than the replacment char */
-/* 0x301F --> 0x8781 - MS932, but I think, this extension is better than the replacment char */
+/* 0x301D --> 0x8780 - MS932, but I think, this extension is better than the replacement char */
+/* 0x301F --> 0x8781 - MS932, but I think, this extension is better than the replacement char */
static sal_uInt16 const aImplUniToDBCSTab_SJIS_30[] =
{
diff --git a/sal/textenc/tcvtmb.cxx b/sal/textenc/tcvtmb.cxx
index b5b6903a1d40..6faa56b7c362 100644
--- a/sal/textenc/tcvtmb.cxx
+++ b/sal/textenc/tcvtmb.cxx
@@ -389,7 +389,7 @@ sal_Size ImplEUCJPToUnicode( const void* pData,
/* 8E + A1-DF */
if ( c == 0x8E )
{
- /* Source buffer to small */
+ /* Source buffer too small */
if ( pSrcBuf + 1 == pEndSrcBuf )
{
*pInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
@@ -413,7 +413,7 @@ sal_Size ImplEUCJPToUnicode( const void* pData,
/* 8F + A1-FE + A1-FE */
if ( c == 0x8F )
{
- /* Source buffer to small */
+ /* Source buffer too small */
if (pEndSrcBuf - pSrcBuf < 3)
{
*pInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
@@ -430,7 +430,7 @@ sal_Size ImplEUCJPToUnicode( const void* pData,
/* A1-FE + A1-FE */
else
{
- /* Source buffer to small */
+ /* Source buffer too small */
if ( pSrcBuf + 1 == pEndSrcBuf )
{
*pInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
diff --git a/sal/textenc/tcvtutf7.cxx b/sal/textenc/tcvtutf7.cxx
index 6c0625d0016e..46c135859566 100644
--- a/sal/textenc/tcvtutf7.cxx
+++ b/sal/textenc/tcvtutf7.cxx
@@ -43,7 +43,7 @@ static unsigned char const aImplBase64Tab[64] =
0x38, 0x39, 0x2B, 0x2F
};
-/* Index in Base64Tab or 0xFF, when is a invalid character */
+/* Index in Base64Tab or 0xFF, when is an invalid character */
static unsigned char const aImplBase64IndexTab[128] =
{
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, /* 0x00-0x07 */
@@ -246,7 +246,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
if ( !bWroteOne )
{
/* When no more bytes in the source buffer, then */
- /* this buffer may be to small */
+ /* this buffer may be too small */
if ( bEnd )
*pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
@@ -295,7 +295,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
if ( nBufferBits && nBitBuffer )
{
/* When no more bytes in the source buffer, then */
- /* this buffer may be to small */
+ /* this buffer may be too small */
if ( bEnd )
*pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
diff --git a/sal/textenc/tencinfo.cxx b/sal/textenc/tencinfo.cxx
index edbbec9c18dd..f541fcb20004 100644
--- a/sal/textenc/tencinfo.cxx
+++ b/sal/textenc/tencinfo.cxx
@@ -205,7 +205,7 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( const sal_Char* pU
/* All Identifiers in the tables are lower case The function search */
/* for the first matching string in the tables. */
- /* Sort order: unique (first 14, than 1), important */
+ /* Sort order: unique (first 14, then 1), important */
static ImplStrCharsetDef const aUnixCharsetISOTab[] =
{
@@ -522,7 +522,7 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromMimeCharset( const sal_Char* pM
/* All Identifiers are in lower case and contain only alphanumeric */
/* characters. The function search for the first matching string in */
/* the table. */
- /* Sort order: unique (first iso885914, than iso88591), important */
+ /* Sort order: unique (first iso885914, then iso88591), important */
static ImplStrCharsetDef const aMimeCharsetTab[] =
{
{ "unicode11utf7", RTL_TEXTENCODING_UTF7 },
diff --git a/sal/textenc/textenc.cxx b/sal/textenc/textenc.cxx
index 42b6848beb35..7c9592c2e7a8 100644
--- a/sal/textenc/textenc.cxx
+++ b/sal/textenc/textenc.cxx
@@ -261,7 +261,7 @@ static ImplTextEncodingData const aImplISO88591TextEncodingData
/* 7-Bit ASCII */
/* 1-Byte, 0x00-0x7F ASCII without exception */
/* For the import we use ISO-8859-1 with MS extension (MS-1252), because */
-/* when the 8-Bit is set, the chance, that this is a ISO-8859-1 character */
+/* when the 8-Bit is set, the chance, that this is an ISO-8859-1 character */
/* is the greatest. For the export all chars greater than 127 are not */
/* converted and are replaced by the replacement character. */
/* Last-Changes from us: */