From 1fbedc31a590116e1f49ed6420960f890a44c467 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 2 Apr 2016 10:44:14 +0200 Subject: Implement special case for single missing spaces --- src/line_accumulator.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/line_accumulator.h') diff --git a/src/line_accumulator.h b/src/line_accumulator.h index 93ebfc0..373cb1b 100644 --- a/src/line_accumulator.h +++ b/src/line_accumulator.h @@ -10,18 +10,22 @@ class LineAccumulator { LineAccumulator(const std::uint8_t max_length); ~LineAccumulator(); + std::uint8_t getMissing() const; + void operator()(const std::string& word); private: const std::uint8_t max_length_; std::random_device device_; + std::mt19937 random_; std::uint8_t length_; std::vector< std::pair > tokens_; + void justify(); void discharge(const bool full); }; -- cgit v1.2.3