#include <canonical_tables.h>
Definition at line 88 of file canonical_tables.h.
◆ Hash() [1/4]
template<typename CharType >
static uword dart::SymbolTraits::Hash |
( |
const CharArray< CharType > & |
array | ) |
|
|
inlinestatic |
◆ Hash() [2/4]
◆ Hash() [3/4]
static uword dart::SymbolTraits::Hash |
( |
const Object & |
key | ) |
|
|
inlinestatic |
◆ Hash() [4/4]
◆ IsMatch() [1/4]
template<typename CharType >
static bool dart::SymbolTraits::IsMatch |
( |
const CharArray< CharType > & |
array, |
|
|
const Object & |
obj |
|
) |
| |
|
inlinestatic |
Definition at line 109 of file canonical_tables.h.
109 {
110 return array.Equals(String::Cast(obj));
111 }
◆ IsMatch() [2/4]
static bool dart::SymbolTraits::IsMatch |
( |
const ConcatString & |
concat, |
|
|
const Object & |
obj |
|
) |
| |
|
inlinestatic |
Definition at line 115 of file canonical_tables.h.
115 {
116 return concat.Equals(String::Cast(obj));
117 }
◆ IsMatch() [3/4]
static bool dart::SymbolTraits::IsMatch |
( |
const Object & |
a, |
|
|
const Object & |
b |
|
) |
| |
|
inlinestatic |
Definition at line 93 of file canonical_tables.h.
93 {
94 const String& a_str = String::Cast(
a);
95 const String& b_str = String::Cast(
b);
98 if (a_str.Hash() != b_str.Hash()) {
99 return false;
100 }
101 intptr_t a_len = a_str.Length();
102 if (a_len != b_str.Length()) {
103 return false;
104 }
105
106 return a_str.Equals(b_str, 0, a_len);
107 }
◆ IsMatch() [4/4]
static bool dart::SymbolTraits::IsMatch |
( |
const StringSlice & |
slice, |
|
|
const Object & |
obj |
|
) |
| |
|
inlinestatic |
Definition at line 112 of file canonical_tables.h.
112 {
113 return slice.Equals(String::Cast(obj));
114 }
◆ Name()
static const char * dart::SymbolTraits::Name |
( |
| ) |
|
|
inlinestatic |
◆ NewKey() [1/3]
template<typename CharType >
◆ NewKey() [2/3]
◆ NewKey() [3/3]
◆ ReportStats()
static bool dart::SymbolTraits::ReportStats |
( |
| ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: