<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_StripWS</id>
		<title>Core Function StripWS - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_StripWS"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StripWS&amp;action=history"/>
		<updated>2026-05-19T03:19:59Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StripWS&amp;diff=4787&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StripWS&amp;diff=4787&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:35Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StripWS&amp;diff=4786&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StripWS&amp;diff=4786&amp;oldid=prev"/>
				<updated>2014-08-11T21:41:04Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:41, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StripWS&amp;diff=3141&amp;oldid=prev</id>
		<title>UberFoX: /* charList */</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StripWS&amp;diff=3141&amp;oldid=prev"/>
				<updated>2013-09-16T20:00:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;charList&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:00, 16 September 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;For example if the charList is&amp;#160; &amp;quot;-#&amp;quot; then - and # will be classed as whitespace and ONLY they will be classed as whitespace nothing else.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;For example if the charList is&amp;#160; &amp;quot;-#&amp;quot; then - and # will be classed as whitespace and ONLY they will be classed as whitespace nothing else.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Default: &amp;quot;\t\n\v\r\s\0&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Return Value ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Return Value ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StripWS&amp;diff=3140&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; StripWS( &lt;str&gt;, &lt;flags&gt;, &lt;charList&gt; ) &lt;/pre&gt;  === Description ===  Strips the white space in a string or given characters.  === Parameters ===  ==== str ====  The string to...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StripWS&amp;diff=3140&amp;oldid=prev"/>
				<updated>2013-09-16T19:38:47Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; StripWS( &amp;lt;str&amp;gt;, &amp;lt;flags&amp;gt;, &amp;lt;charList&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Strips the white space in a string or given characters.  === Parameters ===  ==== str ====  The string to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
StripWS( &amp;lt;str&amp;gt;, &amp;lt;flags&amp;gt;, &amp;lt;charList&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Strips the white space in a string or given characters.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== str ====&lt;br /&gt;
&lt;br /&gt;
The string to strip.&lt;br /&gt;
&lt;br /&gt;
==== flags ====&lt;br /&gt;
&lt;br /&gt;
Flag to indicate the type of stripping that should be performed (add the flags together for multiple operations):&lt;br /&gt;
&lt;br /&gt;
1 = strip leading white space&lt;br /&gt;
&lt;br /&gt;
2 = strip trailing white space&lt;br /&gt;
&lt;br /&gt;
4 = strip double (or more) spaces between words&lt;br /&gt;
&lt;br /&gt;
8 = strip all spaces (over-rides all other flags)&lt;br /&gt;
&lt;br /&gt;
So if you wanted to strip leading and trailing whitespace only you would enter the flag 1 | 2&lt;br /&gt;
&lt;br /&gt;
To strip every double space AND remove the trailing (but not the leading) you would do 2 | 4&lt;br /&gt;
&lt;br /&gt;
==== charList ====&lt;br /&gt;
&lt;br /&gt;
Optional; A string to use its characters as the character list used when splitting.&lt;br /&gt;
&lt;br /&gt;
By default the charList is the usual whitespace characters (see remarks) however if you set your own here you can be specific on what you want to call whitespace.&lt;br /&gt;
&lt;br /&gt;
For example if the charList is  &amp;quot;-#&amp;quot; then - and # will be classed as whitespace and ONLY they will be classed as whitespace nothing else.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Returns the new string stripped of the requested white space.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
Whitespace includes:&lt;br /&gt;
&lt;br /&gt;
Chr(9) thru Chr(13)&lt;br /&gt;
&lt;br /&gt;
Which are HorizontalTab, LineFeed, VerticalTab, FormFeed, and CarriageReturn. Whitespace also includes the null string ( Chr(0) ) and the standard space ( Chr(32) ).&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
echo( &amp;quot;'&amp;quot; . StripWS(&amp;quot;     Hello    World     &amp;quot;, 1) . &amp;quot;'\n&amp;quot; );&lt;br /&gt;
// 'Hello    World     '&lt;br /&gt;
echo( &amp;quot;'&amp;quot; . StripWS(&amp;quot;     Hello    World     &amp;quot;, 2) . &amp;quot;'\n&amp;quot; );&lt;br /&gt;
// '     Hello    World'&lt;br /&gt;
echo( &amp;quot;'&amp;quot; . StripWS(&amp;quot;     Hello    World     &amp;quot;, 1 | 2) . &amp;quot;'\n&amp;quot; );&lt;br /&gt;
// 'Hello    World'&lt;br /&gt;
echo( &amp;quot;'&amp;quot; . StripWS(&amp;quot;     Hello    World     &amp;quot;, 4) . &amp;quot;'\n&amp;quot; );&lt;br /&gt;
// ' Hello World '&lt;br /&gt;
echo( &amp;quot;'&amp;quot; . StripWS(&amp;quot;     Hello    World     &amp;quot;, 8) . &amp;quot;'\n&amp;quot; );&lt;br /&gt;
// 'HelloWorld'&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Custom charList&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
echo( &amp;quot;'&amp;quot; . StripWS(&amp;quot;-----Hello---World-------&amp;quot;, 1 | 2 | 4, &amp;quot;-&amp;quot;) . &amp;quot;'\n&amp;quot; );&lt;br /&gt;
// 'Hello-World'&lt;br /&gt;
echo( &amp;quot;'&amp;quot; . StripWS(&amp;quot;-----Hello---World-------&amp;quot;, 1 | 2, &amp;quot;-&amp;quot;) . &amp;quot;'\n&amp;quot; );&lt;br /&gt;
// 'Hello---World'&lt;br /&gt;
echo( &amp;quot;'&amp;quot; . StripWS(&amp;quot;-----Hello---World-------&amp;quot;, 8, &amp;quot;-&amp;quot;) . &amp;quot;'\n&amp;quot; );&lt;br /&gt;
// 'Helloorld'&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>