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

Breadcrumb

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

function IbanValidator::toBigInt

1 call to IbanValidator::toBigInt()
IbanValidator::validate in vendor/symfony/validator/Constraints/IbanValidator.php
Checks if the passed value is valid.

File

vendor/symfony/validator/Constraints/IbanValidator.php, line 267

Class

IbanValidator
@author Manuel Reinhard <manu@sprain.ch> @author Michael Schummel @author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Constraints

Code

private static function toBigInt(string $string) : string {
    $chars = str_split($string);
    $bigInt = '';
    foreach ($chars as $char) {
        // Convert uppercase characters to ordinals, starting with 10 for "A"
        if (ctype_upper($char)) {
            $bigInt .= \ord($char) - 55;
            continue;
        }
        // Simply append digits
        $bigInt .= $char;
    }
    return $bigInt;
}

API Navigation

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