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

Breadcrumb

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

function CodePointString::codePointsAt

Overrides AbstractUnicodeString::codePointsAt

File

vendor/symfony/string/CodePointString.php, line 76

Class

CodePointString
Represents a string of Unicode code points encoded as UTF-8.

Namespace

Symfony\Component\String

Code

public function codePointsAt(int $offset) : array {
    $str = $offset ? $this->slice($offset, 1) : $this;
    return '' === $str->string ? [] : [
        mb_ord($str->string, 'UTF-8'),
    ];
}

API Navigation

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