A fast, bit‐vector set of 8‐bit unsigned characters.

Synopsis

Declared in <absl/strings/charset.h>

class CharSet;

Member Functions

Name

Description

CharSet [constructor]

Constructors

contains

Tests whether the set contains a given character.

empty

Tests whether the set is empty.

Static Member Functions

Name

Description

AsciiAlphabet

The set of ASCII letters.

AsciiAlphanumerics

The set of ASCII letters and digits.

AsciiDigits

The set of ASCII decimal digits.

AsciiHexDigits

The set of ASCII hexadecimal digits.

AsciiLowercase

The set of ASCII lowercase letters.

AsciiPrintable

The set of printable ASCII characters.

AsciiPunctuation

The set of ASCII punctuation characters.

AsciiUppercase

The set of ASCII uppercase letters.

AsciiWhitespace

The set of ASCII whitespace characters.

Char

Containing only a single specified char.

Range

Containing all the chars in the closed interval [lo,hi].

Friends

Name

Description

absl::operator~

Computes the complement of a character set.

absl::operator|

Computes the union of two character sets.

absl::operator&

Computes the intersection of two character sets.

Created with MrDocs