Static variables

@:value("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-+!@#$^")staticinlineread onlyBASE_70:String = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-+!@#$^"

@:value("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#")staticinlineread onlyBASE_85:String = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#"

@:value("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~")staticinlineread onlyCOOKIE_BASE90:String = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"

@:value("6ba7b810-9dad-11d1-80b4-00c04fd430c8")staticinlineread onlyDNS:String = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"

@:value("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ")staticinlineread onlyFLICKR_BASE58:String = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"

@:value("6ba7b812-9dad-11d1-80b4-00c04fd430c8")staticinlineread onlyISO_OID:String = "6ba7b812-9dad-11d1-80b4-00c04fd430c8"

@:value("abcdefghijklmnopqrstuvwxyz")staticinlineread onlyLOWERCASE_BASE26:String = "abcdefghijklmnopqrstuvwxyz"

@:value("_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")staticinlineread onlyNANO_ID_ALPHABET:String = "_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

@:value("00000000-0000-0000-0000-000000000000")staticinlineread onlyNIL:String = "00000000-0000-0000-0000-000000000000"

@:value("2346789ABCDEFGHJKLMNPQRTUVWXYZabcdefghijkmnpqrtwxyz")staticinlineread onlyNO_LOOK_ALIKES_BASE51:String = "2346789ABCDEFGHJKLMNPQRTUVWXYZabcdefghijkmnpqrtwxyz"

@:value("01")staticinlineread onlyNUMBERS_BIN:String = "01"

@:value("0123456789")staticinlineread onlyNUMBERS_DEC:String = "0123456789"

@:value("0123456789abcdef")staticinlineread onlyNUMBERS_HEX:String = "0123456789abcdef"

@:value("01234567")staticinlineread onlyNUMBERS_OCT:String = "01234567"

@:value("ABCDEFGHIJKLMNOPQRSTUVWXYZ")staticinlineread onlyUPPERCASE_BASE26:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

@:value("6ba7b811-9dad-11d1-80b4-00c04fd430c8")staticinlineread onlyURL:String = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"

@:value("6ba7b814-9dad-11d1-80b4-00c04fd430c8")staticinlineread onlyX500_DN:String = "6ba7b814-9dad-11d1-80b4-00c04fd430c8"

Static methods

staticconvert(number:String, fromAlphabet:String, toAlphabet:String):String

@:value({ fromAlphabet : NANO_ID_ALPHABET, separator : "-" })staticfromNano(nanoUuid:String, separator:String = "-", fromAlphabet:String = NANO_ID_ALPHABET):String

@:value({ fromAlphabet : FLICKR_BASE58, separator : "-" })staticfromShort(shortUuid:String, separator:String = "-", fromAlphabet:String = FLICKR_BASE58):String

statichexToUuid(hex:String, separator:String):String

@:value({ alphabet : NANO_ID_ALPHABET, len : 21 })staticnanoId(len:Int = 21, alphabet:String = NANO_ID_ALPHABET, ?randomFunc:() ‑> Int):String

@:value({ separator : "-" })staticparse(uuid:String, separator:String = "-"):Bytes

staticrandomByte():Int

staticrandomFromRange(min:Int, max:Int):Int

@:value({ toAlphabet : FLICKR_BASE58 })staticshort(toAlphabet:String = FLICKR_BASE58, ?randomFunc:() ‑> Int):String

@:value({ separator : "-" })staticstringify(data:Bytes, separator:String = "-"):String

@:value({ toAlphabet : NANO_ID_ALPHABET, separator : "-" })statictoNano(uuid:String, separator:String = "-", toAlphabet:String = NANO_ID_ALPHABET):String

@:value({ toAlphabet : FLICKR_BASE58, separator : "-" })statictoShort(uuid:String, separator:String = "-", toAlphabet:String = FLICKR_BASE58):String

@:value({ toAlphabet : FLICKR_BASE58, shortUuid : false, separator : "-", optNsecs : -1, msecs : -1, optClockSequence : -1, node : null })staticv1(?node:Bytes, optClockSequence:Int = -1, msecs:Float = -1, optNsecs:Int = -1, ?randomFunc:() ‑> Int, separator:String = "-", shortUuid:Bool = false, toAlphabet:String = FLICKR_BASE58):String

@:value({ toAlphabet : FLICKR_BASE58, shortUuid : false, separator : "-", namespace : "" })staticv3(name:String, namespace:String = "", separator:String = "-", shortUuid:Bool = false, toAlphabet:String = FLICKR_BASE58):String

@:value({ toAlphabet : FLICKR_BASE58, shortUuid : false, separator : "-", randBytes : null })staticv4(?randBytes:Bytes, ?randomFunc:() ‑> Int, separator:String = "-", shortUuid:Bool = false, toAlphabet:String = FLICKR_BASE58):String

@:value({ toAlphabet : FLICKR_BASE58, shortUuid : false, separator : "-", namespace : "" })staticv5(name:String, namespace:String = "", separator:String = "-", shortUuid:Bool = false, toAlphabet:String = FLICKR_BASE58):String

@:value({ separator : "-" })staticvalidate(uuid:String, separator:String = "-"):Bool

@:value({ separator : "-" })staticversion(uuid:String, separator:String = "-"):Int