IMorseEncoder.Encode

Encode(string, MorseAlphabets, char, char)

Encodes text by Morse code.

public string Encode(string text, MorseAlphabets alphabet, char inputSeparator = ' ', 
    char outputSeparator = '/')
ParameterTypeDescription
textStringText to encode by Morse code
alphabetMorseAlphabetsAlphabet of Morse code
inputSeparatorCharSymbol used to separate words in input text
outputSeparatorCharSymbol used to separate words in encoded text

Return Value

Encoded text, ie “… — …” for the input text “SOS”

See Also


Encode(string, char, char)

Encodes text by Morse code. Heuristic analysis is used to calculate the alphabet of the input text. The alphabet is selected by the first word.

public string Encode(string text, char inputSeparator = ' ', char outputSeparator = '/')
ParameterTypeDescription
textStringText to encode by Morse code
inputSeparatorCharSymbol used to separate words in input text
outputSeparatorCharSymbol used to separate words in encoded text

Return Value

Encoded text, ie “… — …” for the input text “SOS”

See Also