llvm::isASCII

isASCII overloads

Synopses

Declared in <llvm/ADT/StringExtras.h>

Checks whether all characters in S are ASCII.

bool
isASCII(llvm::StringRef S);
» more...

Checks whether character C is valid ASCII (high bit is zero).

bool
isASCII(char C);
» more...

Return Value

  • True if every character in S is ASCII.
  • True if C is a valid ASCII character.

Parameters

NameDescription
Sstring to test
Ccharacter to test