4 releases (1 stable)
1.0.0 | Oct 8, 2023 |
---|---|
0.2.1 | Aug 19, 2023 |
0.2.0 | Mar 24, 2023 |
0.1.0 | Feb 26, 2023 |
#1269 in Encoding
Used in dohy
10KB
169 lines
DotHyphen
A basic ASCII to Morse and vice versa translator.
Usage
use dothyphen::*;
let morse_string = translate::to_morse("Hello World");
println!("{}", morse_string); // Should print: .... . .-.. .-.. --- / .-- --- .-. .-.. -..
let ascii_string = translate::to_morse(".... . .-.. .-.. --- / .-- --- .-. .-.. -..");
println!("{}", ascii_string); // Should print: Hello World
Contributing
DotHyphen is a part of Samuel, a project focused on learning how to use Rust to build a crate that can be used from other languages and multiple environments.
Please read the contributing guidelines and the contributing documentation to contribute to DotHyphen.
Moreover, you can use the Samuel Github Discussions.
All help will be appreciated.
lib.rs
:
Simple ASCII to Morse and vice versa translator.
Provides a way to translate an ASCII input to their Morse code representation and a way to translate a Morse input to their ASCII representation. Provides methods to translate ASCII to Morse code and to translate Morse to ASCII.
Dependencies
~10KB