SlideShare a Scribd company logo
Ring Documentation, Release 1.8
82.207 QXmlStreamEntityResolver Class
C++ Reference : http://doc.qt.io/qt-5/QXmlStreamEntityResolver.html
Parameters : void
82.208 QXmlStreamNamespaceDeclaration Class
C++ Reference : http://doc.qt.io/qt-5/QXmlStreamNamespaceDeclaration.html
Parameters : void
‱ QStringRef namespaceUri(void)
‱ QStringRef preïŹx(void)
82.209 QXmlStreamNotationDeclaration Class
C++ Reference : http://doc.qt.io/qt-5/QXmlStreamNotationDeclaration.html
Parameters : void
‱ QStringRef name(void)
‱ QStringRef publicId(void)
‱ QStringRef systemId(void)
82.210 QXmlStreamReader Class
C++ Reference : http://doc.qt.io/qt-5/QXmlStreamReader.html
Parameters : void
‱ void addData(QByteArray)
‱ void addData_2(QString)
‱ void addData_3(const char * data)
‱ void addExtraNamespaceDeclaration(QXmlStreamNamespaceDeclaration)
‱ void addExtraNamespaceDeclarations(QXmlStreamNamespaceDeclarations)
‱ bool atEnd(void)
‱ QXmlStreamAttributes attributes(void)
‱ qint64 characterOffset(void)
‱ void clear(void)
‱ qint64 columnNumber(void)
‱ QIODevice *device(void)
‱ QStringRef documentEncoding(void)
‱ QStringRef documentVersion(void)
82.207. QXmlStreamEntityResolver Class 1121
Ring Documentation, Release 1.8
‱ QStringRef dtdName(void)
‱ QStringRef dtdPublicId(void)
‱ QStringRef dtdSystemId(void)
‱ QXmlStreamEntityDeclarations entityDeclarations(void)
‱ QXmlStreamEntityResolver *entityResolver(void)
‱ Error error(void)
‱ QString errorString(void)
‱ bool hasError(void)
‱ bool isCDATA(void)
‱ bool isCharacters(void)
‱ bool isComment(void)
‱ bool isDTD(void)
‱ bool isEndDocument(void)
‱ bool isEndElement(void)
‱ bool isEntityReference(void)
‱ bool isProcessingInstruction(void)
‱ bool isStandaloneDocument(void)
‱ bool isStartDocument(void)
‱ bool isStartElement(void)
‱ bool isWhitespace(void)
‱ qint64 lineNumber(void)
‱ QStringRef name(void)
‱ QXmlStreamNamespaceDeclarations namespaceDeclarations(void)
‱ bool namespaceProcessing(void)
‱ QStringRef namespaceUri(void)
‱ QXmlStreamNotationDeclarations notationDeclarations(void)
‱ QStringRef preïŹx(void)
‱ QStringRef processingInstructionData(void)
‱ QStringRef processingInstructionTarget(void)
‱ QStringRef qualiïŹedName(void)
‱ void raiseError(QString)
‱ QString readElementText(QXmlStreamReader::ReadElementTextBehaviour)
‱ TokenType readNext(void)
‱ bool readNextStartElement(void)
‱ void setDevice(QIODevice *device)
‱ void setEntityResolver(QXmlStreamEntityResolver *resolver)
82.210. QXmlStreamReader Class 1122
Ring Documentation, Release 1.8
‱ void setNamespaceProcessing(bool)
‱ void skipCurrentElement(void)
‱ QStringRef text(void)
‱ QString tokenString(void)
‱ TokenType tokenType(void)
82.211 QXmlStreamWriter Class
C++ Reference : http://doc.qt.io/qt-5/QXmlStreamWriter.html
Parameters : void
‱ bool autoFormatting(void)
‱ int autoFormattingIndent(void)
‱ QTextCodec *codec(void)
‱ QIODevice *device(void)
‱ bool hasError(void)
‱ void setAutoFormatting(bool enable)
‱ void setAutoFormattingIndent(int spacesOrTabs)
‱ void setCodec(QTextCodec *codec)
‱ void setCodec_2(const char *codecName)
‱ void setDevice(QIODevice *device)
‱ void writeAttribute(QString, QString,QString)
‱ void writeAttribute_2(QString, QString)
‱ void writeAttribute_3(QXmlStreamAttribute)
‱ void writeAttributes(QXmlStreamAttributes)
‱ void writeCDATA(QString text)
‱ void writeCharacters(QString text)
‱ void writeComment(QString text)
‱ void writeCurrentToken(QXmlStreamReader reader)
‱ void writeDTD(QString dtd)
‱ void writeDefaultNamespace(QString namespaceUri)
‱ void writeEmptyElement(QString namespaceUri, QString name)
‱ void writeEmptyElement_2(QString qualiïŹedName)
‱ void writeEndDocument(void)
‱ void writeEndElement(void)
‱ void writeEntityReference(QString name)
‱ void writeNamespace(QString namespaceUri, QString preïŹx)
82.211. QXmlStreamWriter Class 1123
Ring Documentation, Release 1.8
‱ void writeProcessingInstruction(QString target, QString data)
‱ void writeStartDocument(QString version)
‱ void writeStartDocument_2(QString version, bool standalone)
‱ void writeStartDocument_3(void)
‱ void writeStartElement(QString namespaceUri, QString name)
‱ void writeStartElement_2(QString qualiïŹedName)
‱ void writeTextElement(QString namespaceUri, QString name, QString text)
‱ void writeTextElement_2(QString qualiïŹedName, QString text)
82.212 RingCodeHighlighter Class
Parameters : QTextDocument *parent
‱ void setColors(QColor c1,QColor c2,QColor c3,QColor c4,QColor c5)
‱ void setKeywordsBold(int nStatus)
82.212. RingCodeHighlighter Class 1124
CHAPTER
EIGHTYTHREE
RINGMURMURHASH FUNCTIONS REFERENCE
” MurmurHash is a non-cryptographic hash function suitable for general hash-based lookup. It was created by
Austin Appleby in 2008 and is currently hosted on Github along with its test suite named ‘SMHasher’. It also
exists in a number of variants,[5] all of which have been released into the public domain. The name comes from
two basic operations, multiply (MU) and rotate (R), used in its inner loop. “
Murmurhash extension is an extension written to implement a full implementation for the MurmurHash library.
Developer: Hassan Ahmed
83.1 MurmurHash1 functions
uint32_t murmurhash1(string key, int seed, [bool return_type]);
uint32_t murmurhash1_aligned(string key, int seed, [bool return_type]);
83.2 MurmurHash2 functions
uint32_t murmurhash2(string key, int seed, [bool return_type]);
uint32_t murmurhash2a(string key, int seed, [bool return_type]);
uint64_t murmurhash64a(string key, int seed, [bool return_type]);
uint64_t murmurhash64b(string key, int seed, [bool return_type]);
uint32_t murmurhash_neutral2(string key, int seed, [bool return_type]);
uint32_t murmurhash_aligned2(string key, int seed, [bool return_type]);
83.3 MurmurHash3 functions
uint32_t murmurhash3_x86_32(string key, int seed, [bool return_type]);
list murmurhash3_x86_128(string key, int seed, [bool return_type]);
list murmurhash3_x64_128(string key, int seed, [bool return_type]);
The third optional parameter is to set the type of the returned value, this parameter accepts a bool value [ true, false ],
true will return a Hex value, while false will return a integer value.
1125
Ring Documentation, Release 1.8
83.4 Example
load "murmurhashlib.ring"
key = "Ring Language"
see murmurhash3_x86_32(key, 0, 0) + nl // Output: 1894444853
see murmurhash3_x86_32(key, 0, 1) + nl // Output: 70eaef35
83.4. Example 1126
CHAPTER
EIGHTYFOUR
FOXRING FUNCTIONS REFERENCE
As a FoxPro developer, I started writing a class with some of the functions I used in FoxPro.
The goal is to create as many functions as possible with the behavior similar to FoxPro functions.
Developer: Jose Rosado
84.1 FoxRing functions
Function Name Description
frAbs() Returns the absolute value of the speciïŹed numeric expression.
frAddBs() Adds a backslash (if needed) to a path expression.
frALines() Creates an Array with the content of the speciïŹed string.
frAllTrim() Removes all leading and trailing spaces of the speciïŹed string.
frAsc() Returns the ANSI value for the leftmost character in a character expression.
frAt() Searches a character expression for the occurrence
of another character expression.
frAtC() Searches a character expression for the ocurrence of another character expression without
regard for the case of these two expressions.
frBetween() Determines whether the value of an expression is inclusively between the values of two
expressions of the same type.
frChr() Returns the character associated with the speciïŹed numeric ANSI code.
frEmpty() Determines whether an expression evaluates to empty.
frFile() Checks if a ïŹle exists on disk.
frFileToStr() Returns the contents of a ïŹle as a character string.
frForceExt() Returns a string with the old ïŹle name extension replaced by a new extension.
frForcePath() Returns a ïŹle name with a new path name substituted for the old one.
frIif() Returns one of two values depending on the value of a logical expression.
frInList() Determines whether an expression matches another expression in a list.
frInt() Evaluates a numeric expression and returns the integer portion of the expression.
frJustDrive() Returns the drive letter from a complete path.
frJustExt() Returns the characters of a ïŹle extension from a complete path.
frJustFName() Returns the ïŹle name portion of a complete path and ïŹle name.
frJustPath() Returns the path portion of a complete path and ïŹle name.
frJustStem() Returns the stem name (the ïŹle name before the extension)
from a complete path and ïŹle name.
frLen() Determines the number of characters in a character expression,
indicating the length of the expression.
Continued on next page
1127
Ring Documentation, Release 1.8
Table 84.1 – continued from previous page
Function Name Description
frListToString() Creates a string with the string elements of an Array.
frLTrim() Removes all leading spaces or parsing characters from the
speciïŹed character expression.
frPadL() Returns a string from an expression, padded with spaces or characters to a
speciïŹed length on the left side.
frPadR() Returns a string from an expression, padded with spaces or characters to a
speciïŹed length on the right side.
frProper() Returns from a character expression a string capitalized as
appropriate for proper names.
frReplicate() Returns a character string that contains a speciïŹed character
expression repeated a speciïŹed number of times.
frRTrim() Removes all trailing spaces or parsing characters from
the speciïŹed character expression.
frSetIfEmpty() Set a Value into a variable if the variable value is empty, null or zero.
frSetSeparatorTo() SpeciïŹes the character for the numeric place separator.
frSpace() Returns a character string composed of a speciïŹed number of spaces.
frStr() Returns the character equivalent of a numeric expression.
frStringToList() Creates a List with the content of the speciïŹed string.
frStrTran() Searches a character expression for a second character expression and
replaces each occurrence with a third character expression.
frStuff() Returns a new character string replaced by a speciïŹed number of
characteres in a character expression with another character expression.
frSubStr() Returns a character string from the given character expression,
starting at a speciïŹed position in the character
expression and continuing for a speciïŹed number of characters.
frTransform() Returns a character string from an expression in a
format determined by a format code.
frVal() Returns a numeric value from a character expression composed of numbers.
frVarType() Returns the data type of an expression.
84.2 frAbs() function
* Syntax : lnReturnValue = frAbs(tnExpression)
* Description : Returns the absolute value of the specified numeric expression.
* :
* Arguments : <tnExpression>
* : Specifies the numeric expression whose absolute value frAbs()
* : returns.
* Returns : <lnReturnValue>
* : Returns the absolute value of the specified numeric expression.
84.3 frAsc() function
* Syntax : lnReturnValue = frAsc(tcExpression)
* Description : Returns the ANSI value for the leftmost character in
* : a character expression.
* Arguments : <tcExpression>
* : Specifies the character expression containing the character
84.2. frAbs() function 1128
Ring Documentation, Release 1.8
* : whose ANSI value frAsc()
* : returns. Any characters after the first character in
* : tcExpression are ignored by frAsc().
* Returns : <lnReturnValue>
* : returns the position of the character in the character
* : table of the current code page.
* : Every character has a unique ANSI value in the
* : range from 0 to 255.
84.4 frAddBs() function
* Syntax : lcReturnValue = frAddBs(tcPath)
* Description : Adds a backslash (if needed) to a path expression.
* :
* Arguments : <tcPath>
* : Specifies the path name to which to add the backslash.
* :
* Returns : <lcReturnValue> The path with the backslash.
84.5 frAt() function
* Syntax : lnPos = frAt(tcToSearch, tcString, tnOccurrence)
* Description : Searches a character expression for the occurrence of
* : another character expression.
* : The search performed by frAt() is case-sensitive.
* :
* Arguments : <tcToSearch>
* : Specifies the character expression to search
* : for in <tcString>.
* : <tcString>
* : Specifies the character expression to search
* : for <tcToSearch>.
* : <tnOccurrence>
* : Specifies which occurrence, first, second, third,
* : and so on, of <tcToSearch> to search for
* : in <tcString>.
* : By default, frAt() searches for the first occurrence
* : of <tcToSearch> (tnOccurrence = 1).
* Returns : Numeric. frAt() returns an integer indicating the
* : position of the first character for a
* : character expression or memo field within another
* : character expression or memo field,
* : beginning from the leftmost character. If the
* : expression or field is not found, or if
* : <tnOccurrence> is greater than the number of
* : times <tcToSearch> occurs in <tcString>, frAt()
* : returns 0.
84.4. frAddBs() function 1129
Ring Documentation, Release 1.8
84.6 frAtC() function
* Syntax : lnPos = frAtC(tcToSearch, tcString, tnOccurrence)
* Description : Searches a character expression for the occurrence
* : of another character expression
* : without regard for the case of these two expressions.
* :
* Arguments : <tcToSearch>
* : Specifies the character expression to search
* : for in <tcString>.
* : <tcString>
* : Specifies the character expression to search
* : for <tcToSearch>.
* : <tnOccurrence>
* : Specifies which occurrence, first, second, third,
* : and so on, of <tcToSearch> to search for
* : in tcString.
* : By default, frAtC() searches for the first occurrence
* : of <tcToSearch> (tnOccurrence = 1).
* Returns : Numeric. frAtC() returns an integer indicating the
* : position of the first character for a
* : character expression or memo field within
* : another character expression or memo field,
* : beginning from the leftmost character. If the
* : expression or field is not found, or if
* : <tnOccurrence> is greater than the number of
* : times <tcToSearch> occurs in <tcString>, frAtC()
* : returns 0.
84.7 frChr() function
* Syntax : lcReturnValue = frChr(tnExpression)
* Description : Returns the character associated with the specified numeric
* : ANSI code.
* Arguments : <tnExpression>
* : Specifies a number between 0 and 255 whose equivalent ANSI
* : character frChr() returns.
* Returns : <lcReturnValue>
* : Returns a single character corresponding to the numeric
* : position of the character in the
* : character table of the current code page.
* :
* Remarks : tnExpression must be between 0 and 255
84.8 frEmpty() function
* Syntax : llReturnValue = frEmpty(tuExpression)
* Description : Determines whether an expression evaluates to empty.
* :
* Arguments : <tuExpression>
* : Specifies the expression that EMPTY() evaluates.
* : You can specify an expression with Character,
* : Numeric, or logical type.
84.6. frAtC() function 1130

