Fixed more typos

This commit is contained in:
Daniel Aarno 2017-09-02 17:35:50 +01:00
parent 4c04f3e965
commit 5879dff268
9 changed files with 19 additions and 19 deletions

View File

@ -98,7 +98,7 @@ class Arg
std::string _flag;
/**
* A single work namd indentifying the argument.
* A single word namd identifying the argument.
* This value (preceded by two dashed {--}) can also be used
* to identify an argument on the command line. Note that the
* _name does NOT include the two dashes as part of the _name. The
@ -137,7 +137,7 @@ class Arg
bool _alreadySet;
/**
* A pointer to a vistitor object.
* A pointer to a visitor object.
* The visitor allows special handling to occur as soon as the
* argument is matched. This defaults to NULL and should not
* be used unless absolutely necessary.
@ -158,7 +158,7 @@ class Arg
bool _acceptsMultipleValues;
/**
* Performs the special handling described by the Vistitor.
* Performs the special handling described by the Visitor.
*/
void _checkWithVisitor() const;

View File

@ -42,7 +42,7 @@ struct ValueLike {
/**
* A string like argument value type is a value that can be set using
* operator=(string). Usefull if the value type contains spaces which
* operator=(string). Useful if the value type contains spaces which
* will be broken up into individual tokens by operator>>.
*/
struct StringLike {

View File

@ -119,7 +119,7 @@ class CmdLine : public CmdLineInterface
/**
* A list of Visitors to be explicitly deleted when the destructor
* is called. At the moment, these are the Vistors created for the
* is called. At the moment, these are the Visitors created for the
* default Args.
*/
std::list<Visitor*> _visitorDeleteOnExitList;

View File

@ -29,7 +29,7 @@
namespace TCLAP {
/**
* A Vistor that tells the CmdLine to begin ignoring arguments after
* A Visitor that tells the CmdLine to begin ignoring arguments after
* this one is parsed.
*/
class IgnoreRestVisitor: public Visitor

View File

@ -41,7 +41,7 @@ class UnlabeledMultiArg : public MultiArg<T>
{
// If compiler has two stage name lookup (as gcc >= 3.4 does)
// this is requried to prevent undef. symbols
// this is required to prevent undef. symbols
using MultiArg<T>::_ignoreable;
using MultiArg<T>::_hasBlanks;
using MultiArg<T>::_extractValue;
@ -171,7 +171,7 @@ class UnlabeledMultiArg : public MultiArg<T>
virtual std::string longID(const std::string& val="val") const;
/**
* Opertor ==.
* Operator ==.
* \param a - The Arg to be compared to this.
*/
virtual bool operator==(const Arg& a) const;

View File

@ -44,7 +44,7 @@ class UnlabeledValueArg : public ValueArg<T>
{
// If compiler has two stage name lookup (as gcc >= 3.4 does)
// this is requried to prevent undef. symbols
// this is required to prevent undef. symbols
using ValueArg<T>::_ignoreable;
using ValueArg<T>::_hasBlanks;
using ValueArg<T>::_extractValue;
@ -74,7 +74,7 @@ class UnlabeledValueArg : public ValueArg<T>
* ignored if the '--' flag is set. This defaults to false (cannot
* be ignored) and should generally stay that way unless you have
* some special need for certain arguments to be ignored.
* \param v - Optional Vistor. You should leave this blank unless
* \param v - Optional Visitor. You should leave this blank unless
* you have a very good reason.
*/
UnlabeledValueArg( const std::string& name,
@ -104,7 +104,7 @@ class UnlabeledValueArg : public ValueArg<T>
* ignored if the '--' flag is set. This defaults to false (cannot
* be ignored) and should generally stay that way unless you have
* some special need for certain arguments to be ignored.
* \param v - Optional Vistor. You should leave this blank unless
* \param v - Optional Visitor. You should leave this blank unless
* you have a very good reason.
*/
UnlabeledValueArg( const std::string& name,
@ -132,7 +132,7 @@ class UnlabeledValueArg : public ValueArg<T>
* ignored if the '--' flag is set. This defaults to false (cannot
* be ignored) and should generally stay that way unless you have
* some special need for certain arguments to be ignored.
* \param v - Optional Vistor. You should leave this blank unless
* \param v - Optional Visitor. You should leave this blank unless
* you have a very good reason.
*/
UnlabeledValueArg( const std::string& name,
@ -161,7 +161,7 @@ class UnlabeledValueArg : public ValueArg<T>
* ignored if the '--' flag is set. This defaults to false (cannot
* be ignored) and should generally stay that way unless you have
* some special need for certain arguments to be ignored.
* \param v - Optional Vistor. You should leave this blank unless
* \param v - Optional Visitor. You should leave this blank unless
* you have a very good reason.
*/
UnlabeledValueArg( const std::string& name,
@ -177,7 +177,7 @@ class UnlabeledValueArg : public ValueArg<T>
* Handles the processing of the argument.
* This re-implements the Arg version of this method to set the
* _value of the argument appropriately. Handling specific to
* unlabled arguments.
* unlabeled arguments.
* \param i - Pointer the the current argument in the list.
* \param args - Mutable list of strings.
*/
@ -207,7 +207,7 @@ class UnlabeledValueArg : public ValueArg<T>
};
/**
* Constructor implemenation.
* Constructor implementation.
*/
template<class T>
UnlabeledValueArg<T>::UnlabeledValueArg(const std::string& name,
@ -242,7 +242,7 @@ UnlabeledValueArg<T>::UnlabeledValueArg(const std::string& name,
}
/**
* Constructor implemenation.
* Constructor implementation.
*/
template<class T>
UnlabeledValueArg<T>::UnlabeledValueArg(const std::string& name,

View File

@ -31,7 +31,7 @@
namespace TCLAP {
/**
* A Vistor that will call the version method of the given CmdLineOutput
* A Visitor that will call the version method of the given CmdLineOutput
* for the specified CmdLine object and then exit.
*/
class VersionVisitor: public Visitor

View File

@ -52,7 +52,7 @@ class XorHandler
XorHandler( ) : _orList(std::vector< std::vector<Arg*> >()) {}
/**
* Add a list of Arg*'s that will be orred together.
* Add a list of Arg*'s that will be xor'd together.
* \param ors - list of Arg* that will be xor'd.
*/
void add( std::vector<Arg*>& ors );

View File

@ -193,7 +193,7 @@ inline void ZshCompletionOutput::printOption(Arg* a, std::string mutex)
std::string name = a->nameStartString() + a->getName();
std::string desc = a->getDescription();
// remove full stop and capitalisation from description as
// remove full stop and capitalization from description as
// this is the convention for zsh function
if (!desc.compare(0, 12, "(required) "))
{