System::Char::IsPunctuation‑metod

Char::IsPunctuation(char_t) method

Bestämmer om det specificerade tecknet klassificeras som ett interpunktionstecken.

static bool System::Char::IsPunctuation(char_t c)
ParameterTypeBeskrivning
cchar_tTecknet att testa

ReturnValue

Sant om det angivna tecknet är ett skiljetecken, annars – falskt.

Se även

Char::IsPunctuation(const char_t *, int) method

Bestämmer om tecknet på det specificerade indexet i den specificerade teckenbufferten klassificeras som ett interpunktionstecken.

static bool System::Char::IsPunctuation(const char_t *str, int idx)
ParameterTypeBeskrivning
strconst char_t *Pekare till början av teckenbufferten
idxintEtt nollbaserat index i den angivna bufferten för tecknet att testa

ReturnValue

Sant om tecknet på det angivna indexet är ett skiljetecken, annars – falskt.

Se även