summaryrefslogtreecommitdiff
path: root/sal/textenc
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2015-09-29 17:56:52 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2015-09-30 07:07:18 +0000
commitc15d93f252df25b1d0e406abb08e3a3e5df71f5e (patch)
tree8e1f84bb3b9e15c34872317dcbd6cbaedac03b18 /sal/textenc
parenta55c2728453c68f44966fc31b4a483416c43b8f3 (diff)
Fix typos
Change-Id: Ia41f4f0ca30ae3346d0720271478ec5bcdab797b Reviewed-on: https://gerrit.libreoffice.org/18967 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sal/textenc')
-rw-r--r--sal/textenc/tcvtjp6.tab30
-rw-r--r--sal/textenc/tcvtutf7.cxx4
2 files changed, 17 insertions, 17 deletions
diff --git a/sal/textenc/tcvtjp6.tab b/sal/textenc/tcvtjp6.tab
index a5b1d1b792a0..4b260ce30b82 100644
--- a/sal/textenc/tcvtjp6.tab
+++ b/sal/textenc/tcvtjp6.tab
@@ -158,7 +158,7 @@ static ImplDBCSToUniLeadTab const aSJISUniLeadTab[256] =
{ 0x007D, 0, 0, NULL }, /* 0x7D */
{ 0x007E, 0, 0, NULL }, /* 0x7E */ /* is 0x0203E (SPACING OVERSCORE), but for compatibiliy with ascii, we use 0x7E (TILDE) like MS CP392 */
{ 0x007F, 0, 0, NULL }, /* 0x7F */
- { 0x005C, 0, 0, NULL }, /* 0x80 */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x005C, 0, 0, NULL }, /* 0x80 */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_81 }, /* 0x81 */
{ 0, 0x4F, 0xF1, aImplDBCSToUniTab_SJIS_82 }, /* 0x82 */
{ 0, 0x40, 0xD6, aImplDBCSToUniTab_SJIS_83 }, /* 0x83 */
@@ -190,7 +190,7 @@ static ImplDBCSToUniLeadTab const aSJISUniLeadTab[256] =
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_SJIS_9D }, /* 0x9D */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_SJIS_9E }, /* 0x9E */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_SJIS_9F }, /* 0x9F */
- { 0x00A0, 0, 0, NULL }, /* 0xA0 */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x00A0, 0, 0, NULL }, /* 0xA0 */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
{ 0xFF61, 0, 0, NULL }, /* 0xA1 */
{ 0xFF62, 0, 0, NULL }, /* 0xA2 */
{ 0xFF63, 0, 0, NULL }, /* 0xA3 */
@@ -283,9 +283,9 @@ static ImplDBCSToUniLeadTab const aSJISUniLeadTab[256] =
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_FA }, /* 0xFA */ /* We use the MS table for better MS compatibility */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_FB }, /* 0xFB */ /* We use the MS table for better MS compatibility */
{ 0, 0x40, 0x4B, aImplDBCSToUniTab_MS932_FC }, /* 0xFC */ /* We use the MS table for better MS compatibility */
- { 0x00A9, 0, 0, NULL }, /* 0xFD */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
- { 0x2122, 0, 0, NULL }, /* 0xFE */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
- { 0x2026, 0, 0, NULL } /* 0xFF */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x00A9, 0, 0, NULL }, /* 0xFD */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x2122, 0, 0, NULL }, /* 0xFE */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x2026, 0, 0, NULL } /* 0xFF */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
};
/* ----------------------------------------------------------------------- */
@@ -730,7 +730,7 @@ static ImplDBCSToUniLeadTab const aMS932UniLeadTab[256] =
{ 0x007D, 0, 0, NULL }, /* 0x7D */
{ 0x007E, 0, 0, NULL }, /* 0x7E */ /* in SJIS this is 0x0203E (SPACING OVERSCORE), but for compatibiliy with ascii, we use 0x7E (TILDE) like MS CP392 */
{ 0x007F, 0, 0, NULL }, /* 0x7F */
- { 0x005C, 0, 0, NULL }, /* 0x80 */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x005C, 0, 0, NULL }, /* 0x80 */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_81 }, /* 0x81 */
{ 0, 0x4F, 0xF1, aImplDBCSToUniTab_SJIS_82 }, /* 0x82 */
{ 0, 0x40, 0xD6, aImplDBCSToUniTab_SJIS_83 }, /* 0x83 */
@@ -762,7 +762,7 @@ static ImplDBCSToUniLeadTab const aMS932UniLeadTab[256] =
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_SJIS_9D }, /* 0x9D */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_SJIS_9E }, /* 0x9E */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_SJIS_9F }, /* 0x9F */
- { 0x00A0, 0, 0, NULL }, /* 0xA0 */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x00A0, 0, 0, NULL }, /* 0xA0 */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
{ 0xFF61, 0, 0, NULL }, /* 0xA1 */
{ 0xFF62, 0, 0, NULL }, /* 0xA2 */
{ 0xFF63, 0, 0, NULL }, /* 0xA3 */
@@ -855,9 +855,9 @@ static ImplDBCSToUniLeadTab const aMS932UniLeadTab[256] =
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_FA }, /* 0xFA */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_FB }, /* 0xFB */
{ 0, 0x40, 0x4B, aImplDBCSToUniTab_MS932_FC }, /* 0xFC */
- { 0x00A9, 0, 0, NULL }, /* 0xFD */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
- { 0x2122, 0, 0, NULL }, /* 0xFE */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
- { 0x2026, 0, 0, NULL } /* 0xFF */ /* APPLE additons over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x00A9, 0, 0, NULL }, /* 0xFD */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x2122, 0, 0, NULL }, /* 0xFE */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
+ { 0x2026, 0, 0, NULL } /* 0xFF */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
};
/* ----------------------------------------------------------------------- */
@@ -1287,7 +1287,7 @@ static ImplDBCSToUniLeadTab const aAPPLEJAPANESEUniLeadTab[256] =
{ 0x007D, 0, 0, NULL }, /* 0x7D */
{ 0x007E, 0, 0, NULL }, /* 0x7E */ /* in SJIS this is 0x0203E (SPACING OVERSCORE), but for compatibiliy with ascii, we use 0x7E (TILDE) like MS CP392 */
{ 0x007F, 0, 0, NULL }, /* 0x7F */
- { 0x005C, 0, 0, NULL }, /* 0x80 */ /* APPLE additons over SJIS */
+ { 0x005C, 0, 0, NULL }, /* 0x80 */ /* APPLE additions over SJIS */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_81 }, /* 0x81 */
{ 0, 0x4F, 0xF1, aImplDBCSToUniTab_SJIS_82 }, /* 0x82 */
{ 0, 0x40, 0xD6, aImplDBCSToUniTab_SJIS_83 }, /* 0x83 */
@@ -1319,7 +1319,7 @@ static ImplDBCSToUniLeadTab const aAPPLEJAPANESEUniLeadTab[256] =
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_SJIS_9D }, /* 0x9D */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_SJIS_9E }, /* 0x9E */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_SJIS_9F }, /* 0x9F */
- { 0x00A0, 0, 0, NULL }, /* 0xA0 */ /* APPLE additons over SJIS */
+ { 0x00A0, 0, 0, NULL }, /* 0xA0 */ /* APPLE additions over SJIS */
{ 0xFF61, 0, 0, NULL }, /* 0xA1 */
{ 0xFF62, 0, 0, NULL }, /* 0xA2 */
{ 0xFF63, 0, 0, NULL }, /* 0xA3 */
@@ -1412,9 +1412,9 @@ static ImplDBCSToUniLeadTab const aAPPLEJAPANESEUniLeadTab[256] =
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_FA }, /* 0xFA */ /* We use the MS table for better MS compatibility */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_FB }, /* 0xFB */ /* We use the MS table for better MS compatibility */
{ 0, 0x40, 0x4B, aImplDBCSToUniTab_MS932_FC }, /* 0xFC */ /* We use the MS table for better MS compatibility */
- { 0x00A9, 0, 0, NULL }, /* 0xFD */ /* APPLE additons over SJIS */
- { 0x2122, 0, 0, NULL }, /* 0xFE */ /* APPLE additons over SJIS */
- { 0x2026, 0, 0, NULL } /* 0xFF */ /* APPLE additons over SJIS */
+ { 0x00A9, 0, 0, NULL }, /* 0xFD */ /* APPLE additions over SJIS */
+ { 0x2122, 0, 0, NULL }, /* 0xFE */ /* APPLE additions over SJIS */
+ { 0x2026, 0, 0, NULL } /* 0xFF */ /* APPLE additions over SJIS */
};
/* ----------------------------------------------------------------------- */
diff --git a/sal/textenc/tcvtutf7.cxx b/sal/textenc/tcvtutf7.cxx
index 8d4ae60045f2..ea6a6d92b6f4 100644
--- a/sal/textenc/tcvtutf7.cxx
+++ b/sal/textenc/tcvtutf7.cxx
@@ -209,7 +209,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
/* an alternate form of UTF-7 where SHIFT_IN is escaped */
/* by SHIFT_IN. This only works for some values of */
/* SHIFT_IN. It is so implemented, because this comes */
- /* from the officel unicode book (The Unicode Standard, */
+ /* from the official unicode book (The Unicode Standard, */
/* Version 2.0) and so I think, that someone of the */
/* world has used this feature. */
if ( !bEnd )
@@ -543,7 +543,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext,
if ( !bEnd )
{
- /* Character can be directly endcoded */
+ /* Character can be directly encoded */
if ( !bNeedShift )
{
if ( pDestBuf >= pEndDestBuf )