summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/lzma/CPP/Common/CommandLineParser.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/lzma/CPP/Common/CommandLineParser.h')
-rw-r--r--3rdparty/lzma/CPP/Common/CommandLineParser.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/3rdparty/lzma/CPP/Common/CommandLineParser.h b/3rdparty/lzma/CPP/Common/CommandLineParser.h
index c9fd2956186..fc6f028e6d5 100644
--- a/3rdparty/lzma/CPP/Common/CommandLineParser.h
+++ b/3rdparty/lzma/CPP/Common/CommandLineParser.h
@@ -1,7 +1,7 @@
// Common/CommandLineParser.h
-#ifndef __COMMON_COMMAND_LINE_PARSER_H
-#define __COMMON_COMMAND_LINE_PARSER_H
+#ifndef ZIP7_INC_COMMON_COMMAND_LINE_PARSER_H
+#define ZIP7_INC_COMMON_COMMAND_LINE_PARSER_H
#include "MyString.h"
@@ -38,24 +38,24 @@ struct CSwitchResult
int PostCharIndex;
UStringVector PostStrings;
- CSwitchResult(): ThereIs(false) {};
+ CSwitchResult(): ThereIs(false) {}
};
class CParser
{
- unsigned _numSwitches;
CSwitchResult *_switches;
- bool ParseString(const UString &s, const CSwitchForm *switchForms);
+ bool ParseString(const UString &s, const CSwitchForm *switchForms, unsigned numSwitches);
public:
UStringVector NonSwitchStrings;
+ int StopSwitchIndex; // NonSwitchStrings[StopSwitchIndex+] are after "--"
AString ErrorMessage;
UString ErrorLine;
- CParser(unsigned numSwitches);
+ CParser();
~CParser();
- bool ParseStrings(const CSwitchForm *switchForms, const UStringVector &commandStrings);
- const CSwitchResult& operator[](size_t index) const { return _switches[index]; }
+ bool ParseStrings(const CSwitchForm *switchForms, unsigned numSwitches, const UStringVector &commandStrings);
+ const CSwitchResult& operator[](unsigned index) const { return _switches[index]; }
};
}