Functions - internal

compress

Compresses a directory.

compressToByteArray

Compresses a directory into a byte array.

contains
decompress

Decompresses a compressed file.

decompressFromByteArray

Decompresses a byte array into a directory.

equalsIgnoreCase
hasPrefix
hasSuffix
hashCode
lastIndexOf
matches
replace
replaceAll
replaceFirst
split
toBoolean
toByteArray
unescape

compress

(string dirPath, string destDir)

returns error?

Compresses a directory.

Parameters

  • dirPath string
  • Path of the directory to be compressed

  • destDir string
  • Path of the directory to place the compressed file

  • Return Type

    (error?)
  • An error if an error occurs during the compression process

compressToByteArray

(string dirPath)

returns byte[] | error

Compresses a directory into a byte array.

Parameters

  • dirPath string
  • Path of the directory to be compressed

  • Return Type

    (byte[] | error)
  • Compressed byte array of the file. An error if an error occurs during the compression process.

contains

(string src, string subString)

returns boolean

Parameters

decompress

(string dirPath, string destDir)

returns error?

Decompresses a compressed file.

Parameters

  • dirPath string
  • Path of the compressed file

  • destDir string
  • Path of the directory to decompress the file

  • Return Type

    (error?)
  • An error if an error occurs during the decompression process

decompressFromByteArray

(byte[] content, string destDir)

returns error?

Decompresses a byte array into a directory.

Parameters

  • content byte[]
  • Byte array of the compressed file

  • destDir string
  • Path of the directory to decompress the file

  • Return Type

    (error?)
  • An error if an error occurs during the decompression process

equalsIgnoreCase

(string src, string trg)

returns boolean

Parameters

hasPrefix

(string src, string prefix)

returns boolean

Parameters

hasSuffix

(string src, string suffix)

returns boolean

Parameters

hashCode

(string src)

returns int

Parameters

  • Return Type

    (int)

lastIndexOf

(string src, string subString)

returns int

Parameters

  • Return Type

    (int)

matches

(string src, string regex)

returns boolean

Parameters

replace

(string src, string regex, string replaceWith)

returns string

Parameters

replaceAll

(string src, string regex, string replaceWith)

returns string

Parameters

replaceFirst

(string src, string regex, string replaceWith)

returns string

Parameters

split

(string src, string regex)

returns string[]

Parameters

toBoolean

(string src)

returns boolean

Parameters

toByteArray

(string src, string encoding)

returns byte[]

Parameters

  • Return Type

    (byte[])

unescape

(string src)

returns string

Parameters