[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

Represents a string of abstract Unicode 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 is Unicode-aware but doesn't care about code points vs grapheme clusters.

Author: Nicolas Grekas <[email protected]>
File Size: 620 lines (28 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 libraries/vendor/symfony/string/Resources/data/wcswidth_table_wide.php
 libraries/vendor/symfony/string/Resources/data/wcswidth_table_zero.php

Defines 25 functions

  fromCodePoints()
  ascii()
  camel()
  codePointsAt()
  folded()
  join()
  lower()
  match()
  normalize()
  padBoth()
  padEnd()
  padStart()
  replaceMatches()
  reverse()
  snake()
  title()
  trim()
  trimEnd()
  trimPrefix()
  trimStart()
  trimSuffix()
  upper()
  width()
  pad()
  wcswidth()

Functions
Functions that are not part of a class:

fromCodePoints(int ...$codes)   X-Ref

return: static

ascii(array $rules = [])   X-Ref
Generic UTF-8 to ASCII transliteration.

Install the intl extension for best results.

param: string[]|\Transliterator[]|\Closure[] $rules See "*-Latin" rules from Transliterator::listIDs()

camel()   X-Ref
No description

codePointsAt(int $offset)   X-Ref

return: int[]

folded(bool $compat = true)   X-Ref
No description

join(array $strings, string $lastGlue = null)   X-Ref
No description

lower()   X-Ref
No description

match(string $regexp, int $flags = 0, int $offset = 0)   X-Ref
No description

normalize(int $form = self::NFC)   X-Ref

return: static

padBoth(int $length, string $padStr = ' ')   X-Ref
No description

padEnd(int $length, string $padStr = ' ')   X-Ref
No description

padStart(int $length, string $padStr = ' ')   X-Ref
No description

replaceMatches(string $fromRegexp, $to)   X-Ref
No description

reverse()   X-Ref
No description

snake()   X-Ref
No description

title(bool $allWords = false)   X-Ref
No description

trim(string $chars = " \t\n\r\0\x0B\x0C\u{A0}\u{FEFF}")   X-Ref
No description

trimEnd(string $chars = " \t\n\r\0\x0B\x0C\u{A0}\u{FEFF}")   X-Ref
No description

trimPrefix($prefix)   X-Ref
No description

trimStart(string $chars = " \t\n\r\0\x0B\x0C\u{A0}\u{FEFF}")   X-Ref
No description

trimSuffix($suffix)   X-Ref
No description

upper()   X-Ref
No description

width(bool $ignoreAnsiDecoration = true)   X-Ref
No description

pad(int $len, self $pad, int $type)   X-Ref

return: static

wcswidth(string $string)   X-Ref
Based on https://github.com/jquast/wcwidth, a Python implementation of https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c.




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