From 6952e6e89305fb8debb0154bfbb6e016d774abe0 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Wed, 28 Feb 2024 13:27:09 +0100 Subject: [PATCH] remove refurbish operations for now --- src/morse.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/morse.cpp b/src/morse.cpp index c162ca0..d4aa668 100644 --- a/src/morse.cpp +++ b/src/morse.cpp @@ -1,6 +1,6 @@ -#include +//#include #include -#include +//#include #include "morse.h" @@ -66,6 +66,7 @@ static std::map morseCode = { {']', "-.--."}, // ] => [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 {};