Difference between revisions of "Module talk:SandboxUString"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{#invoke:SandboxUString|countChar|{{:Module:SandboxShortCode}}}} | |||
=Another Test= | |||
{{#invoke:SandboxUString|luaSourceCodeText|{{:Module:SandboxShortCode}}}} | |||
=More Tests= | |||
{{#invoke:SandboxUString|byte}} | {{#invoke:SandboxUString|byte}} | ||
{{#invoke:SandboxUString|char}} | {{#invoke:SandboxUString|char}} | ||
Line 4: | Line 11: | ||
{{#invoke:SandboxUString|ustringchar}} | {{#invoke:SandboxUString|ustringchar}} | ||
{{#invoke:SandboxUString|length}} | {{#invoke:SandboxUString|length}} | ||
Revision as of 07:40, 10 January 2022
The number of characters is:291
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.
Script error: The function "find" does not exist. Script error: The function "format" does not exist. Script error: The function "gmatch" does not exist.
- gsub
- string.gsub('This is a test', '%s', '-') is This-is-a-test
Script error: The function "len" does not exist. Script error: The function "lower" does not exist. Script error: The function "match" does not exist. Script error: The function "rep" does not exist. Script error: The function "reverse" does not exist. Script error: The function "sub" does not exist. Script error: The function "upper" does not exist.