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

Breadcrumb

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

function Idn::encodeDigit

Parameters

int $d:

bool $flag:

Return value

string

1 call to Idn::encodeDigit()
Idn::punycodeEncode in vendor/symfony/polyfill-intl-idn/Idn.php

File

vendor/symfony/polyfill-intl-idn/Idn.php, line 784

Class

Idn
@internal

Namespace

Symfony\Polyfill\Intl\Idn

Code

private static function encodeDigit($d, $flag) {
    return \chr($d + 22 + 75 * ($d < 26 ? 1 : 0) - (($flag ? 1 : 0) << 5));
}

API Navigation

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