class UnicodeCharSet
Declaration
class UnicodeCharSet { /* full declaration omitted */ };
Description
Holds a reference to an ordered array of UnicodeCharRange and allows to quickly check if a code point is contained in the set represented by this array.
Declared at: llvm/include/llvm/Support/UnicodeCharRanges.h:38
Member Variables
- private const llvm::sys::UnicodeCharSet::CharRanges Ranges
Method Overview
- public UnicodeCharSet(llvm::sys::UnicodeCharSet::CharRanges Ranges)
- public bool contains(uint32_t C) const
- private bool rangesAreValid() const
Methods
¶UnicodeCharSet(
llvm::sys::UnicodeCharSet::CharRanges Ranges)
UnicodeCharSet(
llvm::sys::UnicodeCharSet::CharRanges Ranges)
Declared at: llvm/include/llvm/Support/UnicodeCharRanges.h:57
Parameters
¶bool contains(uint32_t C) const
bool contains(uint32_t C) const
Description
Returns true if the character set contains the Unicode code point\p C.
Declared at: llvm/include/llvm/Support/UnicodeCharRanges.h:64
Parameters
- uint32_t C
¶bool rangesAreValid() const
bool rangesAreValid() const
Description
Returns true if each of the ranges is a proper closed range [min, max], and if the ranges themselves are ordered and non-overlapping.
Declared at: llvm/include/llvm/Support/UnicodeCharRanges.h:71