//++ ------------------------------------------------------------------------------------ // Details: Examine the string and determine if it is a valid string type argument. // Type: Method. // Args: vrTxt - (R) Some text. // Return: bool - True = yes valid arg, false = no. // Throws: None. //-- bool CMICmdArgValString::IsStringArg( const CMIUtilString & vrTxt ) const { if( m_bHandleQuotedString ) return IsStringArgQuotedText( vrTxt ); return IsStringArgSingleText( vrTxt ); }
//++ ------------------------------------------------------------------------------------ // Details: Examine the string and determine if it is a valid string type argument. // Type: Method. // Args: vrTxt - (R) Some text. // Return: bool - True = yes valid arg, false = no. // Throws: None. //-- bool CMICmdArgValString::IsStringArg( const CMIUtilString & vrTxt ) const { if( m_bHandleQuotedString ) return (IsStringArgQuotedText( vrTxt ) || IsStringArgQuotedTextEmbedded( vrTxt ) || IsStringArgQuotedQuotedTextEmbedded( vrTxt ) || IsStringArgSingleText( vrTxt ) ); // Still test for this as could just be one word still return IsStringArgSingleText( vrTxt ); }