classCharsets
final class Charsets
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
The character set names an underscore introducer may name.
_utf8mb4'text' is read as an introducer only when the word after the underscore is a character set MySQL knows; any other such word is an ordinary identifier.
Constants§
public const NAMES = ['armscii8', 'ascii', 'big5', 'binary', 'cp1250', 'cp1251', 'cp1256', 'cp1257',…Character set names MySQL 5.6 through 9.x compile in.
Methods§
public static function has(string $name): boolReports whether a word names a character set.
Parameters
$name | string | Word without the leading underscore |
Returns
bool True for a known character set, in any caseTest cases 1
CharsetsTest::testHascalls
Called from 1
Calls 3
- function-call
in_arrayline 38 - function-call
strtolowerline 38 - class-const Charsets::NAMES() line 38
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
CharsetsTest::testHascalls
Other tests reaching this symbol 2
MySqlLexerTestcallsWordScannerTestcalls