ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Calculation\TextData Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Calculation\TextData:

Static Public Member Functions

static CHARACTER ($character)
 CHARACTER. More...
 
static TRIMNONPRINTABLE ($stringValue='')
 TRIMNONPRINTABLE. More...
 
static TRIMSPACES ($stringValue='')
 TRIMSPACES. More...
 
static ASCIICODE ($characters)
 ASCIICODE. More...
 
static CONCATENATE (... $args)
 CONCATENATE. More...
 
static DOLLAR ($value=0, $decimals=2)
 DOLLAR. More...
 
static SEARCHSENSITIVE ($needle, $haystack, $offset=1)
 SEARCHSENSITIVE. More...
 
static SEARCHINSENSITIVE ($needle, $haystack, $offset=1)
 SEARCHINSENSITIVE. More...
 
static FIXEDFORMAT ($value, $decimals=2, $no_commas=false)
 FIXEDFORMAT. More...
 
static LEFT ($value='', $chars=1)
 LEFT. More...
 
static MID ($value='', $start=1, $chars=null)
 MID. More...
 
static RIGHT ($value='', $chars=1)
 RIGHT. More...
 
static STRINGLENGTH ($value='')
 STRINGLENGTH. More...
 
static LOWERCASE ($mixedCaseString)
 LOWERCASE. More...
 
static UPPERCASE ($mixedCaseString)
 UPPERCASE. More...
 
static PROPERCASE ($mixedCaseString)
 PROPERCASE. More...
 
static REPLACE ($oldText, $start, $chars, $newText)
 REPLACE. More...
 
static SUBSTITUTE ($text='', $fromText='', $toText='', $instance=0)
 SUBSTITUTE. More...
 
static RETURNSTRING ($testValue='')
 RETURNSTRING. More...
 
static TEXTFORMAT ($value, $format)
 TEXTFORMAT. More...
 
static VALUE ($value='')
 VALUE. More...
 
static NUMBERVALUE ($value='', $decimalSeparator=null, $groupSeparator=null)
 NUMBERVALUE. More...
 
static EXACT ($value1, $value2)
 Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise. More...
 
static TEXTJOIN ($delimiter, $ignoreEmpty,... $args)
 TEXTJOIN. More...
 
static builtinREPT ($str, $number)
 REPT. More...
 

Detailed Description

Deprecated:
1.18.0

Definition at line 10 of file TextData.php.

Member Function Documentation

◆ ASCIICODE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::ASCIICODE (   $characters)
static

ASCIICODE.

@Deprecated 1.18.0

See also
Use the code() method in the TextData\CharacterConvert class instead
Parameters
string$charactersValue
Returns
int|string A string if arguments are invalid

Definition at line 71 of file TextData.php.

72 {
73 return TextData\CharacterConvert::code($characters);
74 }

References PhpOffice\PhpSpreadsheet\Calculation\TextData\CharacterConvert\code().

+ Here is the call graph for this function:

◆ builtinREPT()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::builtinREPT (   $str,
  $number 
)
static

REPT.

Returns the result of builtin function repeat after validating args.

@Deprecated 1.18.0

See also
Use the builtinREPT() method in the TextData\Concatenate class instead
Parameters
string$strShould be numeric
mixed$numberShould be int
Returns
string

Definition at line 444 of file TextData.php.

445 {
446 return TextData\Concatenate::builtinREPT($str, $number);
447 }
static builtinREPT($stringValue, $repeatCount)
REPT.
Definition: Concatenate.php:59

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Concatenate\builtinREPT().

+ Here is the call graph for this function:

◆ CHARACTER()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::CHARACTER (   $character)
static

CHARACTER.

@Deprecated 1.18.0

See also
Use the character() method in the TextData\CharacterConvert class instead
Parameters
string$characterValue
Returns
string

Definition at line 23 of file TextData.php.

References PhpOffice\PhpSpreadsheet\Calculation\TextData\CharacterConvert\character().

+ Here is the call graph for this function:

◆ CONCATENATE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::CONCATENATE (   $args)
static

CONCATENATE.

@Deprecated 1.18.0

See also
Use the CONCATENATE() method in the TextData\Concatenate class instead
Returns
string

Definition at line 85 of file TextData.php.

86 {
87 return TextData\Concatenate::CONCATENATE(...$args);
88 }

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Concatenate\CONCATENATE().

+ Here is the call graph for this function:

◆ DOLLAR()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::DOLLAR (   $value = 0,
  $decimals = 2 
)
static

DOLLAR.

