SString

Index

Static Functions Index

Function Name

Static Functions

MD5

static string MD5 (string input)

Calculates the MD5Sum of input and returns the result as a hexadecimal string

Parameter
Type
Description

md5 = Space.String.MD5('AString')

SHA1

static string SHA1 (string input)

Function Description

Parameter
Type
Description

sha1 = Space.String.SHA1('AString')

Replace

static string Replace (string old, string pattern, string replace)

Function Description

Parameter
Type
Description

replaced = Space.String.Replace('AString', 'APattern', 'AReplace')

GenerateGUID

static string GenerateGUID ()

Function Description

Parameter
Type
Description

guid = Space.String.GenerateGUID()

Base64Encode

static string Base64Encode (string input)

Converts input to Base64 and returns the result

Parameter
Type
Description

baseEncodeByte = Space.String.Base64Encode{117, 116, 32, 116, 100, 101})

Base64Decode

static string Base64Decode (string input)

Converts input from Base64 and returns the result

Parameter
Type
Description

baseDecodedStr = Space.String.Base64Decode('aW5wdXQgdG8gZW5jb2Rl')

GetBytes

static byte[] GetBytes (string input)

Converts input to bytes using UTF8 encoding

Parameter
Type
Description

stringAsByteArray = Space.String.GetBytes('A String')

GetString

static string GetString (byte[] bytes)

Converts input to a UTF8 string

Parameter
Type
Description

ByteArrayAsString = Space.String.GetString({115, 111, 109, 101, 32})

EncodeURL

static string EncodeURL (string input)

Function Description

Parameter
Type
Description

encodedURL = Space.String.EncodeURL('A String')

DecodeURL

static string DecodeURL (string input)

Function Description

Parameter
Type
Description

decodedURL = Space.String.DecodeURL('A String')

RegexMatchResult

static string RegexMatchResult (string input, string pattern, string replacement)

Function Description

Parameter
Type
Description

Space.Math.RegexMatchResult('astring', 'astring','astring')

Last updated

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.