LibDeformat-3.0

  • 2 pages found
NameAuthorLast updated byUpdated on
NameAuthorLast updated byUpdated on
API/ Jan 04, 2010
LibDeformat-3.0 ckknight ckknight Jan 04, 2010
Main ckknight ckknight Jan 04, 2010
This library will convert a fully-formatted text string to its original arguments given a format string. It is essentially the opposite of string.format. local LibDeformat = LibStub("LibDeformat-3.0") LibDeformat("Hello, friend", "Hello, %s") => "friend" LibDeformat("Hello, friend", "Hello, %1$s") => "friend" LibDeformat("Cost: $100", "Cost: $%d") => 100 -- note that it converted it back to a number LibDeformat("Cost: $100", "Cost: $%1$d") => 100 LibDeformat("Alpha, Bravo", "%s, %s") =>...
  • 2 pages found