comparison enigma/enigma_utils.h @ 12:424111a36ed7

Created enigma_machine::process_data() for some speed improvements.
author Brian Neal <bgneal@gmail.com>
date Sun, 01 Jul 2012 12:53:10 -0500
parents 2792ca4ffa84
children
comparison
equal deleted inserted replaced
11:da231533c5c7 12:424111a36ed7
20 return dividend % 26; 20 return dividend % 26;
21 } 21 }
22 22
23 // Removes spaces from a string and returns the resulting string: 23 // Removes spaces from a string and returns the resulting string:
24 std::string remove_spaces(const std::string& s); 24 std::string remove_spaces(const std::string& s);
25
26 // Removes spaces & converts to signal numbers:
27 std::string preprocess_ciphertext(const std::string& s);
25 } 28 }
26 29
27 #endif 30 #endif