#include <canonical_tables.h>
Definition at line 44 of file canonical_tables.h.
◆ StringSlice()
dart::StringSlice::StringSlice |
( |
const String & |
str, |
|
|
intptr_t |
begin_index, |
|
|
intptr_t |
length |
|
) |
| |
|
inline |
◆ Equals()
bool dart::StringSlice::Equals |
( |
const String & |
other | ) |
const |
|
inline |
Definition at line 51 of file canonical_tables.h.
51 {
53 if (other.Hash() != hash_) {
54 return false;
55 }
56 return other.Equals(str_, begin_index_, len_);
57 }
◆ Hash()
uword dart::StringSlice::Hash |
( |
| ) |
const |
|
inline |
◆ ToSymbol()
StringPtr dart::StringSlice::ToSymbol |
( |
| ) |
const |
Definition at line 46 of file symbols.cc.
46 {
47 if (is_all() && str_.
IsOld()) {
50 } else {
56 }
57}
void SetCanonical() const
static StringPtr SubString(const String &str, intptr_t begin_index, Heap::Space space=Heap::kNew)
The documentation for this class was generated from the following files: