crypto_square: iteration 1
This commit is contained in:
parent
5f232d2fe3
commit
76d5f8c99c
2 changed files with 116 additions and 0 deletions
29
cpp/crypto-square/crypto_square.h
Normal file
29
cpp/crypto-square/crypto_square.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#define EXERCISM_RUN_ALL_TESTS
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace crypto_square {
|
||||
|
||||
class cipher
|
||||
{
|
||||
std::string text_;
|
||||
std::size_t size_;
|
||||
|
||||
public:
|
||||
|
||||
typedef std::vector<std::string> segments_t;
|
||||
|
||||
cipher(const std::string &text);
|
||||
|
||||
std::string normalize_plain_text() const;
|
||||
std::size_t size() const;
|
||||
segments_t plain_text_segments() const;
|
||||
std::string cipher_text() const;
|
||||
std::string normalized_cipher_text() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue