[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/symfony/string/ -> AbstractString.php (summary)

Represents a string of abstract characters. Unicode defines 3 types of "characters" (bytes, code points and grapheme clusters). This class is the abstract type to use as a type-hint when the logic you want to implement doesn't care about the exact variant it deals with.

Author: Nicolas Grekas <[email protected]>
Author: Hugo Hamon <[email protected]>
File Size: 795 lines (20 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 32 functions

  unwrap()
  wrap()
  after()
  afterLast()
  before()
  beforeLast()
  bytesAt()
  collapseWhitespace()
  containsAny()
  endsWith()
  ensureEnd()
  ensureStart()
  equalsTo()
  ignoreCase()
  indexOf()
  indexOfLast()
  isEmpty()
  jsonSerialize()
  repeat()
  split()
  startsWith()
  toByteString()
  toCodePointString()
  toString()
  toUnicodeString()
  trimPrefix()
  trimSuffix()
  truncate()
  wordwrap()
  __sleep()
  __clone()
  __toString()

Functions
Functions that are not part of a class:

unwrap(array $values)   X-Ref
Unwraps instances of AbstractString back to strings.

return: string[]|array

wrap(array $values)   X-Ref
Wraps (and normalizes) strings in instances of AbstractString.

return: static[]|array

after($needle, bool $includeNeedle = false, int $offset = 0)   X-Ref

param: string|string[] $needle
return: static

afterLast($needle, bool $includeNeedle = false, int $offset = 0)   X-Ref

param: string|string[] $needle
return: static

before($needle, bool $includeNeedle = false, int $offset = 0)   X-Ref

param: string|string[] $needle
return: static

beforeLast($needle, bool $includeNeedle = false, int $offset = 0)   X-Ref

param: string|string[] $needle
return: static

bytesAt(int $offset)   X-Ref

return: int[]

collapseWhitespace()   X-Ref

return: static

containsAny($needle)   X-Ref

param: string|string[] $needle

endsWith($suffix)   X-Ref

param: string|string[] $suffix

ensureEnd(string $suffix)   X-Ref

return: static

ensureStart(string $prefix)   X-Ref

return: static

equalsTo($string)   X-Ref

param: string|string[] $string

ignoreCase()   X-Ref

return: static

indexOf($needle, int $offset = 0)   X-Ref

param: string|string[] $needle

indexOfLast($needle, int $offset = 0)   X-Ref

param: string|string[] $needle

isEmpty()   X-Ref
No description

jsonSerialize()   X-Ref

return: static

repeat(int $multiplier)   X-Ref

return: static

split(string $delimiter, int $limit = null, int $flags = null)   X-Ref

return: static[]

startsWith($prefix)   X-Ref

param: string|string[] $prefix

toByteString(string $toEncoding = null)   X-Ref

return: static

toCodePointString()   X-Ref
No description

toString()   X-Ref
No description

toUnicodeString()   X-Ref
No description

trimPrefix($prefix)   X-Ref

param: string|string[] $prefix
return: static

trimSuffix($suffix)   X-Ref

param: string|string[] $suffix
return: static

truncate(int $length, string $ellipsis = '', bool $cut = true)   X-Ref

return: static

wordwrap(int $width = 75, string $break = "\n", bool $cut = false)   X-Ref

return: static

__sleep()   X-Ref
No description

__clone()   X-Ref
No description

__toString()   X-Ref
No description



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer