Lines Matching defs:std

34 using std::int8_t;
35 using std::uint8_t;
36 using std::size_t;
37 using std::vector;
71 throw std::length_error("Data too long");
75 return QrSegment(Mode::BYTE, static_cast<int>(data.size()), std::move(bb));
87 throw std::domain_error("String contains non-numeric characters");
98 return QrSegment(Mode::NUMERIC, charCount, std::move(bb));
108 const char *temp = std::strchr(ALPHANUMERIC_CHARSET, *text);
110 throw std::domain_error("String contains unencodable characters in alphanumeric mode");
121 return QrSegment(Mode::ALPHANUMERIC, charCount, std::move(bb));
146 throw std::domain_error("ECI assignment value out of range");
156 throw std::domain_error("ECI assignment value out of range");
157 return QrSegment(Mode::ECI, 0, std::move(bb));
161 QrSegment::QrSegment(const Mode &md, int numCh, const std::vector<bool> &dt) :
166 throw std::domain_error("Invalid value");
170 QrSegment::QrSegment(const Mode &md, int numCh, std::vector<bool> &&dt) :
173 data(std::move(dt)) {
175 throw std::domain_error("Invalid value");
208 if (std::strchr(ALPHANUMERIC_CHARSET, *text) == nullptr)
225 const std::vector<bool> &QrSegment::getData() const {
242 default: throw std::logic_error("Unreachable");
262 throw std::invalid_argument("Invalid value");
272 std::ostringstream sb;
302 bb.appendBits(0, std::min(4, static_cast<int>(dataCapacityBits - bb.size())));
325 throw std::domain_error("Version value out of range");
327 throw std::domain_error("Mask value out of range");
468 int dist = std::max(std::abs(dx), std::abs(dy)); // Chebyshev/infinity norm
480 setFunctionModule(x + dx, y + dy, std::max(std::abs(dx), std::abs(dy)) != 1);
500 throw std::invalid_argument("Invalid argument");
519 blocks.push_back(std::move(dat));
538 throw std::invalid_argument("Invalid argument");
565 throw std::domain_error("Mask value out of range");
579 default: throw std::logic_error("Unreachable");
594 std::array<int,7> runHistory = {};
616 std::array<int,7> runHistory = {};
656 int k = static_cast<int>((std::abs(dark * 20L - total * 10L) + total - 1) / total) - 1;
682 throw std::domain_error("Version number out of range");
704 throw std::domain_error("Degree out of range");
752 int QrCode::finderPenaltyCountPatterns(const std::array<int,7> &runHistory) const {
761 int QrCode::finderPenaltyTerminateAndCount(bool currentRunColor, int currentRunLength, std::array<int,7> &runHistory) const {
772 void QrCode::finderPenaltyAddHistory(int currentRunLength, std::array<int,7> &runHistory) const {
775 std::copy_backward(runHistory.cbegin(), runHistory.cend() - 1, runHistory.end());
812 data_too_long::data_too_long(const std::string &msg) :
813 std::length_error(msg) {}
820 : std::vector<bool>() {}
823 void BitBuffer::appendBits(std::uint32_t val, int len) {
825 throw std::domain_error("Value out of range");