<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AUSERAPI_ChunkSplit</id>
	<title>WoW:USERAPI ChunkSplit - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AUSERAPI_ChunkSplit"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_ChunkSplit&amp;action=history"/>
	<updated>2026-05-22T12:34:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_ChunkSplit&amp;diff=17509&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page USERAPI ChunkSplit to WoW:USERAPI ChunkSplit without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_ChunkSplit&amp;diff=17509&amp;oldid=prev"/>
		<updated>2023-08-15T04:49:10Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:USERAPI_ChunkSplit&quot; title=&quot;WoW:USERAPI ChunkSplit&quot;&gt;USERAPI ChunkSplit&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:USERAPI_ChunkSplit&quot; title=&quot;WoW:USERAPI ChunkSplit&quot;&gt;USERAPI ChunkSplit&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:49, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_ChunkSplit&amp;diff=17508&amp;oldid=prev</id>
		<title>WoWWiki&gt;Charibot: catfix</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_ChunkSplit&amp;diff=17508&amp;oldid=prev"/>
		<updated>2008-07-09T00:43:02Z</updated>

		<summary type="html">&lt;p&gt;catfix&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:43, 9 July 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l57&quot;&gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:User &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Defined Functions&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:User &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;defined functions&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WoWWiki&gt;Charibot</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_ChunkSplit&amp;diff=17507&amp;oldid=prev</id>
		<title>WoWWiki&gt;Pcj at 16:37, 4 December 2007</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_ChunkSplit&amp;diff=17507&amp;oldid=prev"/>
		<updated>2007-12-04T16:37:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:37, 4 December 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{userfunc}} &amp;lt;!-- Leave this line in! --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{userfunc}} &amp;lt;!-- Leave this line in! --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;center&gt;&#039;&#039;&#039;ChunkSplit&#039;&#039;&#039; &#039;&#039;- by [[user:egingell|egingell]] -&#039;&#039;&amp;lt;/center&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Split a string into groups of &amp;quot;length&amp;quot; each ending with &amp;quot;endChars&amp;quot; (identical to the [http://php.net/chunk-split PHP function] of the same name).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Split a string into groups of &amp;quot;length&amp;quot; each ending with &amp;quot;endChars&amp;quot; (identical to the [http://php.net/chunk-split PHP function] of the same name).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WoWWiki&gt;Pcj</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_ChunkSplit&amp;diff=17506&amp;oldid=prev</id>
		<title>WoWWiki&gt;Egingell: New page: {{userfunc}} &lt;!-- Leave this line in! --&gt; &lt;center&gt;&#039;&#039;&#039;ChunkSplit&#039;&#039;&#039; &#039;&#039;- by egingell -&#039;&#039;&lt;/center&gt;  Split a string into groups of &quot;length&quot; each ending with &quot;endChars&quot; (ident...</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_ChunkSplit&amp;diff=17506&amp;oldid=prev"/>
		<updated>2007-09-30T11:48:36Z</updated>

		<summary type="html">&lt;p&gt;New page: {{userfunc}} &amp;lt;!-- Leave this line in! --&amp;gt; &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;ChunkSplit&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;- by &lt;a href=&quot;/mw1/index.php?title=User:Egingell&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Egingell (page does not exist)&quot;&gt;egingell&lt;/a&gt; -&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;  Split a string into groups of &amp;quot;length&amp;quot; each ending with &amp;quot;endChars&amp;quot; (ident...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{userfunc}} &amp;lt;!-- Leave this line in! --&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;ChunkSplit&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;- by [[user:egingell|egingell]] -&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Split a string into groups of &amp;quot;length&amp;quot; each ending with &amp;quot;endChars&amp;quot; (identical to the [http://php.net/chunk-split PHP function] of the same name).&lt;br /&gt;
&lt;br /&gt;
 table = &amp;#039;&amp;#039;&amp;amp;lt;PREFIX&amp;amp;gt;&amp;#039;&amp;#039;_ChunkSplit(string [, length [, endChars]])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Function Parameters ==&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
:;string : String - containing words that you would like split.&lt;br /&gt;
:;length : Integer - number of characters to split the string by. Default is 76.&lt;br /&gt;
:;endChars : String - Add this to the end of each chunk. Default is &amp;quot;\n&amp;quot;.&lt;br /&gt;
=== Returns ===&lt;br /&gt;
&lt;br /&gt;
:;chunks: Table - array of chunks&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 chunks = &amp;#039;&amp;#039;&amp;amp;lt;PREFIX&amp;amp;gt;&amp;#039;&amp;#039;_ChunkSplit(&amp;quot;World of Warcraft&amp;quot;, 2)&lt;br /&gt;
&lt;br /&gt;
====Result====&lt;br /&gt;
 chunks = {&lt;br /&gt;
     &amp;quot;Wo\n&amp;quot;,&lt;br /&gt;
     &amp;quot;rl\n&amp;quot;,&lt;br /&gt;
     &amp;quot;d \n&amp;quot;,&lt;br /&gt;
     &amp;quot;of\n&amp;quot;,&lt;br /&gt;
     &amp;quot; W\n&amp;quot;,&lt;br /&gt;
     &amp;quot;ar\n&amp;quot;,&lt;br /&gt;
     &amp;quot;cr\n&amp;quot;,&lt;br /&gt;
     &amp;quot;af\n&amp;quot;,&lt;br /&gt;
     &amp;quot;t\n&amp;quot;,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function &amp;amp;lt;PREFIX&amp;amp;gt;_ChunkSplit(string, length, endChars)&lt;br /&gt;
    if not string then&lt;br /&gt;
        return {}&lt;br /&gt;
    end&lt;br /&gt;
    -- Sanity check: make sure length is an integer.&lt;br /&gt;
    length = floor(tonumber(length))&lt;br /&gt;
    if not length then&lt;br /&gt;
        length = 76&lt;br /&gt;
    end&lt;br /&gt;
    if not endChars then&lt;br /&gt;
        endChars = &amp;quot;\n&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    local Table = {}&lt;br /&gt;
    for i=1, strlen(string), length do&lt;br /&gt;
        table.insert(Table, strsub(string, i, i + length) .. endChars)&lt;br /&gt;
    end&lt;br /&gt;
    return Table&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
[[Category:User Defined Functions]]&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Egingell</name></author>
	</entry>
</feed>