Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

This article is a part of the documentation of the Sea function library

A library of Sea, Sea.string contains various string manipulation functions

Functions in Sea.string

  • byte (string) - returns the string in byte code.
  • byteSum (string) - returns the sum of the characters as bytes
  • toInt (string) - converts the string to an integer.
  • fromTime (string) - converts the string to generic h:m:s format
  • capitalizeWords (string) - converts a string of words to first-letter capitalized words
  • objectToString (string) - converts any type of lua object, except functions to a string
  • stringToObject (object) - converts a string created by objectToString into a lua object.
  • colorToString - converts a color table into an AARRGGBB string
  • stringToColor - converts an RRGGBB or AARRGGBB string into a Blizzard color table