public static function Unicode::getStatus in Plug 7
Gets the current status of unicode/multibyte support on this environment.
Return value
int The status of multibyte support. It can be one of:
- \Drupal\Component\Utility\Unicode::STATUS_MULTIBYTE Full unicode support using an extension.
- \Drupal\Component\Utility\Unicode::STATUS_SINGLEBYTE Standard PHP (emulated) unicode support.
- \Drupal\Component\Utility\Unicode::STATUS_ERROR An error occurred. No unicode support.
5 calls to Unicode::getStatus()
- Unicode::strlen in lib/
Drupal/ Component/ Utility/ Unicode.php - Counts the number of characters in a UTF-8 string.
- Unicode::strpos in lib/
Drupal/ Component/ Utility/ Unicode.php - Finds the position of the first occurrence of a string in another string.
- Unicode::strtolower in lib/
Drupal/ Component/ Utility/ Unicode.php - Converts a UTF-8 string to lowercase.
- Unicode::strtoupper in lib/
Drupal/ Component/ Utility/ Unicode.php - Converts a UTF-8 string to uppercase.
- Unicode::substr in lib/
Drupal/ Component/ Utility/ Unicode.php - Cuts off a piece of a string based on character indices and counts.
File
- lib/
Drupal/ Component/ Utility/ Unicode.php, line 114 - Contains \Drupal\Component\Utility\Unicode.
Class
- Unicode
- Provides Unicode-related conversions and operations.
Namespace
Drupal\Component\UtilityCode
public static function getStatus() {
return static::$status;
}