remove refurbish operations for now

This commit is contained in:
Martin Brodbeck 2024-02-28 13:27:09 +01:00
parent 6402b6f025
commit 6952e6e893

View file

@ -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 {};