<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://tibiacraft.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AText</id>
	<title>Module:Text - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://tibiacraft.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AText"/>
	<link rel="alternate" type="text/html" href="http://tibiacraft.com/index.php?title=Module:Text&amp;action=history"/>
	<updated>2026-07-17T04:56:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://tibiacraft.com/index.php?title=Module:Text&amp;diff=108&amp;oldid=prev</id>
		<title>Root: Created page with &quot;-- Source: https://phabricator.wikimedia.org/diffusion/ELUA/browse/master/includes/Engines/LuaCommon/lualib/mw.text.lua local p = {}  function p.gsplit( text, pattern, plain )   local s, l = 1, text:len()   return function ()     if s then       local e, n = text:find( pattern, s, plain )       local ret       if not e then         ret = text:sub( s )         s = nil       elseif n &lt; e then         -- Empty separator!         ret = text:sub( s, e )         if e &lt; l then...&quot;</title>
		<link rel="alternate" type="text/html" href="http://tibiacraft.com/index.php?title=Module:Text&amp;diff=108&amp;oldid=prev"/>
		<updated>2025-10-04T17:13:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Source: https://phabricator.wikimedia.org/diffusion/ELUA/browse/master/includes/Engines/LuaCommon/lualib/mw.text.lua local p = {}  function p.gsplit( text, pattern, plain )   local s, l = 1, text:len()   return function ()     if s then       local e, n = text:find( pattern, s, plain )       local ret       if not e then         ret = text:sub( s )         s = nil       elseif n &amp;lt; e then         -- Empty separator!         ret = text:sub( s, e )         if e &amp;lt; l then...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Source: https://phabricator.wikimedia.org/diffusion/ELUA/browse/master/includes/Engines/LuaCommon/lualib/mw.text.lua&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.gsplit( text, pattern, plain )&lt;br /&gt;
  local s, l = 1, text:len()&lt;br /&gt;
  return function ()&lt;br /&gt;
    if s then&lt;br /&gt;
      local e, n = text:find( pattern, s, plain )&lt;br /&gt;
      local ret&lt;br /&gt;
      if not e then&lt;br /&gt;
        ret = text:sub( s )&lt;br /&gt;
        s = nil&lt;br /&gt;
      elseif n &amp;lt; e then&lt;br /&gt;
        -- Empty separator!&lt;br /&gt;
        ret = text:sub( s, e )&lt;br /&gt;
        if e &amp;lt; l then&lt;br /&gt;
          s = e + 1&lt;br /&gt;
        else&lt;br /&gt;
          s = nil&lt;br /&gt;
        end&lt;br /&gt;
      else&lt;br /&gt;
        ret = e &amp;gt; s and text:sub( s, e - 1 ) or &amp;#039;&amp;#039;&lt;br /&gt;
        s = n + 1&lt;br /&gt;
      end&lt;br /&gt;
      return ret&lt;br /&gt;
    end&lt;br /&gt;
  end, nil, nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.split( text, pattern, plain )&lt;br /&gt;
  local ret = {}&lt;br /&gt;
  for m in p.gsplit( text, pattern, plain ) do&lt;br /&gt;
    ret[#ret+1] = m&lt;br /&gt;
  end&lt;br /&gt;
  return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.trim( s, charset )&lt;br /&gt;
  if not charset then&lt;br /&gt;
    return string.match( s, &amp;#039;^()%s*$&amp;#039; ) and &amp;#039;&amp;#039; or string.match( s, &amp;#039;^%s*(.*%S)&amp;#039; )&lt;br /&gt;
  else&lt;br /&gt;
    return ( string.gsub( s, &amp;#039;^[&amp;#039; .. charset .. &amp;#039;]*(.-)[&amp;#039; .. charset .. &amp;#039;]*$&amp;#039;, &amp;#039;%1&amp;#039; ) )&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Root</name></author>
	</entry>
</feed>