remove obsolete command line switches -UTF8 and -NOUTF8

This commit is contained in:
Andras Timar 2011-09-20 10:22:08 +02:00
parent 1536203ed2
commit e0dc7d906b
6 changed files with 10 additions and 50 deletions

View file

@ -113,14 +113,6 @@ extern char *GetOutputFile( int argc, char* argv[])
nState = STATE_ERRORLOG;
bErrorLog = sal_False;
}
else if ( sSwitch == "-UTF8" ) {
nState = STATE_UTF8;
bUTF8 = sal_True;
}
else if ( sSwitch == "-NOUTF8" ) {
nState = STATE_UTF8;
bUTF8 = sal_False;
}
else if ( sSwitch == "-F" ) {
nState = STATE_FORCE;
bForce = sal_True;

View file

@ -55,8 +55,7 @@ Export *pExport = 0L;
#define STATE_ERRORLOG 0x0007
#define STATE_BREAKHELP 0x0008
#define STATE_UNMERGE 0x0009
#define STATE_UTF8 0x000A
#define STATE_LANGUAGES 0X000B
#define STATE_LANGUAGES 0X000A
// set of global variables
typedef ::std::vector< ByteString* > FileList;
@ -138,14 +137,6 @@ extern char *GetOutputFile( int argc, char* argv[])
bUnmerge = sal_True;
bMergeMode = sal_True;
}
else if ( sSwitch.ToUpperAscii() == "-UTF8" ) {
nState = STATE_UTF8;
bUTF8 = sal_True;
}
else if ( sSwitch.ToUpperAscii() == "-NOUTF8" ) {
nState = STATE_UTF8;
bUTF8 = sal_False;
}
else if ( sSwitch == "-l" || sSwitch == "-L" ) {
nState = STATE_LANGUAGES;
}

View file

@ -44,9 +44,8 @@
#define STATE_ERRORLOG 0x0007
#define STATE_BREAKHELP 0x0008
#define STATE_UNMERGE 0x0009
#define STATE_UTF8 0x000A
#define STATE_LANGUAGES 0x000B
#define STATE_FORCE_LANGUAGES 0x000C
#define STATE_LANGUAGES 0x000A
#define STATE_FORCE_LANGUAGES 0x000B
#define STATE_OUTPUTX 0xfe
#define STATE_OUTPUTY 0xff
@ -110,14 +109,6 @@ sal_Bool ParseCommandLine( int argc, char* argv[])
nState = STATE_ERRORLOG;
bErrorLog = sal_False;
}
else if ( ByteString( argv[ i ]).ToUpperAscii() == "-UTF8" ) {
nState = STATE_UTF8;
bUTF8 = sal_True;
}
else if ( ByteString( argv[ i ]).ToUpperAscii() == "-NOUTF8" ) {
nState = STATE_UTF8;
bUTF8 = sal_False;
}
else if ( ByteString( argv[ i ]).ToUpperAscii() == "-L" ) {
nState = STATE_LANGUAGES;
}

View file

@ -43,9 +43,8 @@
#define STATE_ERRORLOG 0x0007
#define STATE_BREAKHELP 0x0008
#define STATE_UNMERGE 0x0009
#define STATE_UTF8 0x000A
#define STATE_ULF 0x000B
#define STATE_LANGUAGES 0x000C
#define STATE_ULF 0x000A
#define STATE_LANGUAGES 0x000B
// set of global variables
ByteString sInputFile;
@ -98,10 +97,6 @@ sal_Bool ParseCommandLine( int argc, char* argv[])
nState = STATE_ERRORLOG;
bErrorLog = sal_False;
}
else if ( sSwitch == "-UTF8" ) {
nState = STATE_UTF8;
bUTF8 = sal_True;
}
else if ( sSwitch == "-L" ) {
nState = STATE_LANGUAGES;
}

View file

@ -53,12 +53,12 @@ namespace transex3
//
const char *ExeTable[][5] = {
{ "src", "transex3", " -UTF8 -e", "negative", "noiso" },
{ "hrc", "transex3", " -UTF8 -e", "positive", "noiso" },
{ "src", "transex3", " -e", "negative", "noiso" },
{ "hrc", "transex3", " -e", "positive", "noiso" },
{ "ulf", "ulfex", " -e", "negative", "noiso" },
{ "xcd", "cfgex", "-UTF8 -e", "negative", "iso" },
{ "xcu", "cfgex", "-UTF8 -e", "negative", "iso" },
{ "xrm", "xrmex", "-UTF8 -e", "negative", "iso" },
{ "xcd", "cfgex", " -e", "negative", "iso" },
{ "xcu", "cfgex", " -e", "negative", "iso" },
{ "xrm", "xrmex", " -e", "negative", "iso" },
{ "xhp", "helpex", " -e", "negative", "noiso" },
{ "NULL", "NULL", "NULL", "NULL", "NULL" }
};

View file

@ -52,7 +52,6 @@ extern "C" { int YYWarning( char * ); }
#define STATE_ROOT 0x0005
#define STATE_MERGESRC 0x0006
#define STATE_ERRORLOG 0x0007
#define STATE_UTF8 0x000B
#define STATE_LANGUAGES 0x000C
// set of global variables
@ -109,14 +108,6 @@ extern char *GetOutputFile( int argc, char* argv[])
nState = STATE_ERRORLOG;
bErrorLog = sal_False;
}
else if ( ByteString( argv[ i ] ).ToUpperAscii() == "-UTF8" ) {
nState = STATE_UTF8;
bUTF8 = sal_True;
}
else if ( ByteString( argv[ i ] ).ToUpperAscii() == "-NOUTF8" ) {
nState = STATE_UTF8;
bUTF8 = sal_False;
}
else if ( ByteString( argv[ i ] ).ToUpperAscii() == "-L" ) {
nState = STATE_LANGUAGES;
}