File util/tag.lua

loveui is a love2d library to provide resuable GUI widgets to love2d developers.

Functions

matchtags (withtags, tags1) Returns whether withtags is a super-set of tags1.
sorttags (tags) Process a string of whitespace separated tags into a string of sorted tags separated by whitespace, so they can be stored as keys in tables.


Functions

matchtags (withtags, tags1)
Returns whether withtags is a super-set of tags1.

Parameters

  • withtags: A string of tags separated by whitespace.
  • tags1: A string of tags separated by whitespace.
sorttags (tags)
Process a string of whitespace separated tags into a string of sorted tags separated by whitespace, so they can be stored as keys in tables.

Parameters

  • tags: A string of tags separated by whitespace. A tag may contain any non-whitespace characters.

Return value:

a string of tags separated by whitespace.

Valid XHTML 1.0!