This function converts a number to text using currency format, with the decimals rounded to the specified place. The format used is $#,##0.00_);($#,##0.00)..

@Deprecated 1.18.0

See also
Use the DOLLAR() method in the TextData\Format class instead
Parameters
float$valueThe value to format
int$decimalsThe number of digits to display to the right of the decimal point. If decimals is negative, number is rounded to the left of the decimal point. If you omit decimals, it is assumed to be 2
Returns
string

Definition at line 107 of file TextData.php.

108 {
109 return TextData\Format::DOLLAR($value, $decimals);
110 }
static DOLLAR($value=0, $decimals=2)
DOLLAR.
Definition: Format.php:26

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Format\DOLLAR().

+ Here is the call graph for this function:

◆ EXACT()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::EXACT (   $value1,
  $value2 
)
static

Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise.

EXACT is case-sensitive but ignores formatting differences. Use EXACT to test text being entered into a document.

@Deprecated 1.18.0

See also
Use the exact() method in the TextData\Text class instead
Parameters
mixed$value1
mixed$value2
Returns
bool

Definition at line 407 of file TextData.php.

408 {
409 return TextData\Text::exact($value1, $value2);
410 }
static exact($value1, $value2)
Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise.
Definition: Text.php:34

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Text\exact().

+ Here is the call graph for this function:

◆ FIXEDFORMAT()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::FIXEDFORMAT (   $value,
  $decimals = 2,
  $no_commas = false 
)
static

FIXEDFORMAT.

@Deprecated 1.18.0

See also
Use the FIXEDFORMAT() method in the TextData\Format class instead
Parameters
mixed$valueValue to check
int$decimals
bool$no_commas
Returns
string

Definition at line 161 of file TextData.php.

162 {
163 return TextData\Format::FIXEDFORMAT($value, $decimals, $no_commas);
164 }
static FIXEDFORMAT($value, $decimals=2, $noCommas=false)
FIXEDFORMAT.
Definition: Format.php:59

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Format\FIXEDFORMAT().

+ Here is the call graph for this function:

◆ LEFT()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::LEFT (   $value = '',
  $chars = 1 
)
static

LEFT.

@Deprecated 1.18.0

See also
Use the left() method in the TextData\Extract class instead
Parameters
string$valueValue
int$charsNumber of characters
Returns
string

Definition at line 178 of file TextData.php.

179 {
180 return TextData\Extract::left($value, $chars);
181 }
static left($value='', $chars=1)
LEFT.
Definition: Extract.php:16

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Extract\left().

+ Here is the call graph for this function:

◆ LOWERCASE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::LOWERCASE (   $mixedCaseString)
static

LOWERCASE.

Converts a string value to upper case.

@Deprecated 1.18.0

See also
Use the lower() method in the TextData\CaseConvert class instead
Parameters
string$mixedCaseString
Returns
string

Definition at line 247 of file TextData.php.

248 {
249 return TextData\CaseConvert::lower($mixedCaseString);
250 }

References PhpOffice\PhpSpreadsheet\Calculation\TextData\CaseConvert\lower().

+ Here is the call graph for this function:

◆ MID()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::MID (   $value = '',
  $start = 1,
  $chars = null 
)
static

MID.

@Deprecated 1.18.0

See also
Use the mid() method in the TextData\Extract class instead
Parameters
string$valueValue
int$startStart character
int$charsNumber of characters
Returns
string

Definition at line 196 of file TextData.php.

197 {
198 return TextData\Extract::mid($value, $start, $chars);
199 }
static mid($value='', $start=1, $chars=null)
MID.
Definition: Extract.php:39
$start
Definition: bench.php:8

References $start, and PhpOffice\PhpSpreadsheet\Calculation\TextData\Extract\mid().

+ Here is the call graph for this function:

◆ NUMBERVALUE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::NUMBERVALUE (   $value = '',
  $decimalSeparator = null,
  $groupSeparator = null 
)
static

NUMBERVALUE.

@Deprecated 1.18.0

See also
Use the NUMBERVALUE() method in the TextData\Format class instead
Parameters
mixed$valueValue to check
string$decimalSeparatordecimal separator, defaults to locale defined value
string$groupSeparatorgroup/thosands separator, defaults to locale defined value
Returns
float|string

Definition at line 388 of file TextData.php.

389 {
390 return TextData\Format::NUMBERVALUE($value, $decimalSeparator, $groupSeparator);
391 }
static NUMBERVALUE($value='', $decimalSeparator=null, $groupSeparator=null)
NUMBERVALUE.
Definition: Format.php:162

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Format\NUMBERVALUE().

