IMorseEncoder.Encode
Contents
[
Hide
]Encode(string, MorseAlphabets, char, char)
Encodes text by Morse code.
public string Encode(string text, MorseAlphabets alphabet, char inputSeparator = ' ',
char outputSeparator = '/')
Parameter | Type | Description |
---|---|---|
text | String | Text to encode by Morse code |
alphabet | MorseAlphabets | Alphabet of Morse code |
inputSeparator | Char | Symbol used to separate words in input text |
outputSeparator | Char | Symbol used to separate words in encoded text |
Return Value
Encoded text, ie “… — …” for the input text “SOS”
See Also
- enum MorseAlphabets
- interface IMorseEncoder
- namespace Aspose.Font.TextUtils
- assembly Aspose.Font
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 = '/')
Parameter | Type | Description |
---|---|---|
text | String | Text to encode by Morse code |
inputSeparator | Char | Symbol used to separate words in input text |
outputSeparator | Char | Symbol used to separate words in encoded text |
Return Value
Encoded text, ie “… — …” for the input text “SOS”
See Also
- interface IMorseEncoder
- namespace Aspose.Font.TextUtils
- assembly Aspose.Font