Unicode::mimeHeaderEncode

public static Unicode::mimeHeaderEncode($string) Encodes MIME/HTTP headers that contain incorrectly encoded characters. For example, Unicode::mimeHeaderEncode('tést.txt') returns "=?UTF-8?B?dMOpc3QudHh0?=". See http://www.rfc-editor.org/rfc/rfc2047.txt for more information. Notes: Only encode strings that contain non-ASCII characters. We progressively cut-off a chunk with self::truncateBytes(). This ensures each chunk starts and ends on a character boundary. Using \n as the chunk separator may

Unicode::caseFlip

public static Unicode::caseFlip($matches) Flip U+C0-U+DE to U+E0-U+FD and back. Can be used as preg_replace callback. Parameters array $matches: An array of matches by preg_replace_callback(). Return value string The flipped text. File core/lib/Drupal/Component/Utility/Unicode.php, line 657 Class Unicode Provides Unicode-related conversions and operations. Namespace Drupal\Component\Utility Code public static function caseFlip($matches) { return $matches[0][0] . chr(ord($matches[0]

Unicode::encodingFromBOM

public static Unicode::encodingFromBOM($data) Decodes UTF byte-order mark (BOM) into the encoding's name. Parameters string $data: The data possibly containing a BOM. This can be the entire contents of a file, or just a fragment containing at least the first five bytes. Return value string|bool The name of the encoding, or FALSE if no byte order mark was present. File core/lib/Drupal/Component/Utility/Unicode.php, line 191 Class Unicode Provides Unicode-related conversions and operations

Unicode::$status

Holds the multibyte capabilities of the current environment. Type: int File core/lib/Drupal/Component/Utility/Unicode.php, line 95 Class Unicode Provides Unicode-related conversions and operations. Namespace Drupal\Component\Utility Code protected static $status = 0;

Unicode::check

public static Unicode::check() Checks for Unicode support in PHP and sets the proper settings if possible. Because of the need to be able to handle text in various encodings, we do not support mbstring function overloading. HTTP input/output conversion must be disabled for similar reasons. Return value string A string identifier of a failed multibyte extension check, if any. Otherwise, an empty string. File core/lib/Drupal/Component/Utility/Unicode.php, line 145 Class Unicode Provides Uni

Unicode::convertToUtf8

public static Unicode::convertToUtf8($data, $encoding) Converts data to UTF-8. Requires the iconv, GNU recode or mbstring PHP extension. Parameters string $data: The data to be converted. string $encoding: The encoding that the data is in. Return value string|bool Converted data or FALSE. File core/lib/Drupal/Component/Utility/Unicode.php, line 226 Class Unicode Provides Unicode-related conversions and operations. Namespace Drupal\Component\Utility Code public static function convert

unicode.inc

Provides Unicode-related conversions and operations. File core/includes/unicode.inc Functions Name Description drupal_xml_parser_create Prepares a new XML parser. unicode_requirements Returns Unicode library status and errors.

UndefinedLinkTemplateException

Defines an exception class for undefined link templates. Hierarchy class \Drupal\Core\Entity\Exception\UndefinedLinkTemplateException extends \RuntimeException File core/lib/Drupal/Core/Entity/Exception/UndefinedLinkTemplateException.php, line 8 Namespace Drupal\Core\Entity\Exception Members

Unicode

Provides Unicode-related conversions and operations. Hierarchy class \Drupal\Component\Utility\Unicode Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Component/Utility/Unicode.php, line 10 Namespace Drupal\Component\Utility Members Name Modifiers Type Description Unicode::$status protected static property Holds the multibyte capabilities of the current environment. Unicode::caseFlip public

Undefined

Undefined configuration element. Hierarchy class \Drupal\Core\TypedData\TypedData implements PluginInspectionInterface, TypedDataInterface uses StringTranslationTrait, TypedDataTraitclass \Drupal\Core\Config\Schema\Elementclass \Drupal\Core\Config\Schema\Undefined File core/lib/Drupal/Core/Config/Schema/Undefined.php, line 8 Namespace Drupal\Core\Config\Schema Members Name Modifiers Type Description Element::$value protected property The configuration value. Element: