Module:String utilities/documentation

From Imperivm Romanvm
< Module:String utilities
Revision as of 01:19, 30 September 2021 by wiktionary>Crowley666 (Æ →‎Functions: fix L5 after L3)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Provides some utility functions for manipulating strings.

Functions

format

lua

This function, unlike lua and lua, takes just two parameters—a format string and a table—and replaces all instances of lua} in the format string with the table's entry for lua. The opening and closing brace characters can be escaped with {\op} and {\cl}, respectively. A table entry beginning with a slash can be escaped by doubling the initial slash.

Examples

  • lua
    produces: lua
  • lua
    produces: lua
    • Note that the single and double backslashes should be entered as double and quadruple backslashes when quoted in a literal string.