summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-16 17:17:18 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-16 17:17:18 +0000
commit7f5d153d93bb5b1f61063811601bb09fbe5038f2 (patch)
tree35e4b71666c79b6a4e6cbbf5b9eaf81bff41a1ae
parentf523a0c8229497de882038b97d27f89ea699965f (diff)
INTEGRATION: CWS dr33 (1.2.6); FILE MERGED
2005/02/14 13:31:36 dr 1.2.6.1: #i42367# remove non-ASCII characters at end of line, even in comments
-rw-r--r--hwpfilter/source/hwpeq.cpp44
1 files changed, 23 insertions, 21 deletions
diff --git a/hwpfilter/source/hwpeq.cpp b/hwpfilter/source/hwpeq.cpp
index 0af3d1ccbf5f..dc922011ec87 100644
--- a/hwpfilter/source/hwpeq.cpp
+++ b/hwpfilter/source/hwpeq.cpp
@@ -2,9 +2,9 @@
*
* $RCSfile: hwpeq.cpp,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2004-09-08 16:16:53 $
+ * last change: $Author: vg $ $Date: 2005-02-16 18:17:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -80,7 +80,7 @@ using namespace std;
//#define DEBUG
-//@Man: hwp LaTeX ٲٱ
+/* @Man: hwp LaTeX ٲٱ */
#ifdef WIN32
# define ENDL "\r\n"
#else /* !WIN32 */
@@ -173,7 +173,7 @@ static hwpeq eq_tbl[] = {
{ "bullet", NULL, 0, 0 },
{ "cap", NULL, 0, 0 },
{ "cases", NULL, 0, EQ_ENV },
- { "ccol", NULL, 0, 0 }, // η 
+ { "ccol", NULL, 0, 0 }, /* η  */
{ "cdot", NULL, 0, 0 },
{ "cdots", NULL, 0, 0 },
{ "check", NULL, 1, 0 },
@@ -449,7 +449,7 @@ static hwpeq *lookup_eqn(char *str)
return result;
}
-// ùڸ 빮̰ų 빮ڸ ҹڷ ٲ۴.
+/* ùڸ 빮̰ų 빮ڸ ҹڷ ٲ۴. */
static char *make_keyword( char *keyword, const char *token)
{
@@ -509,7 +509,7 @@ void push_token(MzString &white, MzString &token, istream *strm)
stk->strm = strm;
}
-/// ū ̸ ȯѴ.
+/* ū ̸ ȯѴ. */
/* control char, control sequence, binary sequence,
alphabet string, sigle character */
static int next_token(MzString &white, MzString &token, istream *strm)
@@ -545,8 +545,9 @@ static int next_token(MzString &white, MzString &token, istream *strm)
ch = strm->get();
} while( ch != EOF && (ch & 0x80 || isalpha(ch)) ) ;
strm->putback(ch);
- // sub, sub, over, atop Ư ó
- // next_state() ġ ̴.
+ /* sub, sub, over, atop Ư ó
+ next_state() ġ ̴.
+ */
if( !STRICMP("sub", token) || !STRICMP("from", token) ||
!STRICMP("sup", token) || !STRICMP("to", token) ||
!STRICMP("over", token) || !STRICMP("atop", token) ||
@@ -596,18 +597,19 @@ static int read_white_space(MzString& outs, istream *strm)
return result;
}
-// μ ʿ ׸ space brace
-// sqrt {ab}c = sqrt{ab} c
-// (, } grouping
-// ^, _ յڷ Ѵ.
-//
-// sqrt μ ִ
-// sqrt a -> sqrt{a}
-// sqrt {a} -> sqrt{a}
-// 1 ̻ μ ִ μ鰣 ش.
-// \frac a b -> frac{a}{b}
-// over
-// a over b -> {a}over{b}
+/* μ ʿ ׸ space brace
+ sqrt {ab}c = sqrt{ab} c
+ (, } grouping
+ ^, _ յڷ Ѵ.
+
+ sqrt μ ִ
+ sqrt a -> sqrt{a}
+ sqrt {a} -> sqrt{a}
+ 1 ̻ μ ִ μ鰣 ش.
+ \frac a b -> frac{a}{b}
+ over
+ a over b -> {a}over{b}
+ */
static int eq_word(MzString& outs, istream *strm, int status)
{
@@ -640,7 +642,7 @@ static int eq_word(MzString& outs, istream *strm, int status)
state << white << token;
}
else {
- // token
+ /* token */
int script_status = SCRIPT_NONE;
while( 1 ) {
state << white << token;