More Related Content

PDF
The Ring programming language version 1.9 book - Part 123 of 210
PDF
C# 7.x What's new and what's coming with C# 8
PDF
C# - What's next
PDF
Hey! There's OCaml in my Rust!
PPTX
Introduction to Haskell: 2011-04-13
PPTX
Python 3.6 Features 20161207
PPTX
SQL Server Select Topics
PDF
АлДĐșŃĐ°ĐœĐŽŃ€ Đ“Ń€Đ°ĐœĐžĐœ, Đ€ŃƒĐœĐșŃ†ĐžĐŸĐœĐ°Đ»ŃŒĐœĐ°Ń 'Đ–ĐžĐ·ĐœŃŒ': ĐżĐ°Ń€Đ°Đ»Đ»Đ”Đ»ŃŒĐœŃ‹Đ” ĐșĐ»Đ”Ń‚ĐŸŃ‡ĐœŃ‹Đ” аĐČŃ‚ĐŸĐŒĐ°Ń‚Ń‹ Đž Đș...
The Ring programming language version 1.9 book - Part 123 of 210
C# 7.x What's new and what's coming with C# 8
C# - What's next
Hey! There's OCaml in my Rust!
Introduction to Haskell: 2011-04-13
Python 3.6 Features 20161207
SQL Server Select Topics
АлДĐșŃĐ°ĐœĐŽŃ€ Đ“Ń€Đ°ĐœĐžĐœ, Đ€ŃƒĐœĐșŃ†ĐžĐŸĐœĐ°Đ»ŃŒĐœĐ°Ń 'Đ–ĐžĐ·ĐœŃŒ': ĐżĐ°Ń€Đ°Đ»Đ»Đ”Đ»ŃŒĐœŃ‹Đ” ĐșĐ»Đ”Ń‚ĐŸŃ‡ĐœŃ‹Đ” аĐČŃ‚ĐŸĐŒĐ°Ń‚Ń‹ Đž Đș...

