Lines Matching refs:value
41 * Get the value (called the message in a pipeline)
98 * We replace after the split to be sure that there is not a | separator in the variable value
164 private static function replace(array $commandArgs, $value)
168 return str_replace($search, $replace, $value);
173 * @param $value
177 public static function head(array $commandArgs, $value)
180 if (strlen($value) < $length) {
181 return $value;
183 $words = explode(" ", $value);
204 static function concat(array $commandArgs, $value, $side): string
209 return $string . $value;
211 return $value . $string;
213 LogUtility::msg("The side value ($side) is unknown", LogUtility::LVL_MSG_ERROR, "pipeline");
214 return $value . $string;
221 static function tail(array $commandArgs, $value)
224 return substr($value, strlen($value) - $length);
228 static function cut(array $commandArgs, $value)
231 $words = preg_split("/$pattern/i", $value);
248 return $value;
264 return "An error occurred: could not split with the pattern `$pattern`, the value `$value`.";
272 static function format(array $commandArgs, $value): string
279 $dateTime = Iso8601Date::createFromString($value);
281 throw new ExceptionBadSyntax("The format method allows for now only date. The value ($value) is not a date.", PipelineTag::CANONICAL);