Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Mbstring.php

function Mbstring::mb_substitute_character

File

vendor/symfony/polyfill-mbstring/Mbstring.php, line 626

Class

Mbstring
Partial mbstring implementation in PHP, iconv based, UTF-8 centric.

Namespace

Symfony\Polyfill\Mbstring

Code

public static function mb_substitute_character($c = null) {
    if (null === $c) {
        return 'none';
    }
    if (0 === strcasecmp($c, 'none')) {
        return true;
    }
    if (80000 > \PHP_VERSION_ID) {
        return false;
    }
    if (\is_int($c) || 'long' === $c || 'entity' === $c) {
        return false;
    }
    throw new \ValueError('Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal