proxygen
EqTraits Struct Reference

Public Member Functions

bool operator() (char *a, char *b)
 
bool operator() (char *a, const char &b)
 
bool operator() (char *a, const StringPiece b)
 
bool operator() (const char *a, const char *b)
 
bool operator() (const char *a, const char &b)
 
bool operator() (const char *a, const StringPiece b)
 

Detailed Description

Definition at line 333 of file AtomicHashArrayTest.cpp.

Member Function Documentation

bool EqTraits::operator() ( const char *  a,
const char *  b 
)
inline

Definition at line 121 of file AtomicHashMapTest.cpp.

References legalKey().

121  {
122  return legalKey(a) && (strcmp(a, b) == 0);
123  }
char b
static bool legalKey(const char *a)
char a
bool EqTraits::operator() ( const char *  a,
const char &  b 
)
inline

Definition at line 124 of file AtomicHashMapTest.cpp.

References legalKey().

124  {
125  return legalKey(a) && (a[0] != '\0') && (a[0] == b);
126  }
char b
static bool legalKey(const char *a)
char a
bool EqTraits::operator() ( const char *  a,
const StringPiece  b 
)
inline

Definition at line 127 of file AtomicHashMapTest.cpp.

References legalKey().

127  {
128  return legalKey(a) && (strlen(a) == b.size()) &&
129  (strcmp(a, b.begin()) == 0);
130  }
char b
static bool legalKey(const char *a)
char a
bool EqTraits::operator() ( char *  a,
char *  b 
)
inline

Definition at line 334 of file AtomicHashArrayTest.cpp.

References legalKey().

334  {
335  return legalKey(a) && (strcmp(a, b) == 0);
336  }
char b
static bool legalKey(char *a)
char a
bool EqTraits::operator() ( char *  a,
const char &  b 
)
inline

Definition at line 337 of file AtomicHashArrayTest.cpp.

References legalKey().

337  {
338  return legalKey(a) && (a[0] != '\0') && (a[0] == b);
339  }
char b
static bool legalKey(char *a)
char a
bool EqTraits::operator() ( char *  a,
const StringPiece  b 
)
inline

Definition at line 340 of file AtomicHashArrayTest.cpp.

References folly::Range< Iter >::begin(), legalKey(), and folly::Range< Iter >::size().

340  {
341  return legalKey(a) && (strlen(a) == b.size()) &&
342  (strncmp(a, b.begin(), b.size()) == 0);
343  }
static bool legalKey(char *a)
constexpr size_type size() const
Definition: Range.h:431
char a
constexpr Iter begin() const
Definition: Range.h:452

The documentation for this struct was generated from the following files: