Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Common/CommandLineParser.cpp')
-rwxr-xr-xCommon/CommandLineParser.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/Common/CommandLineParser.cpp b/Common/CommandLineParser.cpp
index 27a3d385..69c41841 100755
--- a/Common/CommandLineParser.cpp
+++ b/Common/CommandLineParser.cpp
@@ -229,35 +229,4 @@ int ParseCommand(int numCommandForms, const CCommandForm *commandForms,
return -1;
}
-bool ParseSubCharsCommand(int numForms, const CCommandSubCharsSet *forms,
- const UString &commandString, CIntVector &indices)
-{
- indices.Clear();
- int numUsedChars = 0;
- for(int i = 0; i < numForms; i++)
- {
- const CCommandSubCharsSet &set = forms[i];
- int currentIndex = -1;
- int len = MyStringLen(set.Chars);
- for(int j = 0; j < len; j++)
- {
- wchar_t c = set.Chars[j];
- int newIndex = commandString.Find(c);
- if (newIndex >= 0)
- {
- if (currentIndex >= 0)
- return false;
- if (commandString.Find(c, newIndex + 1) >= 0)
- return false;
- currentIndex = j;
- numUsedChars++;
- }
- }
- if(currentIndex == -1 && !set.EmptyAllowed)
- return false;
- indices.Add(currentIndex);
- }
- return (numUsedChars == commandString.Length());
-}
-
}