英語版
このページの英語版を見る

dmd.common.charactertables

識別子に関連する文字一覧。
UAX31、C99、C11、および最も制限の少ないもの(すべて)をサポートする。

適用範囲 https://codecov.io/gh/dlang/dmd/src/master/src/dmd/common/charactertables.d

enum IdentifierTable: int;
UAX31
C99
C11
LR
最も制限の少ない別名 すべて
struct IdentifierCharLookup;
bool function(dchar) isStart;
bool function(dchar) isContinue;
static pure nothrow @nogc @safe IdentifierCharLookup forTable(IdentifierTable table);
テーブル名を指定してテーブルを検索する
pure nothrow @nogc @safe bool isAnyIdentifierCharacter(dchar c);
識別子の範囲や、それが開始/継続であるかどうかが気にならない場合に便利な関数。
Returns:
文字は、最も制限の少ないもののメンバーである。
tableall
Examples:
assert(isAnyIdentifierCharacter('ğ'));
pure nothrow @nogc @safe bool isAnyStart(dchar c);
識別子の範囲がどうなっているか気にしない場合に便利な関数。
Returns: 文字は制限的なメンバーである。
文字は制限的なメンバーである。
StartStart
Examples:
assert(isAnyStart('ğ'));
識別子の範囲がどうなっているか気にしない場所で使用するための便利な関数
pure nothrow @nogc @safe bool isAnyContinue(dchar c);
識別子の範囲がどうなっているか気にしない場合に便利な関数。
Returns: 文字は最も制限の緩いメンバーである。
文字は最も制限の緩いメンバーである。
convenience function文字
Examples:
assert(isAnyContinue('ğ'));
enum int LS;
UTF 行区切り文字
enum int PS;
UTF 段落区切り
pure nothrow @nogc @safe bool isoctal(const char c);
pure nothrow @nogc @safe bool ishex(const char c);
pure nothrow @nogc @safe bool isidchar(const char c);
pure nothrow @nogc @safe bool isZeroSecond(const char c);
pure nothrow @nogc @safe bool isDigitSecond(const char c);
pure nothrow @nogc @safe bool issinglechar(const char c);
pure nothrow @nogc @safe bool c_isxdigit(const int c);
pure nothrow @nogc @safe bool c_isalnum(const int c);