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

Breadcrumb

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

function QuestionHelper::resetIOCodepage

Sets console I/O to the specified code page and converts the user input.

1 call to QuestionHelper::resetIOCodepage()
QuestionHelper::readInput in vendor/symfony/console/Helper/QuestionHelper.php
Reads one or more lines of input and returns what is read.

File

vendor/symfony/console/Helper/QuestionHelper.php, line 543

Class

QuestionHelper
The QuestionHelper class provides helpers to interact with the user.

Namespace

Symfony\Component\Console\Helper

Code

private function resetIOCodepage(int $cp, string|false $input) : string|false {
    if (0 !== $cp) {
        sapi_windows_cp_set($cp);
        if (false !== $input && '' !== $input) {
            $input = sapi_windows_cp_conv(sapi_windows_cp_get('oem'), $cp, $input);
        }
    }
    return $input;
}

API Navigation

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