29 lines
482 B
C++
29 lines
482 B
C++
#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;
|
|
};
|
|
|
|
}
|
|
|