remove refurbish operations for now
This commit is contained in:
parent
6402b6f025
commit
6952e6e893
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
#include <algorithm>
|
||||
//#include <algorithm>
|
||||
#include <map>
|
||||
#include <regex>
|
||||
//#include <regex>
|
||||
|
||||
#include "morse.h"
|
||||
|
||||
|
@ -66,6 +66,7 @@ static std::map<char, std::string> morseCode = {
|
|||
{']', "-.--."}, // ] => <KN> [sic!]
|
||||
};
|
||||
|
||||
/*
|
||||
void refurbishMessage(std::string &msg)
|
||||
{
|
||||
// Make the message all upper case
|
||||
|
@ -87,10 +88,11 @@ void refurbishMessage(std::string &msg)
|
|||
// Remove spaces, if there are too many of them
|
||||
msg = std::regex_replace(msg, std::regex("(\\s+)"), " ");
|
||||
}
|
||||
*/
|
||||
|
||||
std::string messageToMorse(std::string &msg)
|
||||
{
|
||||
refurbishMessage(msg);
|
||||
//refurbishMessage(msg);
|
||||
|
||||
std::string morseString {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue