Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
absl::strings_internal::Charmap Class Reference

#include <char_map.h>

Public Member Functions

constexpr Charmap ()
 
 Charmap (const char *str, int len)
 
 Charmap (const char *str)
 
constexpr bool contains (unsigned char c) const
 
bool IntersectsWith (const Charmap &c) const
 
bool IsZero () const
 

Static Public Member Functions

static constexpr Charmap Char (char x)
 
static constexpr Charmap FromString (const char *s)
 
static constexpr Charmap Range (char lo, char hi)
 

Private Member Functions

constexpr Charmap (uint64_t b0, uint64_t b1, uint64_t b2, uint64_t b3)
 
void SetChar (unsigned char c)
 

Static Private Member Functions

static constexpr uint64_t CharMaskForWord (unsigned char x, uint64_t word)
 
static constexpr uint64_t OpenRangeFromZeroForWord (uint64_t upper, uint64_t word)
 
static constexpr uint64_t RangeForWord (unsigned char lo, unsigned char hi, uint64_t word)
 

Private Attributes

uint64_t m_ [4]
 

Friends

constexpr Charmap operator & (const Charmap &a, const Charmap &b)
 
constexpr Charmap operator| (const Charmap &a, const Charmap &b)
 
constexpr Charmap operator~ (const Charmap &a)
 

Detailed Description

Definition at line 33 of file char_map.h.

Constructor & Destructor Documentation

◆ Charmap() [1/4]

constexpr absl::strings_internal::Charmap::Charmap ( )
inline

Definition at line 35 of file char_map.h.

◆ Charmap() [2/4]

absl::strings_internal::Charmap::Charmap ( const char *  str,
int  len 
)
inline

Definition at line 39 of file char_map.h.

◆ Charmap() [3/4]

absl::strings_internal::Charmap::Charmap ( const char *  str)
inlineexplicit

Definition at line 45 of file char_map.h.

◆ Charmap() [4/4]

constexpr absl::strings_internal::Charmap::Charmap ( uint64_t  b0,
uint64_t  b1,
uint64_t  b2,
uint64_t  b3 
)
inlineprivate

Definition at line 102 of file char_map.h.

Member Function Documentation

◆ Char()

static constexpr Charmap absl::strings_internal::Charmap::Char ( char  x)
inlinestatic

Definition at line 69 of file char_map.h.

◆ CharMaskForWord()

static constexpr uint64_t absl::strings_internal::Charmap::CharMaskForWord ( unsigned char  x,
uint64_t  word 
)
inlinestaticprivate

Definition at line 121 of file char_map.h.

◆ contains()

constexpr bool absl::strings_internal::Charmap::contains ( unsigned char  c) const
inline

Definition at line 49 of file char_map.h.

◆ FromString()

static constexpr Charmap absl::strings_internal::Charmap::FromString ( const char *  s)
inlinestatic

Definition at line 77 of file char_map.h.

◆ IntersectsWith()

bool absl::strings_internal::Charmap::IntersectsWith ( const Charmap c) const
inline

Definition at line 54 of file char_map.h.

◆ IsZero()

bool absl::strings_internal::Charmap::IsZero ( ) const
inline

Definition at line 61 of file char_map.h.

◆ OpenRangeFromZeroForWord()

static constexpr uint64_t absl::strings_internal::Charmap::OpenRangeFromZeroForWord ( uint64_t  upper,
uint64_t  word 
)
inlinestaticprivate

Definition at line 112 of file char_map.h.

◆ Range()

static constexpr Charmap absl::strings_internal::Charmap::Range ( char  lo,
char  hi 
)
inlinestatic

Definition at line 82 of file char_map.h.

◆ RangeForWord()

static constexpr uint64_t absl::strings_internal::Charmap::RangeForWord ( unsigned char  lo,
unsigned char  hi,
uint64_t  word 
)
inlinestaticprivate

Definition at line 105 of file char_map.h.

◆ SetChar()

void absl::strings_internal::Charmap::SetChar ( unsigned char  c)
inlineprivate

Definition at line 126 of file char_map.h.

Friends And Related Function Documentation

◆ operator &

constexpr Charmap operator& ( const Charmap a,
const Charmap b 
)
friend

Definition at line 87 of file char_map.h.

◆ operator|

constexpr Charmap operator| ( const Charmap a,
const Charmap b 
)
friend

Definition at line 92 of file char_map.h.

◆ operator~

constexpr Charmap operator~ ( const Charmap a)
friend

Definition at line 97 of file char_map.h.

Member Data Documentation

◆ m_

uint64_t absl::strings_internal::Charmap::m_[4]
private

Definition at line 130 of file char_map.h.


The documentation for this class was generated from the following file:


abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:23