//--------------------------------------------------------------------------- void TProgramParams::Init(const UnicodeString & CmdLine) { UnicodeString CommandLine = CmdLine; UnicodeString Param; CutToken(CommandLine, Param); while (CutToken(CommandLine, Param)) { Add(Param); } }
void TOptions::ParseParams(const UnicodeString & Params) { UnicodeString Param; UnicodeString ParamsLocal = Params; // CutToken(Params, Param); // To remove program name while (CutToken(ParamsLocal, Param)) { Add(Param); } }