clang API Documentation

Namespaces | Enumerations | Functions | Variables
CharInfo.h File Reference
#include "clang/Basic/LLVM.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/DataTypes.h"
Include dependency graph for CharInfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  clang
namespace  clang::charinfo

Enumerations

enum  {
  clang::charinfo::CHAR_HORZ_WS = 0x0001, clang::charinfo::CHAR_VERT_WS = 0x0002, clang::charinfo::CHAR_SPACE = 0x0004, clang::charinfo::CHAR_DIGIT = 0x0008,
  clang::charinfo::CHAR_XLETTER = 0x0010, clang::charinfo::CHAR_UPPER = 0x0020, clang::charinfo::CHAR_LOWER = 0x0040, clang::charinfo::CHAR_UNDER = 0x0080,
  clang::charinfo::CHAR_PERIOD = 0x0100, clang::charinfo::CHAR_RAWDEL = 0x0200, clang::charinfo::CHAR_PUNCT = 0x0400
}
enum  { clang::charinfo::CHAR_XUPPER = CHAR_XLETTER | CHAR_UPPER, clang::charinfo::CHAR_XLOWER = CHAR_XLETTER | CHAR_LOWER }

Functions

static LLVM_READNONE bool clang::isASCII (char c)
 Returns true if this is an ASCII character.
static LLVM_READONLY bool clang::isIdentifierHead (unsigned char c, bool AllowDollar=false)
static LLVM_READONLY bool clang::isIdentifierBody (unsigned char c, bool AllowDollar=false)
static LLVM_READONLY bool clang::isHorizontalWhitespace (unsigned char c)
static LLVM_READONLY bool clang::isVerticalWhitespace (unsigned char c)
static LLVM_READONLY bool clang::isWhitespace (unsigned char c)
static LLVM_READONLY bool clang::isDigit (unsigned char c)
 Return true if this character is an ASCII digit: [0-9].
static LLVM_READONLY bool clang::isLowercase (unsigned char c)
 Return true if this character is a lowercase ASCII letter: [a-z].
static LLVM_READONLY bool clang::isUppercase (unsigned char c)
 Return true if this character is an uppercase ASCII letter: [A-Z].
static LLVM_READONLY bool clang::isLetter (unsigned char c)
 Return true if this character is an ASCII letter: [a-zA-Z].
static LLVM_READONLY bool clang::isAlphanumeric (unsigned char c)
 Return true if this character is an ASCII letter or digit: [a-zA-Z0-9].
static LLVM_READONLY bool clang::isHexDigit (unsigned char c)
 Return true if this character is an ASCII hex digit: [0-9a-fA-F].
static LLVM_READONLY bool clang::isPunctuation (unsigned char c)
static LLVM_READONLY bool clang::isPrintable (unsigned char c)
static LLVM_READONLY bool clang::isPreprocessingNumberBody (unsigned char c)
static LLVM_READONLY bool clang::isRawStringDelimBody (unsigned char c)
 Return true if this is the body character of a C++ raw string delimiter.
static LLVM_READONLY char clang::toLowercase (char c)
static LLVM_READONLY char clang::toUppercase (char c)
static LLVM_READONLY bool clang::isValidIdentifier (StringRef S)

Variables

const uint16_t clang::charinfo::InfoTable [256]