• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

Functions
ParserUtils Namespace Reference

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
valthe 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
strthe 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)
See also
ParserUtils::intFromScriptValue()

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)
See also
ParserUtils::intFromScriptValue()

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.

This file is part of the KDE documentation.
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.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal