Skip to content

Unicode

Taiizor edited this page Mar 1, 2023 · 2 revisions

Skylark.Standard.Extension.Unicode.UnicodeExtension Class

The Skylark.Standard.Extension.Unicode.UnicodeExtension class is a static class that provides extension methods for converting text to ASCII and ASCII to text.

Namespace

Skylark.Standard.Extension.Unicode

Methods

TextToASCII(string Text = MUUM.Text, char Split = MUUM.Split, EET Encode = MUUM.Encode): string

Converts text to ASCII.

Parameters:

  • Text: (optional) The text to convert. Defaults to MUUM.Text.
  • Split: (optional) The character to use as a delimiter when splitting the bytes. Defaults to MUUM.Split.
  • Encode: (optional) The encoding to use. Defaults to MUUM.Encode.

Returns:

A string representing the ASCII bytes of the input text.

Exceptions:

  • E: If an error occurs during conversion, an exception is thrown.

TextToASCIIAsync(string Text = MUUM.Text, char Split = MUUM.Split, EET Encode = MUUM.Encode): Task<string>

Converts text to ASCII asynchronously.

Parameters:

  • Text: (optional) The text to convert. Defaults to MUUM.Text.
  • Split: (optional) The character to use as a delimiter when splitting the bytes. Defaults to MUUM.Split.
  • Encode: (optional) The encoding to use. Defaults to MUUM.Encode.

Returns:

A task representing the asynchronous operation that returns a string representing the ASCII bytes of the input text.

ASCIIToText(string ASCII = MUUM.ASCII, char Split = MUUM.Split, EET Encode = MUUM.Encode): string

Converts ASCII to text.

Parameters:

  • ASCII: (optional) The ASCII bytes to convert. Defaults to MUUM.ASCII.
  • Split: (optional) The character to use as a delimiter when splitting the bytes. Defaults to MUUM.Split.
  • Encode: (optional) The encoding to use. Defaults to MUUM.Encode.

Returns:

A string representing the text of the input ASCII bytes.

Exceptions:

  • E: If an error occurs during conversion, an exception is thrown.

ASCIIToTextAsync(string ASCII = MUUM.ASCII, char Split = MUUM.Split, EET Encode = MUUM.Encode): Task<string>

Clone this wiki locally