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

Breadcrumb

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

function Mbstring::getSubpart

3 calls to Mbstring::getSubpart()
Mbstring::mb_stristr in vendor/symfony/polyfill-mbstring/Mbstring.php
Mbstring::mb_strrchr in vendor/symfony/polyfill-mbstring/Mbstring.php
Mbstring::mb_strrichr in vendor/symfony/polyfill-mbstring/Mbstring.php

File

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

Class

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

Namespace

Symfony\Polyfill\Mbstring

Code

private static function getSubpart($pos, $part, $haystack, $encoding) {
    if (false === $pos) {
        return false;
    }
    if ($part) {
        return self::mb_substr($haystack, 0, $pos, $encoding);
    }
    return self::mb_substr($haystack, $pos, null, $encoding);
}

API Navigation

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