What's hot (20)

PDF
Functional Algebra: Monoids Applied
PDF
O caml2014 leroy-slides
 
PDF
The Ring programming language version 1.5.2 book - Part 78 of 181
PDF
Clojure intro
PDF
Trafaret: monads and python
PDF
Pune Clojure Course Outline
PDF
The best language in the world
PDF
Clojure: The Art of Abstraction
PDF
The Ring programming language version 1.8 book - Part 37 of 202
PPT
STL ALGORITHMS
PDF
Humble introduction to category theory in haskell
PDF
Why Haskell
PPT
Unit v
PPTX
Idiomatic C++
PDF
Functional programming in C++ LambdaNsk
KEY
Java Performance MythBusters
PDF
Tcl2012 8.6 Changes
 
PDF
The Design of the Scalaz 8 Effect System
PPT
Profiling and optimization
PPTX
Pattern Matching in Java 14
Functional Algebra: Monoids Applied
O caml2014 leroy-slides
 
The Ring programming language version 1.5.2 book - Part 78 of 181
Clojure intro
Trafaret: monads and python
Pune Clojure Course Outline
The best language in the world
Clojure: The Art of Abstraction
The Ring programming language version 1.8 book - Part 37 of 202
STL ALGORITHMS
Humble introduction to category theory in haskell
Why Haskell
Unit v
Idiomatic C++
Functional programming in C++ LambdaNsk
Java Performance MythBusters
Tcl2012 8.6 Changes
 
