StringDataImpl

Engine/source/core/util/str.cpp

Struct with String::StringData's field so we can initialize this without a constructor.

More...

Public Attributes

mData [1]

Start of string data.

case-sensitive hash

case-insensitive hash

bool

If true, this string is interned in the string table.

String length in bytes excluding null.

Character count; varies from byte count for strings with multi-bytes characters.

String reference count; string is not refcounted if this is U32_MAX (necessary for thread-safety of interned strings and the empty string).

Detailed Description

Struct with String::StringData's field so we can initialize this without a constructor.

Public Attributes

StringChar mData [1]

Start of string data.

U32 mHashCase 

case-sensitive hash

U32 mHashNoCase 

case-insensitive hash

bool mIsInterned 

If true, this string is interned in the string table.

U32 mLength 

String length in bytes excluding null.

U32 mNumChars 

Character count; varies from byte count for strings with multi-bytes characters.

U32 mRefCount 

String reference count; string is not refcounted if this is U32_MAX (necessary for thread-safety of interned strings and the empty string).

UTF16 * mUTF16