okteta
Functions | |
DataInformation::DataInformationEndianess | byteOrderFromString (const QString &string, const LoggerWithContext &logger) |
QString | byteOrderToString (DataInformation::DataInformationEndianess order) |
QScriptValue | functionSafeEval (QScriptEngine *engine, const QString &str) |
ParsedNumber< int > | intFromScriptValue (const QScriptValue &val) |
ParsedNumber< int > | intFromString (const QString &str) |
StringDataInformation::StringType | toStringEncoding (const QString &str, const LoggerWithContext &logger) |
ParsedNumber< quint64 > | uint64FromScriptValue (const QScriptValue &val) |
ParsedNumber< quint64 > | uint64FromString (const QString &str) |
ParsedNumber< uint > | uintFromScriptValue (const QScriptValue &val) |
ParsedNumber< uint > | uintFromString (const QString &str) |
Function Documentation
DataInformation::DataInformationEndianess ParserUtils::byteOrderFromString | ( | const QString & | string, |
const LoggerWithContext & | logger | ||
) |
Definition at line 67 of file parserutils.cpp.
QString ParserUtils::byteOrderToString | ( | DataInformation::DataInformationEndianess | order | ) |
Definition at line 137 of file parserutils.cpp.
QScriptValue ParserUtils::functionSafeEval | ( | QScriptEngine * | engine, |
const QString & | str | ||
) |
This essentially calls engine->evaluate(str), but ensures it can be a function (QTBUG-5757)
Definition at line 184 of file parserutils.cpp.
ParsedNumber< int > ParserUtils::intFromScriptValue | ( | const QScriptValue & | val | ) |
Checks whether the value is a number, and if it is converts it.
Since all script values use double internally, a valid number can be out of bounds, too
- Parameters
-
val the value to convert
- See also
- ParserUtils::intFromString()
Definition at line 86 of file parserutils.cpp.
ParsedNumber< int > ParserUtils::intFromString | ( | const QString & | str | ) |
If string starts with 0x, the remainder is interpreted as a hexadecimal (unsigned) number otherwise it will be parsed as a decimal number.
- Parameters
-
str the string to convert
- Returns
- a parsed number (check the isValid member to see if conversion succeeded)
Definition at line 27 of file parserutils.cpp.
StringDataInformation::StringType ParserUtils::toStringEncoding | ( | const QString & | str, |
const LoggerWithContext & | logger | ||
) |
Definition at line 148 of file parserutils.cpp.
ParsedNumber< quint64 > ParserUtils::uint64FromScriptValue | ( | const QScriptValue & | val | ) |
Definition at line 120 of file parserutils.cpp.
ParsedNumber< quint64 > ParserUtils::uint64FromString | ( | const QString & | str | ) |
- See also
- ParserUtils::intFromString()
Definition at line 56 of file parserutils.cpp.
ParsedNumber< uint > ParserUtils::uintFromScriptValue | ( | const QScriptValue & | val | ) |
Definition at line 103 of file parserutils.cpp.
ParsedNumber< uint > ParserUtils::uintFromString | ( | const QString & | str | ) |
- See also
- ParserUtils::intFromString()
Definition at line 45 of file parserutils.cpp.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.