chore(Deps/Acelite): Update to 6.5.10 (#3450)
This commit is contained in:
Vendored
+18
-13
@@ -4,8 +4,6 @@
|
||||
/**
|
||||
* @file Arg_Shifter.h
|
||||
*
|
||||
* $Id: Arg_Shifter.h 95972 2012-07-26 10:20:42Z johnnyw $
|
||||
*
|
||||
* @author Seth Widoff
|
||||
*/
|
||||
//=============================================================================
|
||||
@@ -55,7 +53,6 @@ template <typename CHAR_TYPE>
|
||||
class ACE_Arg_Shifter_T
|
||||
{
|
||||
public:
|
||||
// = Initialization and termination methods.
|
||||
/**
|
||||
* Initialize the ACE_Arg_Shifter to the vector over which to
|
||||
* iterate. Optionally, also provide the temporary array for
|
||||
@@ -77,13 +74,13 @@ public:
|
||||
* (the default) the object will allocate and free the temporary
|
||||
* vector transparently.
|
||||
*/
|
||||
ACE_Arg_Shifter_T (int& argc,
|
||||
ACE_Arg_Shifter_T (int &argc,
|
||||
const CHAR_TYPE **argv,
|
||||
const CHAR_TYPE **temp = 0);
|
||||
|
||||
/// Same behavior as the preceding constructor, but without the
|
||||
/// "const" qualifier.
|
||||
ACE_Arg_Shifter_T (int& argc,
|
||||
ACE_Arg_Shifter_T (int &argc,
|
||||
CHAR_TYPE **argv,
|
||||
CHAR_TYPE **temp = 0);
|
||||
|
||||
@@ -100,12 +97,12 @@ public:
|
||||
*
|
||||
* Safe to call without checking that a current arg exists
|
||||
*
|
||||
* In the following examples, a pointer to the char* "value" is ret
|
||||
* In the following examples, a pointer to the char* "value" is returned
|
||||
*
|
||||
* eg: main -foobar value, main -FooBar value
|
||||
* main -FOOBARvalue
|
||||
*
|
||||
* all of the above will all match the @a flag == -FooBar
|
||||
* all of the above will match the @a flag == -FooBar
|
||||
* and will return a char* to "value"
|
||||
*
|
||||
* main -foobar 4 would succeed and return a char* to "4"
|
||||
@@ -125,7 +122,7 @@ public:
|
||||
* together '-foobarflagVALUE', the flag is NOT consumed
|
||||
* and the cur arg is left pointing to the entire flag/value pair
|
||||
*/
|
||||
const CHAR_TYPE *get_the_parameter (const CHAR_TYPE* flag);
|
||||
const CHAR_TYPE *get_the_parameter (const CHAR_TYPE *flag);
|
||||
|
||||
/**
|
||||
* Check if the current argument matches (case insensitive) @a flag
|
||||
@@ -136,7 +133,7 @@ public:
|
||||
* 0 is returned.
|
||||
*
|
||||
* ie: when current_arg = "-foobar" or "-FOOBAR" or "-fooBAR"
|
||||
* this->cur_arg_strncasecmp ("-FooBar);
|
||||
* this->cur_arg_strncasecmp ("-FooBar");
|
||||
* will return 0
|
||||
*
|
||||
* ------------------------------------------------------------
|
||||
@@ -144,11 +141,19 @@ public:
|
||||
* Case B: Perfect Match (case insensitive) but the current_arg
|
||||
* is longer than the flag. Returns a number equal to the index
|
||||
* in the char* indicating the start of the extra characters
|
||||
* after any initial spaces (see below).
|
||||
*
|
||||
* ie: when current_arg = "-foobar98023"
|
||||
* this->cur_arg_strncasecmp ("-FooBar);
|
||||
* this->cur_arg_strncasecmp ("-FooBar");
|
||||
* will return 7
|
||||
*
|
||||
* Spaces separating the flag from its value (that are still part
|
||||
* of the same argv element) are counted as part of the return value
|
||||
*
|
||||
* ie: when current_arg = "-foobar 98023"
|
||||
* this->cur_arg_strncasecmp ("-FooBar");
|
||||
* will return 8
|
||||
*
|
||||
* Notice: this number will always be > 0
|
||||
*
|
||||
* ------------------------------------------------------------
|
||||
@@ -182,16 +187,16 @@ public:
|
||||
|
||||
private:
|
||||
/// Copy Constructor should not be used.
|
||||
ACE_UNIMPLEMENTED_FUNC (ACE_Arg_Shifter_T (const ACE_Arg_Shifter_T<CHAR_TYPE>&))
|
||||
ACE_UNIMPLEMENTED_FUNC (ACE_Arg_Shifter_T (const ACE_Arg_Shifter_T<CHAR_TYPE> &))
|
||||
|
||||
/// Assignment '=' operator should not be used.
|
||||
ACE_UNIMPLEMENTED_FUNC (ACE_Arg_Shifter_T operator= (const ACE_Arg_Shifter_T<CHAR_TYPE>&))
|
||||
ACE_UNIMPLEMENTED_FUNC (ACE_Arg_Shifter_T operator= (const ACE_Arg_Shifter_T<CHAR_TYPE> &))
|
||||
|
||||
/// Refactor the constructor logic.
|
||||
void init (void);
|
||||
|
||||
/// The size of the argument vector.
|
||||
int& argc_;
|
||||
int &argc_;
|
||||
|
||||
/// The size of argv_.
|
||||
int total_size_;
|
||||
|
||||
Reference in New Issue
Block a user