Difference between revisions of "Module talk:SandboxUString"

From PKC
Jump to navigation Jump to search
Line 14: Line 14:
{{#invoke:SandboxUString|ustringchar}}
{{#invoke:SandboxUString|ustringchar}}
{{#invoke:SandboxUString|length}}
{{#invoke:SandboxUString|length}}
{{#invoke:SandboxUString|find}}
{{#invoke:SandboxUString|format}}
{{#invoke:SandboxUString|gmatch}}
{{#invoke:SandboxUString|gsub}}
{{#invoke:SandboxUString|len}}
{{#invoke:SandboxUString|lower}}
{{#invoke:SandboxUString|match}}
{{#invoke:SandboxUString|rep}}
{{#invoke:SandboxUString|reverse}}
{{#invoke:SandboxUString|sub}}
{{#invoke:SandboxUString|upper}}

Revision as of 15:42, 10 January 2022

The number of characters is:291

Show Code Test

/*^ABCDabc&-left&-right/*^D

Another Test

-- aString Some examples for punctuation:<, >, \\ // ' " .. ...
function p.greek_letter()
	cf = mw.getCurrentFrame()
	-- aString = "<h1>\\" .. mw.allToString(cf.args[1]) .. "</h1>"
	str = mw.getCurrentFrame().args[1]
	aString = cf:preprocess("firstStr"..str.."secondStr")
	return aString
end69

More Tests

byte
mw.ustring.byte('\') is 92
char
mw.ustring.char(92) is \
byte
mw.ustring.codepoint('张') is 24352
byte
mw.ustring.char(24352) is 张

Script error: The function "length" does not exist.