Logo Search packages:      
Sourcecode: passwordmaker-cli version File versions  Download package

bool TCLAP::CmdLine::_emptyCombined ( const std::string &  s ) [inline, protected]

Checks whether a name/flag string matches entirely matches the Arg::blankChar. Used when multiple switches are combined into a single argument.

Parameters:
s- The message to be used in the usage.

Definition at line 424 of file CmdLine.h.

References TCLAP::Arg::blankChar(), and TCLAP::Arg::flagStartChar().

Referenced by parse().

{
      if ( s[0] != Arg::flagStartChar() )
            return false;

      for ( int i = 1; (unsigned int)i < s.length(); i++ )
            if ( s[i] != Arg::blankChar() )
                  return false;

      return true;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index