Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Minecraft Wiki
(Created page with "{{documentation header}} <!-- Documentation here --> This is an exact copy of the built-in <code>mw.text.gsplit</code>, <code>mw.text.split</code>, and <code>mw.text.trim</cod...")
 
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
<includeonly>
 
<includeonly>
 
<!-- Template categories/interwiki here -->
 
<!-- Template categories/interwiki here -->
  +
[[Category:Meta modules]]
  +
[[pt:Módulo:Text]]
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
 
<!-- Documentation categories/interwiki here -->
 
<!-- Documentation categories/interwiki here -->
  +
[[pt:Módulo:Text/doc]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:39, 22 September 2020

This is the documentation page. It will be transcluded into the main module page. See Template:Documentation for more information

This is an exact copy of the built-in mw.text.gsplit, mw.text.split, and mw.text.trim functions, just using the significantly faster string library instead of the ustring library. As such, this won't work properly if you're trying to split a string by unicode characters, or trim unicode characters from a string. Unicode characters being in the string should be fine though.