The Design of the Scalaz 8 Effect System
Profiling and optimization
Pattern Matching in Java 14
Ad

Similar to The Ring programming language version 1.8 book - Part 116 of 202 (20)

PDF
The Ring programming language version 1.7 book - Part 112 of 196
PDF
The Ring programming language version 1.9 book - Part 124 of 210
PDF
The Ring programming language version 1.10 book - Part 126 of 212
PDF
The Ring programming language version 1.8 book - Part 117 of 202
PDF
The Ring programming language version 1.9 book - Part 207 of 210
PDF
The Ring programming language version 1.10 book - Part 45 of 212
PDF
The Ring programming language version 1.10 book - Part 125 of 212
PDF
The Ring programming language version 1.8 book - Part 199 of 202
PDF
The Ring programming language version 1.9 book - Part 100 of 210
PDF
The Ring programming language version 1.10 book - Part 96 of 212
PDF
The Ring programming language version 1.2 book - Part 26 of 84
PDF
The Ring programming language version 1.8 book - Part 201 of 202
PDF
The Ring programming language version 1.9 book - Part 94 of 210
PDF
The Ring programming language version 1.3 book - Part 84 of 88
PDF
The Ring programming language version 1.5.3 book - Part 189 of 194
PDF
The Ring programming language version 1.5.2 book - Part 179 of 181
PDF
The Ring programming language version 1.8 book - Part 200 of 202
PDF
The Ring programming language version 1.5.4 book - Part 183 of 185
PDF
The Ring programming language version 1.5.1 book - Part 24 of 180
PDF
The Ring programming language version 1.10 book - Part 34 of 212
The Ring programming language version 1.7 book - Part 112 of 196
The Ring programming language version 1.9 book - Part 124 of 210
The Ring programming language version 1.10 book - Part 126 of 212
The Ring programming language version 1.8 book - Part 117 of 202
The Ring programming language version 1.9 book - Part 207 of 210
The Ring programming language version 1.10 book - Part 45 of 212
The Ring programming language version 1.10 book - Part 125 of 212
The Ring programming language version 1.8 book - Part 199 of 202
The Ring programming language version 1.9 book - Part 100 of 210
The Ring programming language version 1.10 book - Part 96 of 212
The Ring programming language version 1.2 book - Part 26 of 84
The Ring programming language version 1.8 book - Part 201 of 202
The Ring programming language version 1.9 book - Part 94 of 210
The Ring programming language version 1.3 book - Part 84 of 88
The Ring programming language version 1.5.3 book - Part 189 of 194
The Ring programming language version 1.5.2 book - Part 179 of 181
The Ring programming language version 1.8 book - Part 200 of 202
The Ring programming language version 1.5.4 book - Part 183 of 185
The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.10 book - Part 34 of 212
Ad

