Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::Heap::ComplexString Struct Reference

#include <qv4string_p.h>

+ Inheritance diagram for QV4::Heap::ComplexString:
+ Collaboration diagram for QV4::Heap::ComplexString:

Public Member Functions

void init (String *l, String *n)
 
void init (String *ref, int from, int len)
 
- Public Member Functions inherited from QV4::Heap::String
const VTablevtable () const
 
void init (const QString &text)
 
void simplifyString () const
 
int length () const
 
std::size_t retainedTextSize () const
 
QString toQString () const
 
bool isEqualTo (const String *other) const
 
bool startsWithUpper () const
 
- Public Member Functions inherited from QV4::Heap::StringOrSymbol
void init ()
 
void init (QStringPrivate text)
 
void destroy ()
 
QStringPrivatetext () const
 
QString toQString () const
 
void createHashValue () const
 
unsigned hashValue () const
 
- Public Member Functions inherited from QV4::Heap::Base
voidoperator new (size_t)=delete
 
ReturnedValue asReturnedValue () const
 
void mark (QV4::MarkStack *markStack)
 
bool isMarked () const
 
void setMarkBit ()
 
bool inUse () const
 
voidoperator new (size_t, Managed *m)
 
voidoperator new (size_t, Base *m)
 
void operator delete (void *, Base *)
 
void init ()
 
void destroy ()
 
Q_ALWAYS_INLINE void _checkIsInitialized ()
 
Q_ALWAYS_INLINE void _checkIsDestroyed ()
 
Q_ALWAYS_INLINE void _setInitialized ()
 
Q_ALWAYS_INLINE void _setDestroyed ()
 

Public Attributes

Stringleft
 
Stringright
 
union { 
 
   int   largestSubLength 
 
   int   from 
 
};  
 
int len
 
- Public Attributes inherited from QV4::Heap::StringOrSymbol
struct { 
 
   unsigned char   data [sizeof(QStringPrivate)] 
 
textStorage 
 
PropertyKey identifier
 
uint subtype
 
uint stringHash
 
- Public Attributes inherited from QV4::Heap::Base
Pointer< InternalClass *, 0 > internalClass
 

Additional Inherited Members

- Public Types inherited from QV4::Heap::StringOrSymbol
enum  StringType {
  StringType_Symbol , StringType_Regular , StringType_ArrayIndex , StringType_Unknown ,
  StringType_AddedString , StringType_SubString , StringType_Complex = StringType_AddedString
}
 
- Static Public Member Functions inherited from QV4::Heap::String
static void markObjects (Heap::Base *that, MarkStack *markStack)
 
- Static Public Member Functions inherited from QV4::Heap::StringOrSymbol
static void markObjects (Heap::Base *that, MarkStack *markStack)
 
- Static Public Member Functions inherited from QV4::Heap::Base
static void markObjects (Base *, MarkStack *)
 

Detailed Description

Definition at line 118 of file qv4string_p.h.

Member Function Documentation

◆ init() [1/2]

void Heap::ComplexString::init ( String * l,
String * n )

Definition at line 62 of file qv4string.cpp.

References QV4::Heap::StringOrSymbol::init(), QV4::Heap::String::length(), qMax(), and QV4::Heap::StringOrSymbol::StringType_AddedString.

+ Here is the call graph for this function:

◆ init() [2/2]

void Heap::ComplexString::init ( Heap::String * ref,
int from,
int len )

Definition at line 84 of file qv4string.cpp.

References QV4::Heap::StringOrSymbol::init(), Q_ASSERT, and QV4::Heap::StringOrSymbol::StringType_SubString.

+ Here is the call graph for this function:

Member Data Documentation

◆ [union]

union { ... } QV4::Heap::ComplexString

◆ from

int QV4::Heap::ComplexString::from

Definition at line 125 of file qv4string_p.h.

Referenced by QV4::Heap::String::startsWithUpper().

◆ largestSubLength

int QV4::Heap::ComplexString::largestSubLength
mutable

Definition at line 124 of file qv4string_p.h.

◆ left

String* QV4::Heap::ComplexString::left
mutable

◆ len

int QV4::Heap::ComplexString::len

Definition at line 127 of file qv4string_p.h.

Referenced by QV4::Heap::String::startsWithUpper().

◆ right

String* QV4::Heap::ComplexString::right
mutable

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