EvEmu
0.8.4
11 September 2021
|
Go to the source code of this file.
Macros | |
#define | CheckTypeRangeUnsigned(type, lower_bound, upper_bound) ( rep->Is##type() && (int64)rep->As##type()->value() >= lower_bound && (int64)rep->As##type()->value() <= upper_bound ) |
#define | CheckTypeRange(type, lower_bound, upper_bound) ( rep->Is##type() && rep->As##type()->value() >= lower_bound && rep->As##type()->value() <= upper_bound ) |
Functions | |
bool | IsPrintable (const PyString *str) |
Checks whether string is printable. More... | |
bool | IsPrintable (const PyWString *str) |
Checks whether string is printable. More... | |
bool | DBTYPE_IsCompatible (DBTYPE type, const PyRep *rep) |
#define CheckTypeRange | ( | type, | |
lower_bound, | |||
upper_bound | |||
) | ( rep->Is##type() && rep->As##type()->value() >= lower_bound && rep->As##type()->value() <= upper_bound ) |
Referenced by DBTYPE_IsCompatible().
#define CheckTypeRangeUnsigned | ( | type, | |
lower_bound, | |||
upper_bound | |||
) | ( rep->Is##type() && (int64)rep->As##type()->value() >= lower_bound && (int64)rep->As##type()->value() <= upper_bound ) |
Referenced by DBTYPE_IsCompatible().
Checks compatibility between DBTYPE and PyRep.
[in] | type | DBTYPE to check. |
[in] | rep | PyRep to check. |
Definition at line 42 of file EVEUtils.cpp.
References CheckTypeRange, CheckTypeRangeUnsigned, DBTYPE_BOOL, DBTYPE_BYTES, DBTYPE_CY, DBTYPE_EMPTY, DBTYPE_ERROR, DBTYPE_FILETIME, DBTYPE_I1, DBTYPE_I2, DBTYPE_I4, DBTYPE_I8, DBTYPE_R4, DBTYPE_R8, DBTYPE_STR, DBTYPE_UI1, DBTYPE_UI2, DBTYPE_UI4, DBTYPE_UI8, DBTYPE_WSTR, PyRep::IsBool(), PyRep::IsBuffer(), PyRep::IsNone(), PyRep::IsWString(), and EVEAPI::CacheStyles::Long.
Referenced by DBRowDescriptor::VerifyValue().
bool IsPrintable | ( | const PyString * | str | ) |
Checks whether string is printable.
[in] | str | String to be checked. |
true | The string is printable. |
false | The string is not printable. |
Definition at line 31 of file EVEUtils.cpp.
References PyString::content(), and IsPrintable().
Referenced by build_hex_line(), XMLPacketGen::FNameToDef(), IsPrintable(), PyDumpVisitor::VisitString(), and PyDumpVisitor::VisitWString().
bool IsPrintable | ( | const PyWString * | str | ) |
Checks whether string is printable.
[in] | str | String to be checked. |
true | The string is printable. |
false | The string is not printable. |
Definition at line 36 of file EVEUtils.cpp.
References PyWString::content(), and IsPrintable().