|
EvEmu
0.8.4
11 September 2021
|
Python wide string. More...
#include "PyRep.h"


Public Member Functions | |
| PyWString (const char *str, size_t len) | |
| template<typename Iter > | |
| PyWString (Iter first, Iter last) | |
| PyWString (const std::string &str) | |
| PyWString (const PyString &str) | |
| PyWString (const PyWString &oth) | |
| PyRep * | Clone () const |
| Clones object. More... | |
| bool | visit (PyVisitor &v) const |
| Visits object. More... | |
| const std::string & | content () const |
| Get the PyWString content. More... | |
| size_t | size () const |
| Obtains length of string. More... | |
| int32 | hash () const |
| virtual function to generate a hash value of a object. More... | |
Public Member Functions inherited from PyRep | |
| PyType | GetType () const |
| bool | IsInt () const |
| bool | IsLong () const |
| bool | IsFloat () const |
| bool | IsBool () const |
| bool | IsBuffer () const |
| bool | IsString () const |
| bool | IsWString () const |
| bool | IsToken () const |
| bool | IsTuple () const |
| bool | IsList () const |
| bool | IsDict () const |
| bool | IsNone () const |
| bool | IsSubStruct () const |
| bool | IsSubStream () const |
| bool | IsChecksumedStream () const |
| bool | IsObject () const |
| bool | IsObjectEx () const |
| bool | IsPackedRow () const |
| const char * | TypeString () const |
| PyInt * | AsInt () |
| const PyInt * | AsInt () const |
| PyLong * | AsLong () |
| const PyLong * | AsLong () const |
| PyFloat * | AsFloat () |
| const PyFloat * | AsFloat () const |
| PyBool * | AsBool () |
| const PyBool * | AsBool () const |
| PyBuffer * | AsBuffer () |
| const PyBuffer * | AsBuffer () const |
| PyString * | AsString () |
| const PyString * | AsString () const |
| PyWString * | AsWString () |
| const PyWString * | AsWString () const |
| PyToken * | AsToken () |
| const PyToken * | AsToken () const |
| PyTuple * | AsTuple () |
| const PyTuple * | AsTuple () const |
| PyList * | AsList () |
| const PyList * | AsList () const |
| PyDict * | AsDict () |
| const PyDict * | AsDict () const |
| PyNone * | AsNone () |
| const PyNone * | AsNone () const |
| PySubStruct * | AsSubStruct () |
| const PySubStruct * | AsSubStruct () const |
| PySubStream * | AsSubStream () |
| const PySubStream * | AsSubStream () const |
| PyChecksumedStream * | AsChecksumedStream () |
| const PyChecksumedStream * | AsChecksumedStream () const |
| PyObject * | AsObject () |
| const PyObject * | AsObject () const |
| PyObjectEx * | AsObjectEx () |
| const PyObjectEx * | AsObjectEx () const |
| PyPackedRow * | AsPackedRow () |
| const PyPackedRow * | AsPackedRow () const |
| void | Dump (FILE *into, const char *pfx) const |
| Dumps object to file. More... | |
| void | Dump (LogType type, const char *pfx) const |
| Dumps object to console. More... | |
Public Member Functions inherited from RefObject | |
| RefObject (size_t initRefCount) | |
| Initializes reference count. More... | |
| virtual | ~RefObject () |
| Destructor; must be virtual. More... | |
| size_t | GetCount () |
Protected Member Functions | |
| virtual | ~PyWString () |
Protected Member Functions inherited from PyRep | |
| PyRep (PyType t) | |
| PyRep (const PyRep &oth) | |
| PyRep (PyRep &&oth)=delete | |
| PyRep & | operator= (const PyRep &oth)=default |
| PyRep & | operator= (PyRep &&oth)=default |
| virtual | ~PyRep () |
Protected Member Functions inherited from RefObject | |
| void | IncRef () const |
| Increments reference count of object by one. More... | |
| void | DecRef () const |
| Decrements reference count of object by one. More... | |
Protected Attributes | |
| const std::string | mValue |
| int32 | mHashCache |
Protected Attributes inherited from PyRep | |
| const PyType | mType |
Protected Attributes inherited from RefObject | |
| size_t | mRefCount |
| Reference count of instance. More... | |
| bool | mDeleted |
Additional Inherited Members | |
Public Types inherited from PyRep | |
| enum | PyType { PyTypeMin = 0, PyTypeInt = 1, PyTypeLong = 2, PyTypeFloat = 3, PyTypeBool = 4, PyTypeBuffer = 5, PyTypeString = 6, PyTypeWString = 7, PyTypeToken = 8, PyTypeTuple = 9, PyTypeList = 10, PyTypeDict = 11, PyTypeNone = 12, PyTypeSubStruct = 13, PyTypeSubStream = 14, PyTypeChecksumedStream = 15, PyTypeObject = 16, PyTypeObjectEx = 17, PyTypePackedRow = 18, PyTypeError = 19 } |
| Python wire object types. More... | |
Static Public Member Functions inherited from PyRep | |
| static std::string | StringContent (PyRep *pRep) |
| static int64 | IntegerValue (PyRep *pRep) |
| static uint32 | IntegerValueU32 (PyRep *pRep) |
Python wide string.
Stores the string encoded in UTF-8. We don't use UCS-2 because MySQL client doesn't support it.
| PyWString::PyWString | ( | const char * | str, |
| size_t | len | ||
| ) |
Calls std::string( const char*, size_t ).
Definition at line 476 of file PyRep.cpp.
Referenced by Clone().

|
inline |
| PyWString::PyWString | ( | const std::string & | str | ) |
Calls std::string( const std::string& ).
Definition at line 478 of file PyRep.cpp.
| PyWString::PyWString | ( | const PyString & | str | ) |
Copy constructor.
Definition at line 481 of file PyRep.cpp.
| PyWString::PyWString | ( | const PyWString & | oth | ) |
|
inlineprotectedvirtual |
|
virtual |
Clones object.
Implements PyRep.
Definition at line 486 of file PyRep.cpp.
References PyWString().

|
inline |
Get the PyWString content.
Definition at line 499 of file PyRep.h.
References mValue.
Referenced by IsPrintable(), size(), PyRep::StringContent(), PyDumpVisitor::VisitWString(), and MarshalStream::VisitWString().

|
virtual |
virtual function to generate a hash value of a object.
virtual function to generate a hash value of a object to facilitate the various maps and checks.
Reimplemented from PyRep.
Definition at line 501 of file PyRep.cpp.
References mHashCache, and mValue.
| size_t PyWString::size | ( | ) | const |
Obtains length of string.
Definition at line 496 of file PyRep.cpp.
References content().

|
virtual |
Visits object.
| [in] | v | Visitor to be used for visiting. |
| true | Visit successful. |
| false | Error during visit. |
Implements PyRep.
Definition at line 491 of file PyRep.cpp.
References PyVisitor::VisitWString().

|
mutableprotected |
|
protected |