More from Mahmoud Samir Fayed (20)

PDF
The Ring programming language version 1.10 book - Part 212 of 212
PDF
The Ring programming language version 1.10 book - Part 211 of 212
PDF
The Ring programming language version 1.10 book - Part 210 of 212
PDF
The Ring programming language version 1.10 book - Part 208 of 212
PDF
The Ring programming language version 1.10 book - Part 207 of 212
PDF
The Ring programming language version 1.10 book - Part 205 of 212
PDF
The Ring programming language version 1.10 book - Part 206 of 212
PDF
The Ring programming language version 1.10 book - Part 204 of 212
PDF
The Ring programming language version 1.10 book - Part 203 of 212
PDF
The Ring programming language version 1.10 book - Part 202 of 212
PDF
The Ring programming language version 1.10 book - Part 201 of 212
PDF
The Ring programming language version 1.10 book - Part 200 of 212
PDF
The Ring programming language version 1.10 book - Part 199 of 212
PDF
The Ring programming language version 1.10 book - Part 198 of 212
PDF
The Ring programming language version 1.10 book - Part 197 of 212
PDF
The Ring programming language version 1.10 book - Part 196 of 212
PDF
The Ring programming language version 1.10 book - Part 195 of 212
PDF
The Ring programming language version 1.10 book - Part 194 of 212
PDF
The Ring programming language version 1.10 book - Part 193 of 212
PDF
The Ring programming language version 1.10 book - Part 192 of 212
The Ring programming language version 1.10 book - Part 212 of 212
The Ring programming language version 1.10 book - Part 211 of 212
The Ring programming language version 1.10 book - Part 210 of 212
The Ring programming language version 1.10 book - Part 208 of 212
The Ring programming language version 1.10 book - Part 207 of 212
The Ring programming language version 1.10 book - Part 205 of 212
The Ring programming language version 1.10 book - Part 206 of 212
The Ring programming language version 1.10 book - Part 204 of 212
The Ring programming language version 1.10 book - Part 203 of 212
The Ring programming language version 1.10 book - Part 202 of 212
The Ring programming language version 1.10 book - Part 201 of 212
The Ring programming language version 1.10 book - Part 200 of 212
The Ring programming language version 1.10 book - Part 199 of 212
The Ring programming language version 1.10 book - Part 198 of 212
The Ring programming language version 1.10 book - Part 197 of 212
The Ring programming language version 1.10 book - Part 196 of 212
The Ring programming language version 1.10 book - Part 195 of 212
The Ring programming language version 1.10 book - Part 194 of 212
The Ring programming language version 1.10 book - Part 193 of 212
The Ring programming language version 1.10 book - Part 192 of 212

Recently uploaded (20)

PPTX
Essential Infomation Tech presentation.pptx
PDF
System and Network Administration Chapter 2
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
ai tools demonstartion for schools and inter college
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
medical staffing services at VALiNTRY
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Nekopoi APK 2025 free lastest update
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
history of c programming in notes for students .pptx
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Essential Infomation Tech presentation.pptx
System and Network Administration Chapter 2
VVF-Customer-Presentation2025-Ver1.9.pptx
ai tools demonstartion for schools and inter college
Upgrade and Innovation Strategies for SAP ERP Customers
Understanding Forklifts - TECH EHS Solution
Internet Downloader Manager (IDM) Crack 6.42 Build 41
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Adobe Illustrator 28.6 Crack My Vision of Vector Design
medical staffing services at VALiNTRY
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Reimagine Home Health with the Power of Agentic AI​
Design an Analysis of Algorithms I-SECS-1021-03
Nekopoi APK 2025 free lastest update
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
How Creative Agencies Leverage Project Management Software.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
Design an Analysis of Algorithms II-SECS-1021-03
history of c programming in notes for students .pptx
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf

