<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl2%3AResources%3Ascript_modules%3Astringparsing</id>
	<title>Hpl2:Resources:script modules:stringparsing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl2%3AResources%3Ascript_modules%3Astringparsing"/>
	<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl2:Resources:script_modules:stringparsing&amp;action=history"/>
	<updated>2026-05-14T06:44:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.frictionalgames.com/page?title=Hpl2:Resources:script_modules:stringparsing&amp;diff=759&amp;oldid=prev</id>
		<title>Maintenance script: Upload from wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl2:Resources:script_modules:stringparsing&amp;diff=759&amp;oldid=prev"/>
		<updated>2020-07-09T13:48:22Z</updated>

		<summary type="html">&lt;p&gt;Upload from wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= String Parsing Functions =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following block of code is a set of String Parsing Functions arranged by Apjjm.  Note: These functions will be set out best using the [http://wiki.frictionalgames.com/hpl2/resources/improvnotepad Improved Notepad++ HPS Support].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These functions allow the user to convert a string either to an array of integers, an array of floats, or a single unsigned integer. There is full support for exponents, decimals and signs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Download the code ''' '''[http://pastebin.com/DrWswVXR here] ''' '''.''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Installation requires pasting the code either into your .hps file or an external file and utilising a [http://wiki.frictionalgames.com/hpl2/resources/preprocess Script Pre-Processer].&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
float[] parseStringToFloatArray(string &amp;amp;in asString)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Parses all floats out of a given string (The start of a new float is assumed when a non-numeric or unexpected character appears). Signed decimals (.) and exponents (E) are supported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
int[] parseStringToIntArray(string &amp;amp;in asString)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Parses all integers out of a given string (decimals are treated as an unexpected character, however a signs and an exponent (E) is supported). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
uint parseStringUInt(string &amp;amp;in asString)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Ignores all non-digit characters when parsing the string to construct a single unsigned integer. E.g. &amp;quot;123ab45&amp;quot; would return 12345, as would &amp;quot;12.3e-45&amp;quot;. This is much faster than the other two parsing routines.&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
		
	</entry>
</feed>