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

Breadcrumb

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

function Iconv::pregOffset

1 call to Iconv::pregOffset()
Iconv::iconv_substr in vendor/symfony/polyfill-iconv/Iconv.php

File

vendor/symfony/polyfill-iconv/Iconv.php, line 723

Class

Iconv
iconv implementation in pure PHP, UTF-8 centric.

Namespace

Symfony\Polyfill\Iconv

Code

private static function pregOffset($offset) {
    $rx = [];
    $offset = (int) $offset;
    while ($offset > 65535) {
        $rx[] = '.{65535}';
        $offset -= 65535;
    }
    return implode('', $rx) . '.{' . $offset . '}';
}

API Navigation

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