19 foreach ($aArgs as $arg) {
21 $arg = self::convertBooleanValue($arg);
40 foreach ($aArgs as
$key => &$arg) {
41 if ($ignoreEmpty ===
true && is_string($arg) && trim($arg) ===
'') {
43 } elseif (is_bool($arg)) {
44 $arg = self::convertBooleanValue($arg);
59 public static function builtinREPT($stringValue, $repeatCount): string
63 if (!is_numeric($repeatCount) || $repeatCount < 0) {
67 if (is_bool($stringValue)) {
68 $stringValue = self::convertBooleanValue($stringValue);
71 return str_repeat($stringValue, (
int) $repeatCount);
static builtinREPT($stringValue, $repeatCount)
REPT.
static convertBooleanValue($value)
static TEXTJOIN($delimiter, $ignoreEmpty,... $args)
TEXTJOIN.
static flattenArray($array)
Convert a multi-dimensional array to a simple 1-dimensional array.
static getFALSE()
Return the locale-specific translation of FALSE.
const COMPATIBILITY_OPENOFFICE
static getTRUE()
Return the locale-specific translation of TRUE.
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.
static CONCATENATE(... $args)
CONCATENATE.
static getCompatibilityMode()
Return the current Compatibility Mode.