Пример #1
0
//---------------------------------------------------------------------------
void TProgramParams::Init(const UnicodeString & CmdLine)
{
  UnicodeString CommandLine = CmdLine;

  UnicodeString Param;
  CutToken(CommandLine, Param);
  while (CutToken(CommandLine, Param))
  {
    Add(Param);
  }
}
Пример #2
0
void TOptions::ParseParams(const UnicodeString & Params)
{
  UnicodeString Param;
  UnicodeString ParamsLocal = Params;
  // CutToken(Params, Param); // To remove program name
  while (CutToken(ParamsLocal, Param))
  {
    Add(Param);
  }
}