Gems/EMotionFX/Code/MCore/Source/CommandLine.cpp
void CommandLine::SetCommandLine(const AZStd::string& commandLine)
    {
        // get rid of previous parameters
        m_parameters.clear();

        // extract all parameters
        AZStd::string paramName;
        AZStd::string paramValue;
        size_t offset = 0;
        while (ExtractNextParam(commandLine, paramName, paramValue, &offset))
        {
            // if the parameter name is empty then it isn't a real parameter
            if (!paramName.empty())
            {
                m_parameters.emplace_back(Parameter {paramName, paramValue});
            }
        }
    }
// parse the command line (build the parameter array)
parse the command line (build the parameter array)
parse the command line ( build the parameter array )
void CommandLine::SetCommandLine(const AZStd::string& commandLine)
    {
        m_parameters.clear();
        AZStd::string paramName;
        AZStd::string paramValue;
        size_t offset = 0;
        while (ExtractNextParam(commandLine, paramName, paramValue, &offset))
        {
            if (!paramName.empty())
            {
                m_parameters.emplace_back(Parameter {paramName, paramValue});
            }
        }
    }
void CommandLine :: SetCommandLine ( const AZStd :: string & commandLine ) { m_parameters . clear ( ) ; AZStd :: string paramName ; AZStd :: string paramValue ; size_t offset = 0 ; while ( ExtractNextParam ( commandLine , paramName , paramValue , & offset ) ) { if ( ! paramName . empty ( ) ) { m_parameters . emplace_back ( Parameter { paramName , paramValue } ) ; } } }
parse the command line (build the parameter array)
parse the command line ( build the parameter array )
// get rid of previous parameters // extract all parameters // if the parameter name is empty then it isn't a real parameter