MCPcopy Create free account
hub / github.com/ConEmu/ConEmu / IsCmdRedirection

Function IsCmdRedirection

src/common/CmdLine.cpp:697–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697bool IsCmdRedirection(LPCWSTR asParameters)
698{
699 if (IsStrEmpty(asParameters))
700 return false;
701 if (wcspbrk(asParameters, REDIRECTION_CMD_CHARACTERS) == nullptr)
702 return false;
703
704 CmdArg next;
705 const wchar_t* nextStart = nullptr;
706 const wchar_t* param = asParameters;
707 while ((param = NextArg(param, next, &nextStart)) != nullptr)
708 {
709 if (wcspbrk(next.c_str(L""), REDIRECTION_CMD_CHARACTERS) == nullptr)
710 continue;
711 if (!next.m_bQuoted)
712 return true;
713 }
714
715 return false;
716}
717
718bool IsNeedCmd(bool bRootCmd, LPCWSTR asCmdLine, CEStr &szExe, NeedCmdOptions* options /*= nullptr*/)
719{

Callers 2

TESTFunction · 0.85
IsNeedCmdFunction · 0.85

Calls 2

c_strMethod · 0.80
NextArgFunction · 0.70

Tested by 1

TESTFunction · 0.68