The Ring programming language version 1.8 book - Part 116 of 202

  • 1. Ring Documentation, Release 1.8 82.207 QXmlStreamEntityResolver Class C++ Reference : http://doc.qt.io/qt-5/QXmlStreamEntityResolver.html Parameters : void 82.208 QXmlStreamNamespaceDeclaration Class C++ Reference : http://doc.qt.io/qt-5/QXmlStreamNamespaceDeclaration.html Parameters : void ‱ QStringRef namespaceUri(void) ‱ QStringRef preïŹx(void) 82.209 QXmlStreamNotationDeclaration Class C++ Reference : http://doc.qt.io/qt-5/QXmlStreamNotationDeclaration.html Parameters : void ‱ QStringRef name(void) ‱ QStringRef publicId(void) ‱ QStringRef systemId(void) 82.210 QXmlStreamReader Class C++ Reference : http://doc.qt.io/qt-5/QXmlStreamReader.html Parameters : void ‱ void addData(QByteArray) ‱ void addData_2(QString) ‱ void addData_3(const char * data) ‱ void addExtraNamespaceDeclaration(QXmlStreamNamespaceDeclaration) ‱ void addExtraNamespaceDeclarations(QXmlStreamNamespaceDeclarations) ‱ bool atEnd(void) ‱ QXmlStreamAttributes attributes(void) ‱ qint64 characterOffset(void) ‱ void clear(void) ‱ qint64 columnNumber(void) ‱ QIODevice *device(void) ‱ QStringRef documentEncoding(void) ‱ QStringRef documentVersion(void) 82.207. QXmlStreamEntityResolver Class 1121
  • 2. Ring Documentation, Release 1.8 ‱ QStringRef dtdName(void) ‱ QStringRef dtdPublicId(void) ‱ QStringRef dtdSystemId(void) ‱ QXmlStreamEntityDeclarations entityDeclarations(void) ‱ QXmlStreamEntityResolver *entityResolver(void) ‱ Error error(void) ‱ QString errorString(void) ‱ bool hasError(void) ‱ bool isCDATA(void) ‱ bool isCharacters(void) ‱ bool isComment(void) ‱ bool isDTD(void) ‱ bool isEndDocument(void) ‱ bool isEndElement(void) ‱ bool isEntityReference(void) ‱ bool isProcessingInstruction(void) ‱ bool isStandaloneDocument(void) ‱ bool isStartDocument(void) ‱ bool isStartElement(void) ‱ bool isWhitespace(void) ‱ qint64 lineNumber(void) ‱ QStringRef name(void) ‱ QXmlStreamNamespaceDeclarations namespaceDeclarations(void) ‱ bool namespaceProcessing(void) ‱ QStringRef namespaceUri(void) ‱ QXmlStreamNotationDeclarations notationDeclarations(void) ‱ QStringRef preïŹx(void) ‱ QStringRef processingInstructionData(void) ‱ QStringRef processingInstructionTarget(void) ‱ QStringRef qualiïŹedName(void) ‱ void raiseError(QString) ‱ QString readElementText(QXmlStreamReader::ReadElementTextBehaviour) ‱ TokenType readNext(void) ‱ bool readNextStartElement(void) ‱ void setDevice(QIODevice *device) ‱ void setEntityResolver(QXmlStreamEntityResolver *resolver) 82.210. QXmlStreamReader Class 1122
  • 3. Ring Documentation, Release 1.8 ‱ void setNamespaceProcessing(bool) ‱ void skipCurrentElement(void) ‱ QStringRef text(void) ‱ QString tokenString(void) ‱ TokenType tokenType(void) 82.211 QXmlStreamWriter Class C++ Reference : http://doc.qt.io/qt-5/QXmlStreamWriter.html Parameters : void ‱ bool autoFormatting(void) ‱ int autoFormattingIndent(void) ‱ QTextCodec *codec(void) ‱ QIODevice *device(void) ‱ bool hasError(void) ‱ void setAutoFormatting(bool enable) ‱ void setAutoFormattingIndent(int spacesOrTabs) ‱ void setCodec(QTextCodec *codec) ‱ void setCodec_2(const char *codecName) ‱ void setDevice(QIODevice *device) ‱ void writeAttribute(QString, QString,QString) ‱ void writeAttribute_2(QString, QString) ‱ void writeAttribute_3(QXmlStreamAttribute) ‱ void writeAttributes(QXmlStreamAttributes) ‱ void writeCDATA(QString text) ‱ void writeCharacters(QString text) ‱ void writeComment(QString text) ‱ void writeCurrentToken(QXmlStreamReader reader) ‱ void writeDTD(QString dtd) ‱ void writeDefaultNamespace(QString namespaceUri) ‱ void writeEmptyElement(QString namespaceUri, QString name) ‱ void writeEmptyElement_2(QString qualiïŹedName) ‱ void writeEndDocument(void) ‱ void writeEndElement(void) ‱ void writeEntityReference(QString name) ‱ void writeNamespace(QString namespaceUri, QString preïŹx) 82.211. QXmlStreamWriter Class 1123
  • 4. Ring Documentation, Release 1.8 ‱ void writeProcessingInstruction(QString target, QString data) ‱ void writeStartDocument(QString version) ‱ void writeStartDocument_2(QString version, bool standalone) ‱ void writeStartDocument_3(void) ‱ void writeStartElement(QString namespaceUri, QString name) ‱ void writeStartElement_2(QString qualiïŹedName) ‱ void writeTextElement(QString namespaceUri, QString name, QString text) ‱ void writeTextElement_2(QString qualiïŹedName, QString text) 82.212 RingCodeHighlighter Class Parameters : QTextDocument *parent ‱ void setColors(QColor c1,QColor c2,QColor c3,QColor c4,QColor c5) ‱ void setKeywordsBold(int nStatus) 82.212. RingCodeHighlighter Class 1124
  • 5. CHAPTER EIGHTYTHREE RINGMURMURHASH FUNCTIONS REFERENCE ” MurmurHash is a non-cryptographic hash function suitable for general hash-based lookup. It was created by Austin Appleby in 2008 and is currently hosted on Github along with its test suite named ‘SMHasher’. It also exists in a number of variants,[5] all of which have been released into the public domain. The name comes from two basic operations, multiply (MU) and rotate (R), used in its inner loop. “ Murmurhash extension is an extension written to implement a full implementation for the MurmurHash library. Developer: Hassan Ahmed 83.1 MurmurHash1 functions uint32_t murmurhash1(string key, int seed, [bool return_type]); uint32_t murmurhash1_aligned(string key, int seed, [bool return_type]); 83.2 MurmurHash2 functions uint32_t murmurhash2(string key, int seed, [bool return_type]); uint32_t murmurhash2a(string key, int seed, [bool return_type]); uint64_t murmurhash64a(string key, int seed, [bool return_type]); uint64_t murmurhash64b(string key, int seed, [bool return_type]); uint32_t murmurhash_neutral2(string key, int seed, [bool return_type]); uint32_t murmurhash_aligned2(string key, int seed, [bool return_type]); 83.3 MurmurHash3 functions uint32_t murmurhash3_x86_32(string key, int seed, [bool return_type]); list murmurhash3_x86_128(string key, int seed, [bool return_type]); list murmurhash3_x64_128(string key, int seed, [bool return_type]); The third optional parameter is to set the type of the returned value, this parameter accepts a bool value [ true, false ], true will return a Hex value, while false will return a integer value. 1125
  • 6. Ring Documentation, Release 1.8 83.4 Example load "murmurhashlib.ring" key = "Ring Language" see murmurhash3_x86_32(key, 0, 0) + nl // Output: 1894444853 see murmurhash3_x86_32(key, 0, 1) + nl // Output: 70eaef35 83.4. Example 1126
  • 7. CHAPTER EIGHTYFOUR FOXRING FUNCTIONS REFERENCE As a FoxPro developer, I started writing a class with some of the functions I used in FoxPro. The goal is to create as many functions as possible with the behavior similar to FoxPro functions. Developer: Jose Rosado 84.1 FoxRing functions Function Name Description frAbs() Returns the absolute value of the speciïŹed numeric expression. frAddBs() Adds a backslash (if needed) to a path expression. frALines() Creates an Array with the content of the speciïŹed string. frAllTrim() Removes all leading and trailing spaces of the speciïŹed string. frAsc() Returns the ANSI value for the leftmost character in a character expression. frAt() Searches a character expression for the occurrence of another character expression. frAtC() Searches a character expression for the ocurrence of another character expression without regard for the case of these two expressions. frBetween() Determines whether the value of an expression is inclusively between the values of two expressions of the same type. frChr() Returns the character associated with the speciïŹed numeric ANSI code. frEmpty() Determines whether an expression evaluates to empty. frFile() Checks if a ïŹle exists on disk. frFileToStr() Returns the contents of a ïŹle as a character string. frForceExt() Returns a string with the old ïŹle name extension replaced by a new extension. frForcePath() Returns a ïŹle name with a new path name substituted for the old one. frIif() Returns one of two values depending on the value of a logical expression. frInList() Determines whether an expression matches another expression in a list. frInt() Evaluates a numeric expression and returns the integer portion of the expression. frJustDrive() Returns the drive letter from a complete path. frJustExt() Returns the characters of a ïŹle extension from a complete path. frJustFName() Returns the ïŹle name portion of a complete path and ïŹle name. frJustPath() Returns the path portion of a complete path and ïŹle name. frJustStem() Returns the stem name (the ïŹle name before the extension) from a complete path and ïŹle name. frLen() Determines the number of characters in a character expression, indicating the length of the expression. Continued on next page 1127
  • 8. Ring Documentation, Release 1.8 Table 84.1 – continued from previous page Function Name Description frListToString() Creates a string with the string elements of an Array. frLTrim() Removes all leading spaces or parsing characters from the speciïŹed character expression. frPadL() Returns a string from an expression, padded with spaces or characters to a speciïŹed length on the left side. frPadR() Returns a string from an expression, padded with spaces or characters to a speciïŹed length on the right side. frProper() Returns from a character expression a string capitalized as appropriate for proper names. frReplicate() Returns a character string that contains a speciïŹed character expression repeated a speciïŹed number of times. frRTrim() Removes all trailing spaces or parsing characters from the speciïŹed character expression. frSetIfEmpty() Set a Value into a variable if the variable value is empty, null or zero. frSetSeparatorTo() SpeciïŹes the character for the numeric place separator. frSpace() Returns a character string composed of a speciïŹed number of spaces. frStr() Returns the character equivalent of a numeric expression. frStringToList() Creates a List with the content of the speciïŹed string. frStrTran() Searches a character expression for a second character expression and replaces each occurrence with a third character expression. frStuff() Returns a new character string replaced by a speciïŹed number of characteres in a character expression with another character expression. frSubStr() Returns a character string from the given character expression, starting at a speciïŹed position in the character expression and continuing for a speciïŹed number of characters. frTransform() Returns a character string from an expression in a format determined by a format code. frVal() Returns a numeric value from a character expression composed of numbers. frVarType() Returns the data type of an expression. 84.2 frAbs() function * Syntax : lnReturnValue = frAbs(tnExpression) * Description : Returns the absolute value of the specified numeric expression. * : * Arguments : <tnExpression> * : Specifies the numeric expression whose absolute value frAbs() * : returns. * Returns : <lnReturnValue> * : Returns the absolute value of the specified numeric expression. 84.3 frAsc() function * Syntax : lnReturnValue = frAsc(tcExpression) * Description : Returns the ANSI value for the leftmost character in * : a character expression. * Arguments : <tcExpression> * : Specifies the character expression containing the character 84.2. frAbs() function 1128
  • 9. Ring Documentation, Release 1.8 * : whose ANSI value frAsc() * : returns. Any characters after the first character in * : tcExpression are ignored by frAsc(). * Returns : <lnReturnValue> * : returns the position of the character in the character * : table of the current code page. * : Every character has a unique ANSI value in the * : range from 0 to 255. 84.4 frAddBs() function * Syntax : lcReturnValue = frAddBs(tcPath) * Description : Adds a backslash (if needed) to a path expression. * : * Arguments : <tcPath> * : Specifies the path name to which to add the backslash. * : * Returns : <lcReturnValue> The path with the backslash. 84.5 frAt() function * Syntax : lnPos = frAt(tcToSearch, tcString, tnOccurrence) * Description : Searches a character expression for the occurrence of * : another character expression. * : The search performed by frAt() is case-sensitive. * : * Arguments : <tcToSearch> * : Specifies the character expression to search * : for in <tcString>. * : <tcString> * : Specifies the character expression to search * : for <tcToSearch>. * : <tnOccurrence> * : Specifies which occurrence, first, second, third, * : and so on, of <tcToSearch> to search for * : in <tcString>. * : By default, frAt() searches for the first occurrence * : of <tcToSearch> (tnOccurrence = 1). * Returns : Numeric. frAt() returns an integer indicating the * : position of the first character for a * : character expression or memo field within another * : character expression or memo field, * : beginning from the leftmost character. If the * : expression or field is not found, or if * : <tnOccurrence> is greater than the number of * : times <tcToSearch> occurs in <tcString>, frAt() * : returns 0. 84.4. frAddBs() function 1129
  • 10. Ring Documentation, Release 1.8 84.6 frAtC() function * Syntax : lnPos = frAtC(tcToSearch, tcString, tnOccurrence) * Description : Searches a character expression for the occurrence * : of another character expression * : without regard for the case of these two expressions. * : * Arguments : <tcToSearch> * : Specifies the character expression to search * : for in <tcString>. * : <tcString> * : Specifies the character expression to search * : for <tcToSearch>. * : <tnOccurrence> * : Specifies which occurrence, first, second, third, * : and so on, of <tcToSearch> to search for * : in tcString. * : By default, frAtC() searches for the first occurrence * : of <tcToSearch> (tnOccurrence = 1). * Returns : Numeric. frAtC() returns an integer indicating the * : position of the first character for a * : character expression or memo field within * : another character expression or memo field, * : beginning from the leftmost character. If the * : expression or field is not found, or if * : <tnOccurrence> is greater than the number of * : times <tcToSearch> occurs in <tcString>, frAtC() * : returns 0. 84.7 frChr() function * Syntax : lcReturnValue = frChr(tnExpression) * Description : Returns the character associated with the specified numeric * : ANSI code. * Arguments : <tnExpression> * : Specifies a number between 0 and 255 whose equivalent ANSI * : character frChr() returns. * Returns : <lcReturnValue> * : Returns a single character corresponding to the numeric * : position of the character in the * : character table of the current code page. * : * Remarks : tnExpression must be between 0 and 255 84.8 frEmpty() function * Syntax : llReturnValue = frEmpty(tuExpression) * Description : Determines whether an expression evaluates to empty. * : * Arguments : <tuExpression> * : Specifies the expression that EMPTY() evaluates. * : You can specify an expression with Character, * : Numeric, or logical type. 84.6. frAtC() function 1130