|
template<typename IsolateT > |
void | MakeThin (IsolateT *isolate, Tagged< String > canonical) |
|
template<typename Char > |
V8_INLINE base::Vector< const Char > | GetCharVector (const DisallowGarbageCollection &no_gc) |
|
template<typename Char > |
const Char * | GetDirectStringChars (const DisallowGarbageCollection &no_gc) const |
|
template<typename Char > |
const Char * | GetDirectStringChars (const DisallowGarbageCollection &no_gc, const SharedStringAccessGuardIfNeeded &access_guard) const |
|
const uint8_t * | AddressOfCharacterAt (uint32_t start_index, const DisallowGarbageCollection &no_gc) |
|
uint32_t | length () const |
|
uint32_t | length (AcquireLoadTag) const |
|
void | set_length (uint32_t hash) |
|
void | set_length (uint32_t hash, ReleaseStoreTag) |
|
bool | IsOneByteRepresentation () const |
|
bool | IsTwoByteRepresentation () const |
|
void | Set (uint32_t index, uint16_t value) |
|
V8_INLINE uint16_t | Get (uint32_t index) const |
|
V8_INLINE uint16_t | Get (uint32_t index, Isolate *isolate) const |
|
V8_INLINE uint16_t | Get (uint32_t index, LocalIsolate *local_isolate) const |
|
V8_INLINE uint16_t | Get (uint32_t index, const SharedStringAccessGuardIfNeeded &access_guard) const |
|
V8_EXPORT_PRIVATE V8_INLINE FlatContent | GetFlatContent (const DisallowGarbageCollection &no_gc) |
|
V8_EXPORT_PRIVATE V8_INLINE FlatContent | GetFlatContent (const DisallowGarbageCollection &no_gc, const SharedStringAccessGuardIfNeeded &) |
|
Tagged< String > | GetUnderlying () const |
|
bool | Equals (Tagged< String > other) const |
|
template<EqualityType kEqType = EqualityType::kWholeString, typename Char > |
bool | IsEqualTo (base::Vector< const Char > str, Isolate *isolate) const |
|
template<EqualityType kEqType = EqualityType::kWholeString, typename Char > |
bool | IsEqualTo (base::Vector< const Char > str) const |
|
template<EqualityType kEqType = EqualityType::kWholeString, typename Char > |
bool | IsEqualTo (base::Vector< const Char > str, LocalIsolate *isolate) const |
|
V8_EXPORT_PRIVATE bool | HasOneBytePrefix (base::Vector< const char > str) |
|
V8_EXPORT_PRIVATE bool | IsOneByteEqualTo (base::Vector< const char > str) |
|
std::unique_ptr< char[]> | ToCString (uint32_t offset, uint32_t length, size_t *length_output=nullptr) |
|
V8_EXPORT_PRIVATE std::unique_ptr< char[]> | ToCString (size_t *length_output=nullptr) |
|
template<typename T > |
bool | MarkForExternalizationDuringGC (Isolate *isolate, T *resource) |
|
template<typename T > |
void | MakeExternalDuringGC (Isolate *isolate, T *resource) |
|
V8_EXPORT_PRIVATE bool | MakeExternal (Isolate *isolate, v8::String::ExternalStringResource *resource) |
|
V8_EXPORT_PRIVATE bool | MakeExternal (Isolate *isolate, v8::String::ExternalOneByteStringResource *resource) |
|
bool | SupportsExternalization (v8::String::Encoding) |
|
bool | AsArrayIndex (uint32_t *index) |
|
bool | AsIntegerIndex (size_t *index) |
|
V8_EXPORT_PRIVATE void | PrintOn (FILE *out) |
|
V8_EXPORT_PRIVATE void | PrintOn (std::ostream &out) |
|
const char * | PrefixForDebugPrint () const |
|
const char * | SuffixForDebugPrint () const |
|
void | StringShortPrint (StringStream *accumulator) |
|
void | PrintUC16 (std::ostream &os, int start=0, int end=-1) |
|
void | PrintUC16 (StringStream *accumulator, int start, int end) |
|
bool | IsFlat () const |
|
bool | IsShared () const |
|
template<typename TDispatcher > |
V8_INLINE auto | DispatchToSpecificType (TDispatcher &&dispatcher) const -> std::common_type_t< decltype(dispatcher(Tagged< SeqOneByteString >{})), decltype(dispatcher(Tagged< SeqTwoByteString >{})), decltype(dispatcher(Tagged< ExternalOneByteString >{})), decltype(dispatcher(Tagged< ExternalTwoByteString >{})), decltype(dispatcher(Tagged< ThinString >{})), decltype(dispatcher(Tagged< ConsString >{})), decltype(dispatcher(Tagged< SlicedString >{}))> |
|
template<String::EqualityType kEqType, typename Char > |
bool | IsEqualToImpl (base::Vector< const Char > str, const SharedStringAccessGuardIfNeeded &access_guard) const |
|
template<typename Char > |
bool | IsConsStringEqualToImpl (Tagged< ConsString > string, base::Vector< const Char > str, const SharedStringAccessGuardIfNeeded &access_guard) |
|
template<typename T , template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<T>, DirectHandle<String>>) |
HandleType< String > | Flatten (Isolate *isolate, HandleType< T > string, AllocationType allocation) |
|
template<typename T , template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<T>, DirectHandle<String>>) |
HandleType< String > | Flatten (LocalIsolate *isolate, HandleType< T > string, AllocationType allocation) |
|
template<> |
base::Vector< const uint8_t > | GetCharVector (const DisallowGarbageCollection &no_gc) |
|
template<> |
base::Vector< const base::uc16 > | GetCharVector (const DisallowGarbageCollection &no_gc) |
|
bool | HasHashCode () const |
|
bool | HasForwardingIndex (AcquireLoadTag) const |
|
bool | HasInternalizedForwardingIndex (AcquireLoadTag) const |
|
bool | HasExternalForwardingIndex (AcquireLoadTag) const |
|
uint32_t | raw_hash_field () const |
|
uint32_t | raw_hash_field (AcquireLoadTag) const |
|
void | set_raw_hash_field (uint32_t hash) |
|
void | set_raw_hash_field (uint32_t hash, ReleaseStoreTag) |
|
void | set_raw_hash_field_if_empty (uint32_t hash) |
|
uint32_t | hash () const |
|
bool | TryGetHash (uint32_t *hash) const |
|
bool | Equals (Tagged< Name > other) |
|
bool | IsArrayIndex () |
|
bool | AsArrayIndex (uint32_t *index) |
|
bool | AsIntegerIndex (size_t *index) |
|
bool | IsInteresting (Isolate *isolate) |
|
bool | IsPrivate () |
|
bool | IsPrivateName () |
|
bool | IsPrivateBrand () |
|
void | NameShortPrint () |
|
int | NameShortPrint (base::Vector< char > str) |
|
uint32_t | EnsureHash () |
|
uint32_t | EnsureHash (const SharedStringAccessGuardIfNeeded &) |
|
uint32_t | EnsureRawHash () |
|
uint32_t | EnsureRawHash (const SharedStringAccessGuardIfNeeded &) |
|
uint32_t | RawHash () |
|
| HeapObjectLayout ()=delete |
|
Tagged< Map > | map () const |
|
Tagged< Map > | map (AcquireLoadTag) const |
|
MapWord | map_word (RelaxedLoadTag) const |
|
void | set_map (Isolate *isolate, Tagged< Map > value) |
|
template<typename IsolateT > |
void | set_map (IsolateT *isolate, Tagged< Map > value, ReleaseStoreTag) |
|
template<typename IsolateT > |
void | set_map_safe_transition (IsolateT *isolate, Tagged< Map > value, ReleaseStoreTag) |
|
void | set_map_safe_transition_no_write_barrier (Isolate *isolate, Tagged< Map > value, RelaxedStoreTag=kRelaxedStore) |
|
template<typename IsolateT > |
void | set_map_after_allocation (IsolateT *isolate, Tagged< Map > value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER) |
|
void | set_map_no_write_barrier (Isolate *isolate, Tagged< Map > value, RelaxedStoreTag=kRelaxedStore) |
|
void | set_map_word_forwarded (Tagged< HeapObject > target_object, ReleaseStoreTag) |
|
void | set_map_word_forwarded (Tagged< HeapObject > target_object, RelaxedStoreTag) |
|
Address | ptr () const |
|
Address | address () const |
|
ReadOnlyRoots | EarlyGetReadOnlyRoots () const |
|
int | Size () const |
|
V8_EXPORT_PRIVATE int | SizeFromMap (Tagged< Map > map) const |
|
WriteBarrierMode | GetWriteBarrierMode (const DisallowGarbageCollection &promise) |
|
|
static bool | IsOneByteRepresentationUnderneath (Tagged< String > string) |
|
template<template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<String>, DirectHandle<String>>) |
static HandleType< Number > | ToNumber (Isolate *isolate, HandleType< String > subject) |
|
template<typename T , template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<T>, DirectHandle<String>>) |
static V8_INLINE HandleType< String > | Flatten (Isolate *isolate, HandleType< T > string, AllocationType allocation=AllocationType::kYoung) |
|
template<typename T , template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<T>, DirectHandle<String>>) |
static V8_INLINE HandleType< String > | Flatten (LocalIsolate *isolate, HandleType< T > string, AllocationType allocation=AllocationType::kYoung) |
|
template<typename T , template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<T>, DirectHandle<String>>) |
static HandleType< String > | Share (Isolate *isolate, HandleType< T > string) |
|
static V8_WARN_UNUSED_RESULT ComparisonResult | Compare (Isolate *isolate, DirectHandle< String > x, DirectHandle< String > y) |
|
static Tagged< Object > | IndexOf (Isolate *isolate, DirectHandle< Object > receiver, DirectHandle< Object > search, DirectHandle< Object > position) |
|
static int | IndexOf (Isolate *isolate, DirectHandle< String > receiver, DirectHandle< String > search, uint32_t start_index) |
|
static Tagged< Object > | LastIndexOf (Isolate *isolate, DirectHandle< Object > receiver, DirectHandle< Object > search, DirectHandle< Object > position) |
|
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< String > | GetSubstitution (Isolate *isolate, Match *match, DirectHandle< String > replacement, uint32_t start_index=0) |
|
static bool | Equals (Isolate *isolate, DirectHandle< String > one, DirectHandle< String > two) |
|
static bool | IsIdentifier (Isolate *isolate, DirectHandle< String > str) |
|
static int32_t | ToArrayIndex (Address addr) |
|
template<typename SinkCharT > |
static void | WriteToFlat (Tagged< String > source, SinkCharT *sink, uint32_t start, uint32_t length) |
|
template<typename SinkCharT > |
static void | WriteToFlat (Tagged< String > source, SinkCharT *sink, uint32_t start, uint32_t length, const SharedStringAccessGuardIfNeeded &access_guard) |
|
template<typename SinkCharT > |
static void | WriteToFlat2 (SinkCharT *dst, Tagged< ConsString > src, uint32_t src_index, uint32_t length, const SharedStringAccessGuardIfNeeded &aguard, const DisallowGarbageCollection &no_gc) |
|
static size_t | Utf8Length (Isolate *isolate, DirectHandle< String > string) |
|
static size_t | WriteUtf8 (Isolate *isolate, DirectHandle< String > string, char *buffer, size_t capacity, Utf8EncodingFlags flags, size_t *processed_characters_return=nullptr) |
|
static bool | IsWellFormedUnicode (Isolate *isolate, DirectHandle< String > string) |
|
static bool | IsAscii (const char *chars, uint32_t length) |
|
static bool | IsAscii (const uint8_t *chars, uint32_t length) |
|
static uint32_t | NonOneByteStart (const base::uc16 *chars, uint32_t length) |
|
static bool | IsOneByte (const base::uc16 *chars, uint32_t length) |
|
template<class Visitor > |
static Tagged< ConsString > | VisitFlat (Visitor *visitor, Tagged< String > string, int offset=0) |
|
template<class Visitor > |
static Tagged< ConsString > | VisitFlat (Visitor *visitor, Tagged< String > string, int offset, const SharedStringAccessGuardIfNeeded &access_guard) |
|
template<typename IsolateT > |
static LineEndsVector | CalculateLineEndsVector (IsolateT *isolate, DirectHandle< String > string, bool include_ending_line) |
|
template<typename IsolateT > |
static Handle< FixedArray > | CalculateLineEnds (IsolateT *isolate, DirectHandle< String > string, bool include_ending_line) |
|
static bool | IsInPlaceInternalizable (Tagged< String > string) |
|
static bool | IsInPlaceInternalizable (InstanceType instance_type) |
|
static bool | IsInPlaceInternalizableExcludingExternal (InstanceType instance_type) |
|
template<typename TDispatcher , typename... TArgs> |
static auto | DispatchToSpecificTypeWithoutCast (InstanceType instance_type, TArgs &&... args) |
|
static bool | Equals (Isolate *isolate, DirectHandle< Name > one, DirectHandle< Name > two) |
|
static bool | ContainsCachedArrayIndex (uint32_t hash) |
|
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< String > | ToFunctionName (Isolate *isolate, DirectHandle< Name > name) |
|
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< String > | ToFunctionName (Isolate *isolate, DirectHandle< Name > name, DirectHandle< String > prefix) |
|
static bool | IsHashFieldComputed (uint32_t raw_hash_field) |
|
static bool | IsHash (uint32_t raw_hash_field) |
|
static bool | IsIntegerIndex (uint32_t raw_hash_field) |
|
static bool | IsForwardingIndex (uint32_t raw_hash_field) |
|
static bool | IsInternalizedForwardingIndex (uint32_t raw_hash_field) |
|
static bool | IsExternalForwardingIndex (uint32_t raw_hash_field) |
|
static uint32_t | CreateHashFieldValue (uint32_t hash, HashFieldType type) |
|
static uint32_t | CreateInternalizedForwardingIndex (uint32_t index) |
|
static uint32_t | CreateExternalForwardingIndex (uint32_t index) |
|
Definition at line 113 of file string.h.