summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-08-05 17:17:28 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-08-05 17:18:47 +0900
commitc2c664a741609eb0b09071642d58b5d66dd62401 (patch)
tree45d96c5721eff2f9addf9f387e300f9583f7db8b /hwpfilter
parent95d1b05430d0d6384c6910fa9dfdd3c703201d34 (diff)
Mark as const
Change-Id: I10bd1e46dcd8f990d9dea4b96a82f0b1e5a33764
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hcode.cxx16
-rw-r--r--hwpfilter/source/hwpeq.cxx12
2 files changed, 14 insertions, 14 deletions
diff --git a/hwpfilter/source/hcode.cxx b/hwpfilter/source/hcode.cxx
index accf2aa4997c..5949628c48a5 100644
--- a/hwpfilter/source/hcode.cxx
+++ b/hwpfilter/source/hcode.cxx
@@ -55,7 +55,7 @@ static hchar jaso2ks(hchar hh);
/**
* kssm code table matching with ks index
*/
-static hchar ksTbl[2350] =
+static const hchar ksTbl[2350] =
{
0x8861, 0x8862, 0x8865, 0x8868, 0x8869, 0x886A, 0x886B, 0x8871,
0x8873, 0x8874, 0x8875, 0x8876, 0x8877, 0x8878, 0x8879, 0x887B,
@@ -356,7 +356,7 @@ static hchar ksTbl[2350] =
/**
* ks symbols
*/
-static unsigned tblhhtg_ks[] =
+static const unsigned tblhhtg_ks[] =
{
0xC7D1, 0xB1DB, 0xB0FA, 0xC4C4, 0xC7BB, 0xC5CD, noneks, noneks,
0xA2B1, 0xA3DF, 0xA2D5, 0xA6B1, 0xA1B8, 0xA1B9, 0xA3DF, 0xA1DA,
@@ -371,7 +371,7 @@ static unsigned tblhhtg_ks[] =
/**
* kssm symbols
*/
-static unsigned hhtg_tg[] =
+static const unsigned hhtg_tg[] =
{
0xD065, 0x8B69, 0x89C1, 0xC4F1, 0xCF41, 0xC8E1, 0xD3C5, 0xD931,
0xD931, 0xD481, 0xD482, 0xD488, 0xD48A, 0xD48F, 0xD493, 0xD494,
@@ -578,7 +578,7 @@ static hchar jaso2ks(hchar hh)
//1 00011 00 001 00011
-static hchar choseong_to_unicode[] =
+static const hchar choseong_to_unicode[] =
{
0x111e, 0, 0x1100, 0x1101, 0x1102, 0x1103, 0x1104, 0x1105,
0x1106, 0x1107, 0x1108, 0x1109, 0x110a, 0x110b, 0x110c, 0x110d,
@@ -586,7 +586,7 @@ static hchar choseong_to_unicode[] =
0x112b, 0x112d, 0x112f, 0x1132, 0x1136, 0x1140, 0x114c, 0x1158
};
/* Áß¼ºÀÌ 0°ú 1ÀÎ °÷¿¡´Â ´Ù¸¥ ÄÚµåµéÀÌ µé¾î°¡ ÀÖ´Ù. À̺κп¡ ´ëÇÑ ¹ýÄ¢À» »Ì¾Æ¶ó. */
-static hchar joongseong_to_unicode[] =
+static const hchar joongseong_to_unicode[] =
{
0, 0, 0, 0x1161, 0x1162, 0x1163, 0x1164, 0x1165,
0, 0, 0x1166, 0x1167, 0x1168, 0x1169, 0x116a, 0x116b,
@@ -594,7 +594,7 @@ static hchar joongseong_to_unicode[] =
0x1191, 0x1194, 0x1172, 0x1173, 0x1174, 0x1175, 0x119e, 0x11a1
};
-static hchar jongseong_to_unicode[] =
+static const hchar jongseong_to_unicode[] =
{
0x11d9, 0 , 0x11a8, 0x11a9, 0x11aa, 0x11ab, 0x11ac, 0x11ad,
0x11ae, 0x11af, 0x11b0, 0x11b1, 0x11b2, 0x11b3, 0x11b4, 0x11b5,
@@ -608,7 +608,7 @@ static hchar jongseong_to_unicode[] =
* Àڸ𿵿ªÀº ÀÏ¹Ý Å×À̺í·Î ³ª¸ÓÁö´Â ±¸Á¶Ã¼ ¸ÅÇÎÅ×À̺í·Î ¸¸µç´Ù.
*/
/* 308°³.. 1152°³¿¡¼­ 308°³¸¦ Á¦¿ÜÇÑ ³ª¸ÓÁö 844°³´Â ÀÚ¸ðÁ¶ÇÕÀÌ´Ù. */
-static hchar jamo_to_unicode[] =
+static const hchar jamo_to_unicode[] =
{
0x3131, 0x3132, 0x3133, 0x3134, 0x3135, 0x3136, 0x3137, 0x3138,
0x3139, 0x313a, 0x313b, 0x313c, 0x313d, 0x313e, 0x313f, 0x3140,
@@ -667,7 +667,7 @@ struct JamoComp{
hchar v3;
};
/* 704 + 12 = 706 °³ */
-static JamoComp jamocomp1_to_unicode[] =
+static const JamoComp jamocomp1_to_unicode[] =
{
{3, 0x1100, 0x1161, 0x11e7}, {3, 0x1100, 0x1161, 0x3167},
{3, 0x1100, 0x1161, 0x11dd}, {3, 0x1100, 0x1161, 0x11e2},
diff --git a/hwpfilter/source/hwpeq.cxx b/hwpfilter/source/hwpeq.cxx
index 4dd732cf770f..68d18933359f 100644
--- a/hwpfilter/source/hwpeq.cxx
+++ b/hwpfilter/source/hwpeq.cxx
@@ -67,7 +67,7 @@ struct hwpeq {
unsigned char flag; // case sensitive?
};
-static hwpeq eq_tbl[] = {
+static const hwpeq eq_tbl[] = {
{ "!=", "\\equiv ", 0, 0 },
{ "#", "\\\\", 0, 0 },
{ "+-", "\\pm ", 0, 0 },
@@ -380,11 +380,11 @@ static hwpeq eq_tbl[] = {
{ "zeta", NULL, 0, EQ_CASE }
};
-static hwpeq *lookup_eqn(char *str)
+static const hwpeq *lookup_eqn(char *str)
{
- static int eqCount = SAL_N_ELEMENTS(eq_tbl);
+ static const int eqCount = SAL_N_ELEMENTS(eq_tbl);
int m, k, l = 0, r = eqCount;
- hwpeq *result = 0;
+ const hwpeq *result = 0;
while( l < r ) {
m = (l + r) / 2;
@@ -568,7 +568,7 @@ static int eq_word(MzString& outs, istream *strm, int status)
MzString token, white, state;
int result;
char keyword[256];
- hwpeq *eq;
+ const hwpeq *eq;
next_token(white, token, strm);
if (token.length() <= 0)
@@ -665,7 +665,7 @@ static char eq2ltxconv(MzString& sstr, istream *strm, const char *sentinel)
MzString white, token;
char key[256];
int ch, result;
- hwpeq *eq = 0;
+ const hwpeq *eq = 0;
while( 0 != (result = next_token(white, token, strm)) ) {
if( sentinel && (result == 1) && strchr(sentinel, token[0]) )