Aspose::Font::TextUtils::IMorseEncoder::Encode method

IMorseEncoder::Encode(System::String, char16_t, char16_t) method

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.

virtual System::String Aspose::Font::TextUtils::IMorseEncoder::Encode(System::String text, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
ParameterTypeDescription
textSystem::StringText to encode by Morse code
inputSeparatorchar16_tSymbol used to separate words in input text
outputSeparatorchar16_tSymbol used to separate words in encoded text

ReturnValue

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

See Also

IMorseEncoder::Encode(System::String, MorseAlphabets, char16_t, char16_t) method

Encodes text by Morse code.

virtual System::String Aspose::Font::TextUtils::IMorseEncoder::Encode(System::String text, MorseAlphabets alphabet, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
ParameterTypeDescription
textSystem::StringText to encode by Morse code
alphabetMorseAlphabetsAlphabet of Morse code
inputSeparatorchar16_tSymbol used to separate words in input text
outputSeparatorchar16_tSymbol used to separate words in encoded text

ReturnValue

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

See Also