V8 Project
v8::internal::RawStringComparator< Chars1, Chars2 > Class Template Reference
+ Inheritance diagram for v8::internal::RawStringComparator< Chars1, Chars2 >:
+ Collaboration diagram for v8::internal::RawStringComparator< Chars1, Chars2 >:

Static Public Member Functions

static bool compare (const Chars1 *a, const Chars2 *b, int len)
 

Detailed Description

template<typename Chars1, typename Chars2>
class v8::internal::RawStringComparator< Chars1, Chars2 >

Definition at line 8527 of file objects.cc.

Member Function Documentation

◆ compare()

template<typename Chars1 , typename Chars2 >
static bool v8::internal::RawStringComparator< Chars1, Chars2 >::compare ( const Chars1 *  a,
const Chars2 *  b,
int  len 
)
inlinestatic

Definition at line 8529 of file objects.cc.

8529  {
8530  DCHECK(sizeof(Chars1) != sizeof(Chars2));
8531  for (int i = 0; i < len; i++) {
8532  if (a[i] != b[i]) {
8533  return false;
8534  }
8535  }
8536  return true;
8537  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK.

Referenced by v8::internal::StringComparator::Equals().

+ Here is the caller graph for this function:

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