+ Here is the call graph for this function:

◆ PROPERCASE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::PROPERCASE (   $mixedCaseString)
static

PROPERCASE.

Converts a string value to upper case.

@Deprecated 1.18.0

See also
Use the proper() method in the TextData\CaseConvert class instead
Parameters
string$mixedCaseString
Returns
string

Definition at line 283 of file TextData.php.

284 {
285 return TextData\CaseConvert::proper($mixedCaseString);
286 }

References PhpOffice\PhpSpreadsheet\Calculation\TextData\CaseConvert\proper().

+ Here is the call graph for this function:

◆ REPLACE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::REPLACE (   $oldText,
  $start,
  $chars,
  $newText 
)
static

REPLACE.

@Deprecated 1.18.0

See also
Use the replace() method in the TextData\Replace class instead
Parameters
string$oldTextString to modify
int$startStart character
int$charsNumber of characters
string$newTextString to replace in defined position
Returns
string

Definition at line 302 of file TextData.php.

303 {
304 return TextData\Replace::replace($oldText, $start, $chars, $newText);
305 }
static replace($oldText, $start, $chars, $newText)
REPLACE.
Definition: Replace.php:17

References $start, and PhpOffice\PhpSpreadsheet\Calculation\TextData\Replace\replace().

Referenced by PhpOffice\PhpSpreadsheet\Calculation\TextData\Replace\substitute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RETURNSTRING()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::RETURNSTRING (   $testValue = '')
static

RETURNSTRING.

@Deprecated 1.18.0

See also
Use the test() method in the TextData\Text class instead
Parameters
mixed$testValueValue to check
Returns
null|string

Definition at line 337 of file TextData.php.

338 {
339 return TextData\Text::test($testValue);
340 }
static test($testValue='')
RETURNSTRING.
Definition: Text.php:49

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Text\test().

+ Here is the call graph for this function:

◆ RIGHT()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::RIGHT (   $value = '',
  $chars = 1 
)
static

RIGHT.

@Deprecated 1.18.0

See also
Use the right() method in the TextData\Extract class instead
Parameters
string$valueValue
int$charsNumber of characters
Returns
string

Definition at line 213 of file TextData.php.

214 {
215 return TextData\Extract::right($value, $chars);
216 }
static right($value='', $chars=1)
RIGHT.
Definition: Extract.php:62

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Extract\right().

+ Here is the call graph for this function:

◆ SEARCHINSENSITIVE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::SEARCHINSENSITIVE (   $needle,
  $haystack,
  $offset = 1 
)
static

SEARCHINSENSITIVE.

@Deprecated 1.18.0

See also
Use the insensitive() method in the TextData\Search class instead
Parameters
string$needleThe string to look for
string$haystackThe string in which to look
int$offsetOffset within $haystack
Returns
string

Definition at line 143 of file TextData.php.

144 {
145 return TextData\Search::insensitive($needle, $haystack, $offset);
146 }
static insensitive($needle, $haystack, $offset=1)
SEARCHINSENSITIVE.
Definition: Search.php:55

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Search\insensitive().

+ Here is the call graph for this function:

◆ SEARCHSENSITIVE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::SEARCHSENSITIVE (   $needle,
  $haystack,
  $offset = 1 
)
static

SEARCHSENSITIVE.

@Deprecated 1.18.0

See also
Use the sensitive() method in the TextData\Search class instead
Parameters
string$needleThe string to look for
string$haystackThe string in which to look
int$offsetOffset within $haystack
Returns
string

Definition at line 125 of file TextData.php.

126 {
127 return TextData\Search::sensitive($needle, $haystack, $offset);
128 }
static sensitive($needle, $haystack, $offset=1)
SEARCHSENSITIVE.
Definition: Search.php:20

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Search\sensitive().

+ Here is the call graph for this function:

◆ STRINGLENGTH()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::STRINGLENGTH (   $value = '')
static

STRINGLENGTH.

@Deprecated 1.18.0

See also
Use the length() method in the TextData\Text class instead
Parameters
string$valueValue
Returns
int

Definition at line 229 of file TextData.php.

230 {
231 return TextData\Text::length($value);
232 }
static length($value='')
STRINGLENGTH.
Definition: Text.php:15

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Text\length().

+ Here is the call graph for this function:

◆ SUBSTITUTE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::SUBSTITUTE (   $text = '',
  $fromText = '',
  $toText = '',
  $instance = 0 
)
static

SUBSTITUTE.

@Deprecated 1.18.0

See also
Use the substitute() method in the TextData\Replace class instead
Parameters
string$textValue
string$fromTextFrom Value
string$toTextTo Value
int$instanceInstance Number
Returns
string

Definition at line 321 of file TextData.php.

322 {
323 return TextData\Replace::substitute($text, $fromText, $toText, $instance);
324 }
static substitute($text='', $fromText='', $toText='', $instance=0)
SUBSTITUTE.
Definition: Replace.php:38
$text
Definition: errorreport.php:18

References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$instance, $text, and PhpOffice\PhpSpreadsheet\Calculation\TextData\Replace\substitute().

+ Here is the call graph for this function:

◆ TEXTFORMAT()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::TEXTFORMAT (   $value,
  $format 
)
static

TEXTFORMAT.

@Deprecated 1.18.0

See also
Use the TEXTFORMAT() method in the TextData\Format class instead
Parameters
mixed$valueValue to check
string$formatFormat mask to use
Returns
string

Definition at line 354 of file TextData.php.

355 {
356 return TextData\Format::TEXTFORMAT($value, $format);
357 }
static TEXTFORMAT($value, $format)
TEXTFORMAT.
Definition: Format.php:95
$format
Definition: metadata.php:141

References $format, and PhpOffice\PhpSpreadsheet\Calculation\TextData\Format\TEXTFORMAT().

+ Here is the call graph for this function:

◆ TEXTJOIN()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::TEXTJOIN (   $delimiter,
  $ignoreEmpty,
  $args 
)
static

TEXTJOIN.

@Deprecated 1.18.0

See also
Use the TEXTJOIN() method in the TextData\Concatenate class instead
Parameters
mixed$delimiter
mixed$ignoreEmpty
mixed$args
Returns
string

Definition at line 425 of file TextData.php.

426 {
427 return TextData\Concatenate::TEXTJOIN($delimiter, $ignoreEmpty, ...$args);
428 }
static TEXTJOIN($delimiter, $ignoreEmpty,... $args)
TEXTJOIN.
Definition: Concatenate.php:36
$delimiter
Definition: showstats.php:16

References $delimiter, and PhpOffice\PhpSpreadsheet\Calculation\TextData\Concatenate\TEXTJOIN().

+ Here is the call graph for this function:

◆ TRIMNONPRINTABLE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::TRIMNONPRINTABLE (   $stringValue = '')
static

TRIMNONPRINTABLE.

@Deprecated 1.18.0

See also
Use the nonPrintable() method in the TextData\Trim class instead
Parameters
mixed$stringValueValue to check
Returns
string

Definition at line 39 of file TextData.php.

40 {
41 return TextData\Trim::nonPrintable($stringValue);
42 }
static nonPrintable($stringValue='')
TRIMNONPRINTABLE.
Definition: Trim.php:19

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Trim\nonPrintable().

+ Here is the call graph for this function:

◆ TRIMSPACES()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::TRIMSPACES (   $stringValue = '')
static

TRIMSPACES.

@Deprecated 1.18.0

See also
Use the spaces() method in the TextData\Trim class instead
Parameters
mixed$stringValueValue to check
Returns
string

Definition at line 55 of file TextData.php.

56 {
57 return TextData\Trim::spaces($stringValue);
58 }
static spaces($stringValue='')
TRIMSPACES.
Definition: Trim.php:45

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Trim\spaces().

+ Here is the call graph for this function:

◆ UPPERCASE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::UPPERCASE (   $mixedCaseString)
static

UPPERCASE.

Converts a string value to upper case.

@Deprecated 1.18.0

See also
Use the upper() method in the TextData\CaseConvert class instead
Parameters
string$mixedCaseString
Returns
string

Definition at line 265 of file TextData.php.

266 {
267 return TextData\CaseConvert::upper($mixedCaseString);
268 }

References PhpOffice\PhpSpreadsheet\Calculation\TextData\CaseConvert\upper().

+ Here is the call graph for this function:

◆ VALUE()

static PhpOffice\PhpSpreadsheet\Calculation\TextData::VALUE (   $value = '')
static

VALUE.

@Deprecated 1.18.0

See also
Use the VALUE() method in the TextData\Format class instead
Parameters
mixed$valueValue to check
Returns
DateTimeInterface|float|int|string A string if arguments are invalid

Definition at line 370 of file TextData.php.

371 {
372 return TextData\Format::VALUE($value);
373 }

References PhpOffice\PhpSpreadsheet\Calculation\TextData\Format\VALUE().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: