public static function Unicode::strtoupper in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Utility/Unicode.php \Drupal\Component\Utility\Unicode::strtoupper()
Converts a UTF-8 string to uppercase.
Parameters
string $text: The string to run the operation on.
Return value
string The string in uppercase.
14 calls to Unicode::strtoupper()
- ConvertImageEffect::getSummary in core/
modules/ image/ src/ Plugin/ ImageEffect/ ConvertImageEffect.php - Returns a render array summarizing the configuration of the image effect.
- EntityQueryTest::testCaseSensitivity in core/
modules/ system/ src/ Tests/ Entity/ EntityQueryTest.php - Test case sensitive and in-sensitive query conditions.
- GlossaryTest::testGlossaryView in core/
modules/ views/ src/ Tests/ GlossaryTest.php - Tests the default glossary view.
- HandlerBase::caseTransform in core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php - Transform a string by a certain method.
- HtmlToTextTest::testDrupalHtmlToTextBlockTagToNewline in core/
modules/ system/ src/ Tests/ Mail/ HtmlToTextTest.php - Test that text separated by block-level tags in HTML get separated by (at least) a newline in the plaintext version.
File
- core/
lib/ Drupal/ Component/ Utility/ Unicode.php, line 307 - Contains \Drupal\Component\Utility\Unicode.
Class
- Unicode
- Provides Unicode-related conversions and operations.
Namespace
Drupal\Component\UtilityCode
public static function strtoupper($text) {
if (static::getStatus() == static::STATUS_MULTIBYTE) {
return mb_strtoupper($text);
}
else {
// Use C-locale for ASCII-only uppercase.
$text = strtoupper($text);
// Case flip Latin-1 accented letters.
$text = preg_replace_callback('/\\xC3[\\xA0-\\xB6\\xB8-\\xBE]/', '\\Drupal\\Component\\Utility\\Unicode::caseFlip', $text);
return $text;
}
}