Searched refs:arg (Results 1 – 25 of 176) sorted by relevance
12345678
37 while (false !== $arg = current($args)) {40 if ($arg == '') {44 if ($arg == '--') {50 if ($arg[0] != '-' || (strlen($arg) > 1 && $arg[1] == '-' && !$long_options)) {54 } elseif (strlen($arg) > 1 && $arg[1] == '-') {56 substr($arg, 2),63 substr($arg, 1),76 $argLen = strlen($arg);79 $opt = $arg[$i];90 $opts[] = [$opt, substr($arg, $i + 1)];[all …]
31 foreach($argv as $k => $arg) {35 if ($arg[0] == '-') {36 $arg = explode('=', $arg); variable37 switch($arg[0]) {39 if (isset($arg[1])) {40 if (isset($flavors[$arg[1]])) {41 require($flavors[$arg[1]][1]);42 $flavor = $flavors[$arg[1]][0];44 error("Unknown flavor: " . $arg[1], "usage");61 error("Unknown argument " . $arg[0], "usage");[all …]
1 function sprintf2(arg) { argument2 if( arg.length < 2 ) {3 return arg[0];5 var data = arg[ 0 ];6 for( var k=1; k<arg.length; ++k ) {7 switch( typeof( arg[ k ] ) )10 data = data.replace( /%s/, arg[ k ] );13 data = data.replace( /%d/, arg[ k ] );16 data = data.replace( /%b/, arg[ k ] ? 'true' : 'false' );
109 * @param string $arg argument name (just for help)115 public function registerArgument($arg, $help, $required = true, $command = '') argument 122 'name' => $arg,196 foreach ($this->setup[$this->command]['args'] as $arg) {197 if (!$arg['required']) {227 $arg = $this->args[$i];231 if ($arg == '--') {237 if ($arg == '-') {243 if ($arg[0] != '-') {249 if (strlen($arg) > [all...]
109 foreach ([$attributes1, $attributes2] as $arg) {110 if ($arg instanceof Node) {111 $arg = $arg->data->get('attributes');114 /** @var array<string, mixed> $arg */115 $arg = (array) $arg;116 if (isset($arg['class'])) {117 if (\is_string($arg['class'])) {118 $arg['clas[all...]
94 foreach($args as $arg){95 if ($arg[0] == '=') {96 $this->setVal(substr($arg,1));97 } elseif ($arg == '!') {99 } elseif ($arg == '^') {104 } elseif($arg == '@') {106 } elseif($arg == '@@') {110 } elseif($arg[0] == '.') {114 } elseif($arg[0].$arg[1] == '**') {117 $t = $arg[0];[all …]
22 foreach ($args as $arg) {23 switch ($arg[0]) {25 if($arg == '==1') {27 }elseif($arg == '==0') {30 $this->opt['true_value'] = substr($arg, 1);34 $this->opt['false_value'] = substr($arg, 1);37 $newargs[] = $arg;
197 $arg = array();214 $arg[$match[1]] = (int)$match[2];224 $arg['width'] = $matches[1];225 if (!$matches[2]) $arg['width'].= $unit;226 $arg['height'] = $matches[4];227 if (!$matches[5]) $arg['height'].= $unit;231 $arg[$singlekey] = $matches[1];235 $arg[$singlekey] = $matches[1].$unit;245 $arg[$matches[1]] = false;247 $arg[$token] = true;[all …]
107 foreach ($args as $arg) {109 if ($arg instanceof XML_RPC_Value) {110 $params[] = $arg;115 if (is_object($arg)) {116 $arg = serialize($arg);119 $params[] = XML_RPC_encode($arg);
22 public $arg; variable in Google\\Service\\RemoteBuildExecution\\GoogleDevtoolsRemoteworkersV1test2AdminTemp25 public function setArg($arg) argument27 $this->arg = $arg;31 return $this->arg;
213 array_push($args, htmlspecialchars($arg));215 $arg = "";228 $arg .= ' ';233 if ( strlen($arg) < 1 ) continue;234 array_push($args, htmlspecialchars($arg));235 $arg = "";239 $arg .= $line{$i};241 if ( strlen($arg) > 0 ) array_push($args, htmlspecialchars($arg));
45 foreach ($this->args() as $arg) {49 $pieces[] = $arg->match();89 foreach ($this->args() as $arg) {90 … if ($arg instanceof TokenInstance || ($recursive && !$arg->isExpanded($recursive))) {112 if ($arg instanceof ElementInstance && !$arg->isExpanded($recursive)) {113 $arg->expand($elmDef);131 foreach ($this->args() as $arg) {133 return $arg;158 foreach ($this->args() as $arg) {173 foreach ($this->args() as $arg) {[all …]
26 foreach($args as $arg) {27 if($arg[0] !== '_') {28 $n_args[] = $arg;31 $this->args[] = $arg;47 foreach($args as $arg) {48 $arg = $this->replaceTranslation($arg);49 $datatype = $dthlp->_column($arg);
27 foreach ($args as $arg) {28 if ($arg[0] !== '_') {29 $n_args[] = $arg;32 $this->args[] = $arg;48 foreach ($args as $arg) {49 $arg = $this->replaceTranslation($arg);50 $datatype = $dthlp->column($arg);
28 foreach ($args as $arg) {29 if ($arg[0] !== '_') {30 $n_args[] = $arg;33 $this->args[] = $arg;49 foreach ($args as $arg) {50 $arg = $this->replaceTranslation($arg);51 $datatype = $dthlp->column($arg);
46 list ($match, $arg) = $data;51 $renderer->doc .=sprintf($arg, $N[$S]);59 if ($arg==='') $arg= $N[$match]; // preserve amount if no amount given61 $N[$S] = intval($arg);
119 private static function isSurroundedBy($arg, $char) argument121 return 2 < \strlen($arg) && $char === $arg[0] && $char === $arg[\strlen($arg) - 1];
84 …$arg = $phpcsFile->findNext(T_WHITESPACE, ($tokens[$function]['parenthesis_opener'] + 1), null, tr…85 if ($tokens[$arg]['content'] !== 'callback') {87 $phpcsFile->addError($error, $arg, 'FirstArgNotCallback');176 $arg = $phpcsFile->findNext(T_WHITESPACE, ($i + 4), null, true);177 if ($tokens[$arg]['content'] !== 'this'178 && $tokens[$arg]['content'] !== 'self'181 $phpcsFile->addError($error, $arg, 'FirstArgNotSelf');
36 foreach ($standardArgs as $arg => $pqSelector) {37 $input = "<form>\nfile \"Some label\" $arg\n</form>";42 foreach ($standardArgs as $arg => $pqSelector) {43 $input = "<form>\nfile \"Some label\" upload:here $arg\n</form>";48 foreach ($standardArgs as $arg => $pqSelector) {49 $input = "<form>\nfile \"Some label\" \"upload:here\" $arg\n</form>";