/** @param argc how many arguments to add @param argv the strings to add @param position the position to add the string at, a position less than 0 means to add at the end, if this number is greater than how many positions exist then it will also be added at the end **/ AREXPORT void ArArgumentBuilder::addStringsAsIs(int argc, char **argv, int position) { int i; for (i = 0; i < argc; i++) internalAddAsIs(argv[i], position + i); }
/** @param argc how many arguments to add @param argv the strings to add @param position the position to add the string at, a position less than 0 means to add at the end, if this number is greater than how many positions exist then it will also be added at the end **/ AREXPORT void ArArgumentBuilder::addStringsAsIs(int argc, char **argv, int position) { int i; if(position < 0) { // Don't try to use incremental positions, since the sequence would be out // of order, just keep using the same special "at-end" meaning of negative position // value for (i = 0; i < argc; i++) internalAddAsIs(argv[i], position); } else { for (i = 0; i < argc; i++) internalAddAsIs(argv[i], position + i); } }
/** @param str the string to add @param position the position to add the string at, a position less than 0 means to add at the end, if this number is greater than how many positions exist then it will also be added at the end **/ AREXPORT void ArArgumentBuilder::addPlainAsIs(const char *str, int position) { internalAddAsIs(str, position); }