text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitArray;
namespace OneD::DataBar {
std::string DecodeExpandedBits(const BitArray& bits);
} // namespace OneD::DataBar
} // namespace ZXing
``` | /content/code_sandbox/core/src/oned/ODDataBarExpandedBitDecoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 52 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
/**
* <p>Implements decoding of the DX Edge Film code format, a type or barcode found on 35mm films.</p>
*
* <p>See <a href="path_to_url">path_to_url
*/
class DXFilmEdgeReader : public RowReader
{
public:
using RowReader::RowR... | /content/code_sandbox/core/src/oned/ODDXFilmEdgeReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 124 |
```objective-c
/*
*/
#pragma once
#include <array>
namespace ZXing::OneD::Code128 {
extern const std::array<std::array<int, 6>, 107> CODE_PATTERNS;
} // namespace ZXing::OneD::Code128
``` | /content/code_sandbox/core/src/oned/ODCode128Patterns.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 53 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitMatrix;
namespace OneD {
/**
* This object renders a CODE39 code as a {@link BitMatrix}.
*
* @author erik.barbara@gmail.com (Erik Barbara)
*/
class Code39Writer
{
public:
Code39Writer& setMargin(int sidesMargin) { _sidesMargin = side... | /content/code_sandbox/core/src/oned/ODCode39Writer.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 147 |
```objective-c
/*
*/
#pragma once
#include "GTIN.h"
#include <array>
#include <cstddef>
#include <stdexcept>
#include <string>
namespace ZXing::OneD::UPCEANCommon {
using Digit = std::array<int, 4>;
/**
* Start/end guard pattern.
*/
extern const std::array<int, 3> START_END_PATTERN;
/**
* "Odd", or "L" patter... | /content/code_sandbox/core/src/oned/ODUPCEANCommon.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 893 |
```c++
/*
*/
#include "ODUPCEWriter.h"
#include "ODUPCEANCommon.h"
#include "ODWriterHelper.h"
#include "Utf.h"
#include <stdexcept>
#include <vector>
namespace ZXing::OneD {
static const int CODE_WIDTH = 3 + // start guard
(7 * 6) + // bars
6; // end gua... | /content/code_sandbox/core/src/oned/ODUPCEWriter.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 438 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitMatrix;
namespace OneD {
/**
* This object renders a CODE128 code as a {@link BitMatrix}.
*
* @author erik.barbara@gmail.com (Erik Barbara)
*/
class Code128Writer
{
public:
Code128Writer& setMargin(int sidesMargin) { _sidesMargin = si... | /content/code_sandbox/core/src/oned/ODCode128Writer.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 146 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitMatrix;
namespace OneD {
/**
* This object renders a ITF code as a {@link BitMatrix}.
*
* @author erik.barbara@gmail.com (Erik Barbara)
*/
class ITFWriter
{
public:
ITFWriter& setMargin(int sidesMargin) { _sidesMargin = sidesMargin; r... | /content/code_sandbox/core/src/oned/ODITFWriter.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 147 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
/**
* Decodes DataBarExpandedReader (formerly known as RSS) sybmols, including truncated and stacked variants. See ISO/IEC 24724:2006.
*/
class DataBarExpandedReader : public RowReader
{
public:
using RowReader::RowReader;
Barcode... | /content/code_sandbox/core/src/oned/ODDataBarExpandedReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 114 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
/**
* @brief A reader that can read all available UPC/EAN formats.
*/
class MultiUPCEANReader : public RowReader
{
public:
using RowReader::RowReader;
Barcode decodePattern(int rowNumber, PatternView& next, std::unique_ptr<Decodin... | /content/code_sandbox/core/src/oned/ODMultiUPCEANReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 94 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
class Code93Reader : public RowReader
{
public:
using RowReader::RowReader;
Barcode decodePattern(int rowNumber, PatternView& next, std::unique_ptr<DecodingState>&) const override;
};
} // namespace ZXing::OneD
``` | /content/code_sandbox/core/src/oned/ODCode93Reader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 75 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitMatrix;
namespace OneD {
/**
* This object renders a CODE93 code as a BitMatrix
*/
class Code93Writer
{
public:
Code93Writer& setMargin(int sidesMargin) { _sidesMargin = sidesMargin; return *this; }
BitMatrix encode(const std::wstrin... | /content/code_sandbox/core/src/oned/ODCode93Writer.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 129 |
```c++
/*
*/
#include "ODCodabarWriter.h"
#include "ODWriterHelper.h"
#include "Utf.h"
#include "ZXAlgorithms.h"
#include <stdexcept>
#include <vector>
namespace ZXing::OneD {
static constexpr wchar_t START_END_CHARS[] = L"ABCD";
static constexpr wchar_t ALT_START_END_CHARS[] = L"TN*E";
static constexpr wchar_t C... | /content/code_sandbox/core/src/oned/ODCodabarWriter.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,278 |
```objective-c
/*
*/
#pragma once
#include "BitMatrix.h"
#include <cstddef>
#include <vector>
namespace ZXing::OneD {
/**
* <p>Encapsulates functionality and implementation that is common to one-dimensional barcodes.</p>
*
* @author dsbnatut@gmail.com (Kazuki Nishiura)
*/
class WriterHelper
{
static int AppendPat... | /content/code_sandbox/core/src/oned/ODWriterHelper.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 285 |
```c++
/*
*/
#include "ODMultiUPCEANReader.h"
#include "BarcodeFormat.h"
#include "BitArray.h"
#include "ReaderOptions.h"
#include "GTIN.h"
#include "ODUPCEANCommon.h"
#include "Barcode.h"
#include <cmath>
namespace ZXing::OneD {
constexpr int CHAR_LEN = 4;
constexpr auto END_PATTERN = FixedPattern<3, 3... | /content/code_sandbox/core/src/oned/ODMultiUPCEANReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 3,366 |
```c++
/*
*/
#include "ODUPCAWriter.h"
#include "BitMatrix.h"
#include "ODEAN13Writer.h"
#include "Utf.h"
#include <stdexcept>
namespace ZXing::OneD {
BitMatrix
UPCAWriter::encode(const std::wstring& contents, int width, int height) const
{
// Transform a UPC-A code into the equivalent EAN-13 code, and add a chec... | /content/code_sandbox/core/src/oned/ODUPCAWriter.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 205 |
```c++
/*
*/
#include "ODEAN13Writer.h"
#include "ODUPCEANCommon.h"
#include "ODWriterHelper.h"
#include "Utf.h"
#include <array>
#include <vector>
namespace ZXing::OneD {
static const int FIRST_DIGIT_ENCODINGS[] = {
0x00, 0x0B, 0x0D, 0xE, 0x13, 0x19, 0x1C, 0x15, 0x16, 0x1A
};
static const int CODE_WIDTH = 3 + /... | /content/code_sandbox/core/src/oned/ODEAN13Writer.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 532 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitMatrix;
namespace OneD {
/**
* This object renders an EAN8 code as a {@link BitMatrix}.
*
* @author aripollak@gmail.com (Ari Pollak)
*/
class EAN13Writer
{
public:
EAN13Writer& setMargin(int sidesMargin) { _sidesMargin = sidesMargin; ... | /content/code_sandbox/core/src/oned/ODEAN13Writer.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 150 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
/**
* <p>Implements decoding of the ITF format, or Interleaved Two of Five.</p>
*
* <p>This Reader will scan ITF barcodes of certain lengths only.
* At the moment it reads length >= 6. Not all lengths are scanned, especially shorter ... | /content/code_sandbox/core/src/oned/ODITFReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 229 |
```c++
/*
*/
#include "ODITFReader.h"
#include "ReaderOptions.h"
#include "GTIN.h"
#include "Barcode.h"
#include "ZXAlgorithms.h"
namespace ZXing::OneD {
Barcode ITFReader::decodePattern(int rowNumber, PatternView& next, std::unique_ptr<DecodingState>&) const
{
const int minCharCount = 6;
const int minQuietZone =... | /content/code_sandbox/core/src/oned/ODITFReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 703 |
```c++
/*
*/
#include "ODCodabarReader.h"
#include "ReaderOptions.h"
#include "Barcode.h"
#include "ZXAlgorithms.h"
#include <string>
#include <memory>
namespace ZXing::OneD {
static const char ALPHABET[] = "0123456789-$:/.+ABCD";
// These represent the encodings of characters, as patterns of wide and narrow bars... | /content/code_sandbox/core/src/oned/ODCodabarReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 937 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitMatrix;
namespace OneD {
/**
* This object renders a UPC-A code as a {@link BitMatrix}.
*
* @author qwandor@google.com (Andrew Walbran)
*/
class UPCAWriter
{
public:
UPCAWriter& setMargin(int sidesMargin) { _sidesMargin = sidesMargin;... | /content/code_sandbox/core/src/oned/ODUPCAWriter.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 147 |
```c++
/*
*/
#include "ODUPCEANCommon.h"
namespace ZXing::OneD {
const std::array<int, 3> UPCEANCommon::START_END_PATTERN = { 1, 1, 1 };
const std::array<int, 5> UPCEANCommon::MIDDLE_PATTERN = { 1, 1, 1, 1, 1 };
const std::array<int, 6> UPCEANCommon::UPCE_END_PATTERN = { 1, 1, 1, 1, 1, 1 };
const std::array<std::ar... | /content/code_sandbox/core/src/oned/ODUPCEANCommon.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,107 |
```c++
/*
*/
#include "ODDataBarExpandedBitDecoder.h"
#include "BitArray.h"
#include "Error.h"
#include "GTIN.h"
namespace ZXing::OneD::DataBar {
constexpr char GS = 29; // FNC1
static std::string DecodeGeneralPurposeBits(BitArrayView& bits)
{
enum State { NUMERIC, ALPHA, ISO_IEC_646 };
State state = NUMERIC;
s... | /content/code_sandbox/core/src/oned/ODDataBarExpandedBitDecoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,917 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
/**
* Decodes DataBar (formerly known as RSS) sybmols, including truncated and stacked variants. See ISO/IEC 24724:2006.
*/
class DataBarReader : public RowReader
{
public:
using RowReader::RowReader;
Barcode decodePattern(int row... | /content/code_sandbox/core/src/oned/ODDataBarReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 111 |
```c++
/*
*/
#include "ODReader.h"
#include "BinaryBitmap.h"
#include "ReaderOptions.h"
#include "ODCodabarReader.h"
#include "ODCode128Reader.h"
#include "ODCode39Reader.h"
#include "ODCode93Reader.h"
#include "ODDataBarExpandedReader.h"
#include "ODDataBarReader.h"
#include "ODDXFilmEdgeReader.h"
#include "ODITFRea... | /content/code_sandbox/core/src/oned/ODReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,581 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitMatrix;
namespace OneD {
/**
* This object renders an UPC-E code as a {@link BitMatrix}.
*
* @author 0979097955s@gmail.com (RX)
*/
class UPCEWriter
{
public:
UPCEWriter& setMargin(int sidesMargin) { _sidesMargin = sidesMargin; return ... | /content/code_sandbox/core/src/oned/ODUPCEWriter.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 146 |
```c++
/*
*/
#include "ODITFWriter.h"
#include "ODWriterHelper.h"
#include "Utf.h"
#include <array>
#include <stdexcept>
#include <vector>
namespace ZXing::OneD {
static const std::array<int, 4> START_PATTERN = { 1, 1, 1, 1 };
static const std::array<int, 3> END_PATTERN = { 3, 1, 1 };
static const int W = 3; // P... | /content/code_sandbox/core/src/oned/ODITFWriter.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 709 |
```c++
/*
*/
#include "ODDXFilmEdgeReader.h"
#include "Barcode.h"
#include <optional>
#include <vector>
namespace ZXing::OneD {
namespace {
// Detection is made from center outward.
// We ensure the clock track is decoded before the data track to avoid false positives.
// They are two version of a DX Edge codes ... | /content/code_sandbox/core/src/oned/ODDXFilmEdgeReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,080 |
```c++
/*
*/
#include "ODWriterHelper.h"
#include "BitMatrix.h"
#include <algorithm>
namespace ZXing::OneD {
/**
* @return a byte array of horizontal pixels (0 = white, 1 = black)
*/
BitMatrix
WriterHelper::RenderResult(const std::vector<bool>& code, int width, int height, int sidesMargin)
{
int inputWidth = Size... | /content/code_sandbox/core/src/oned/ODWriterHelper.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 421 |
```c++
/*
*/
#include "ODCode128Patterns.h"
namespace ZXing::OneD::Code128 {
const std::array<std::array<int, 6>, 107> CODE_PATTERNS = { {
{ 2, 1, 2, 2, 2, 2 }, // 0
{ 2, 2, 2, 1, 2, 2 },
{ 2, 2, 2, 2, 2, 1 },
{ 1, 2, 1, 2, 2, 3 },
{ 1, 2, 1, 3, 2, 2 },
{ 1, 3, 1, 2, 2, 2 }, // 5
{ 1, 2, 2, 2, 1, 3 },
{ 1, 2... | /content/code_sandbox/core/src/oned/ODCode128Patterns.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,297 |
```c++
/*
*/
#include "ODCode39Writer.h"
#include "CharacterSet.h"
#include "ODWriterHelper.h"
#include "TextEncoder.h"
#include "Utf.h"
#include "ZXAlgorithms.h"
#include <array>
#include <stdexcept>
#include <vector>
namespace ZXing::OneD {
static const char ALPHABET[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. *... | /content/code_sandbox/core/src/oned/ODCode39Writer.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,680 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
class CodabarReader : public RowReader
{
public:
using RowReader::RowReader;
Barcode decodePattern(int rowNumber, PatternView& next, std::unique_ptr<DecodingState>& state) const override;
};
} // namespace ZXing::OneD
``` | /content/code_sandbox/core/src/oned/ODCodabarReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 76 |
```c++
/*
*/
#include "ODCode128Writer.h"
#include "ODCode128Patterns.h"
#include "ODWriterHelper.h"
#include "Utf.h"
#include <list>
#include <numeric>
#include <stdexcept>
#include <vector>
namespace ZXing::OneD {
static const int CODE_START_A = 103;
static const int CODE_START_B = 104;
static const int CODE_STA... | /content/code_sandbox/core/src/oned/ODCode128Writer.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,221 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
#include "Pattern.h"
#include "Barcode.h"
#include <array>
#include <cmath>
namespace ZXing::OneD::DataBar {
inline bool IsFinder(int a, int b, int c, int d, int e)
{
// a,b,c,d,e, g | sum(a..e) = 15
// ------------
// 1,1,2
// | | |,1,1, 1
// 3,8,... | /content/code_sandbox/core/src/oned/ODDataBarCommon.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,068 |
```objective-c
/*
*/
#pragma once
#include <vector>
namespace ZXing {
class DecoderResult;
namespace Pdf417 {
DecoderResult Decode(const std::vector<int>& codewords);
} // namespace Pdf417
} // namespace ZXing
``` | /content/code_sandbox/core/src/pdf417/PDFDecoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 47 |
```c++
/*
*/
#include "PDFModulusPoly.h"
#include "PDFModulusGF.h"
#include <algorithm>
#include <stdexcept>
namespace ZXing {
namespace Pdf417 {
ModulusPoly::ModulusPoly(const ModulusGF& field, const std::vector<int>& coefficients) :
_field(&field)
{
size_t coefficientsLength = coefficients.size();
if (coeffici... | /content/code_sandbox/core/src/pdf417/PDFModulusPoly.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,480 |
```c++
/*
*/
#include "PDFDetectionResultColumn.h"
#include "PDFBarcodeMetadata.h"
#include "PDFBarcodeValue.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <stdexcept>
namespace ZXing {
namespace Pdf417 {
static const int MAX_NEARBY_DISTANCE = 5;
static const int MIN_ROWS_IN_BARCODE = 3;
static const in... | /content/code_sandbox/core/src/pdf417/PDFDetectionResultColumn.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,727 |
```objective-c
/*
*/
#pragma once
#include "PDFModulusPoly.h"
#include "ZXConfig.h"
#include <stdexcept>
#include <vector>
namespace ZXing {
namespace Pdf417 {
/**
* <p>A field based on powers of a generator integer, modulo some modulus.< / p>
*
* @author Sean Owen
* @see com.google.zxing.common.reedsolomon.Generi... | /content/code_sandbox/core/src/pdf417/PDFModulusGF.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 512 |
```objective-c
/*
*/
#pragma once
#include "CustomData.h"
#include <string>
#include <vector>
namespace ZXing {
namespace Pdf417 {
/**
* @author Guenther Grau
*/
class DecoderResultExtra : public CustomData
{
int _segmentIndex = -1;
std::string _fileId;
std::vector<int> _optionalData;
bool _lastSegment = false... | /content/code_sandbox/core/src/pdf417/PDFDecoderResultExtra.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 603 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
namespace Pdf417 {
enum class Compaction {
AUTO,
TEXT,
BYTE,
NUMERIC
};
} // Pdf417
} // ZXing
``` | /content/code_sandbox/core/src/pdf417/PDFCompaction.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 42 |
```c++
/*
*/
#include "PDFBarcodeValue.h"
#include <algorithm>
namespace ZXing {
namespace Pdf417 {
/**
* Add an occurrence of a value
*/
void
BarcodeValue::setValue(int value)
{
_values[value] += 1;
}
/**
* Determines the maximum occurrence of a set value and returns all values which were set with this occurrenc... | /content/code_sandbox/core/src/pdf417/PDFBarcodeValue.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 243 |
```c++
/*
*/
#include "PDFScanningDecoder.h"
#include "BitMatrix.h"
#include "DecoderResult.h"
#include "PDFBarcodeMetadata.h"
#include "PDFBarcodeValue.h"
#include "PDFCodewordDecoder.h"
#include "PDFDetectionResult.h"
#include "PDFDecoder.h"
#include "PDFModulusGF.h"
#include "ZXAlgorithms.h"
#include "ZXTestSuppor... | /content/code_sandbox/core/src/pdf417/PDFScanningDecoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 7,301 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
namespace Pdf417 {
/**
* @author Guenther Grau
*/
class BarcodeMetadata
{
int _columnCount = 0;
int _errorCorrectionLevel = 0;
int _rowCountUpperPart = 0;
int _rowCountLowerPart = 0;
public:
BarcodeMetadata() = default;
BarcodeMetadata(int columnCount, int r... | /content/code_sandbox/core/src/pdf417/PDFBarcodeMetadata.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 227 |
```c++
/*
*/
#include "PDFHighLevelEncoder.h"
#include "PDFCompaction.h"
#include "CharacterSet.h"
#include "ECI.h"
#include "TextEncoder.h"
#include "ZXBigInteger.h"
#include "ZXAlgorithms.h"
#include <cstdint>
#include <algorithm>
#include <string>
#include <stdexcept>
namespace ZXing {
namespace Pdf417 {
/**
* c... | /content/code_sandbox/core/src/pdf417/PDFHighLevelEncoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 4,839 |
```objective-c
/*
*/
#pragma once
#include "CharacterSet.h"
#include <string>
#include <vector>
namespace ZXing {
namespace Pdf417 {
enum class Compaction;
/**
* PDF417 high-level encoder following the algorithm described in ISO/IEC 15438:2001(E) in
* annex P.
*/
class HighLevelEncoder
{
public:
static std::vec... | /content/code_sandbox/core/src/pdf417/PDFHighLevelEncoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 107 |
```objective-c
/*
*/
#pragma once
#include <cstdlib>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
namespace ZXing {
/**
* All credits on BigInteger below go to Matt McCutchen, as the code below is extracted/modified from his C++ Big Integer Library (path_to_url
*/
class BigInteger
{... | /content/code_sandbox/core/src/pdf417/ZXBigInteger.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 511 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
namespace Pdf417 {
/**
* @author Guenther Grau
*/
class Codeword
{
static const int BARCODE_ROW_UNKNOWN = -1;
int _startX = 0;
int _endX = 0;
int _bucket = 0;
int _value = 0;
int _rowNumber = BARCODE_ROW_UNKNOWN;
public:
Codeword() {}
Codeword(int startX,... | /content/code_sandbox/core/src/pdf417/PDFCodeword.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 329 |
```objective-c
/*
*/
#pragma once
#include "CharacterSet.h"
#include <string>
#include <memory>
namespace ZXing {
class BitMatrix;
namespace Pdf417 {
enum class Compaction;
class Encoder;
/**
* @author Jacob Haynes
* @author qwandor@google.com (Andrew Walbran)
*/
class Writer
{
public:
Writer();
Writer(Writer... | /content/code_sandbox/core/src/pdf417/PDFWriter.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 355 |
```c++
/*
*/
#include "PDFWriter.h"
#include "PDFEncoder.h"
#include "BitMatrix.h"
#include "Utf.h"
#include <utility>
namespace ZXing {
namespace Pdf417 {
/**
* default white space (margin) around the code
*/
static const int WHITE_SPACE = 30;
/**
* default error correction level
*/
static const int DEFAULT_ERROR... | /content/code_sandbox/core/src/pdf417/PDFWriter.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,040 |
```objective-c
/*
*/
#pragma once
#include "ZXNullable.h"
#include "ResultPoint.h"
namespace ZXing {
namespace Pdf417 {
/**
* @author Guenther Grau
*/
class BoundingBox
{
int _imgWidth;
int _imgHeight;
Nullable<ResultPoint> _topLeft;
Nullable<ResultPoint> _bottomLeft;
Nullable<ResultPoint> _topRight;
Nullable... | /content/code_sandbox/core/src/pdf417/PDFBoundingBox.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 356 |
```objective-c
/*
*/
#pragma once
#include "CharacterSet.h"
#include "PDFCompaction.h"
#include "ZXAlgorithms.h"
#include <string>
#include <vector>
namespace ZXing {
namespace Pdf417 {
/**
* @author Jacob Haynes
*/
class BarcodeRow
{
std::vector<bool> _row;
int _currentLocation = 0; // A tacker for position in ... | /content/code_sandbox/core/src/pdf417/PDFEncoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,086 |
```objective-c
/*
*/
#pragma once
#include <vector>
namespace ZXing {
class BitMatrix;
class ResultPoint;
class DecoderResult;
template <typename T> class Nullable;
namespace Pdf417 {
/**
* @author Guenther Grau
*/
class ScanningDecoder
{
public:
static DecoderResult Decode(const BitMatrix& image,
const Nullab... | /content/code_sandbox/core/src/pdf417/PDFScanningDecoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 175 |
```objective-c
/*
*/
#pragma once
#include "PDFBoundingBox.h"
#include "PDFCodeword.h"
#include "ZXNullable.h"
#include <vector>
namespace ZXing {
namespace Pdf417 {
class BarcodeMetadata;
/**
* @author Guenther Grau
*/
class DetectionResultColumn
{
public:
enum class RowIndicator {
None,
Left,
Right,
};
... | /content/code_sandbox/core/src/pdf417/PDFDetectionResultColumn.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 457 |
```c++
/*
*/
#include "PDFCodewordDecoder.h"
#include "BitArray.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <array>
#include <cstdint>
#include <limits>
namespace ZXing {
namespace Pdf417 {
static constexpr const int SYMBOL_COUNT = 2787;
/**
* The sorted table of all possible symbols. Extracted fro... | /content/code_sandbox/core/src/pdf417/PDFCodewordDecoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 28,877 |
```objective-c
/*
*/
#pragma once
#include "ResultPoint.h"
#include "ZXNullable.h"
#include <list>
#include <array>
#include <memory>
namespace ZXing {
class BitMatrix;
class BinaryBitmap;
namespace Pdf417 {
/**
* <p>Encapsulates logic that can detect a PDF417 Code in an image, even if the
* PDF417 Code is rotat... | /content/code_sandbox/core/src/pdf417/PDFDetector.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 204 |
```objective-c
/*
*/
#pragma once
#include <map>
#include <vector>
namespace ZXing {
namespace Pdf417 {
/**
* @author Guenther Grau
*/
class BarcodeValue
{
std::map<int, int> _values;
public:
/**
* Add an occurrence of a value
*/
void setValue(int value);
/**
* Determines the maximum occurrence of a set va... | /content/code_sandbox/core/src/pdf417/PDFBarcodeValue.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 146 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
class CustomData
{
public:
virtual ~CustomData() = default;
protected:
CustomData() = default;
};
} // ZXing
``` | /content/code_sandbox/core/src/pdf417/CustomData.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 40 |
```objective-c
/*
*/
#pragma once
#include "Reader.h"
#include <list>
namespace ZXing::Pdf417 {
/**
* This implementation can detect and decode PDF417 codes in an image.
*
* @author Guenther Grau
*/
class Reader : public ZXing::Reader
{
public:
using ZXing::Reader::Reader;
Barcode decode(const BinaryBitmap& ima... | /content/code_sandbox/core/src/pdf417/PDFReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 107 |
```c++
/*
*/
#include "PDFDetector.h"
#include "BinaryBitmap.h"
#include "BitMatrix.h"
#include "ZXNullable.h"
#include "Pattern.h"
#include <algorithm>
#include <array>
#include <cstdlib>
#include <limits>
#include <list>
#include <vector>
namespace ZXing {
namespace Pdf417 {
static const int INDEXES_START_PATTERN... | /content/code_sandbox/core/src/pdf417/PDFDetector.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 3,565 |
```c++
/*
*/
#include "PDFModulusGF.h"
#include <stdexcept>
namespace ZXing {
namespace Pdf417 {
ModulusGF::ModulusGF(int modulus, int generator) :
_modulus(modulus),
_zero(*this, { 0 }),
_one(*this, { 1 })
{
#ifdef ZX_REED_SOLOMON_USE_MORE_MEMORY_FOR_SPEED
_expTable.resize(modulus * 2, 0);
#else
_expTable.resi... | /content/code_sandbox/core/src/pdf417/PDFModulusGF.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 361 |
```objective-c
/*
*/
#pragma once
#include "PDFBarcodeMetadata.h"
#include "PDFBoundingBox.h"
#include "PDFDetectionResultColumn.h"
#include "ZXNullable.h"
#include <vector>
namespace ZXing {
namespace Pdf417 {
/**
* @author Guenther Grau
*/
class DetectionResult
{
BarcodeMetadata _barcodeMetadata;
std::vector<Nu... | /content/code_sandbox/core/src/pdf417/PDFDetectionResult.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 362 |
```objective-c
/*
*/
#pragma once
#include <array>
namespace ZXing {
namespace Pdf417 {
/**
* @author Guenther Grau
* @author creatale GmbH (christoph.schulz@creatale.de)
*/
class CodewordDecoder
{
public:
static constexpr const int NUMBER_OF_CODEWORDS = 929;
// Maximum Codewords (Data + Error).
static constexpr... | /content/code_sandbox/core/src/pdf417/PDFCodewordDecoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 233 |
```objective-c
/*
*/
#pragma once
#include <stdexcept>
#include <utility>
namespace ZXing {
template <typename T>
class Nullable final
{
bool m_hasValue = false;
T m_value;
public:
Nullable() = default;
Nullable(const T &value) : m_hasValue(true), m_value(value) {}
Nullable(T &&value) noexcept : m_hasValue(tr... | /content/code_sandbox/core/src/pdf417/ZXNullable.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 607 |
```c++
/*
*/
#include "PDFReader.h"
#include "PDFDetector.h"
#include "PDFScanningDecoder.h"
#include "PDFCodewordDecoder.h"
#include "ReaderOptions.h"
#include "DecoderResult.h"
#include "DetectorResult.h"
#include "Barcode.h"
#include "BitMatrixCursor.h"
#include "BinaryBitmap.h"
#include "BitArray.h"
#include "Pat... | /content/code_sandbox/core/src/pdf417/PDFReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,926 |
```c++
/*
*/
#include "PDFBoundingBox.h"
#include <algorithm>
namespace ZXing {
namespace Pdf417 {
BoundingBox::BoundingBox() {
_imgWidth = _imgHeight = _minX = _maxX = _minY = _maxY = 0;
}
bool
BoundingBox::Create(int imgWidth, int imgHeight, const Nullable<ResultPoint>& topLeft, const Nullable<ResultPoint>& bot... | /content/code_sandbox/core/src/pdf417/PDFBoundingBox.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 926 |
```c++
/*
*/
#include "PDFDecoder.h"
#include "CharacterSet.h"
#include "DecoderResult.h"
#include "PDFDecoderResultExtra.h"
#include "ZXAlgorithms.h"
#include "ZXBigInteger.h"
#include "ZXTestSupport.h"
#include <array>
#include <cassert>
#include <sstream>
#include <utility>
namespace ZXing::Pdf417 {
enum class ... | /content/code_sandbox/core/src/pdf417/PDFDecoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 7,007 |
```c++
/*
*/
#include "ZXBigInteger.h"
#include "BitHacks.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdint>
#include <utility>
namespace ZXing {
using Block = BigInteger::Block;
using Magnitude = std::vector<Block>;
static const size_t NB_BITS = 8 * sizeof(B... | /content/code_sandbox/core/src/pdf417/ZXBigInteger.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 5,259 |
```objective-c
/*
*/
#pragma once
#include "ZXAlgorithms.h"
#include <utility>
#include <vector>
namespace ZXing {
namespace Pdf417 {
class ModulusGF;
/**
* @author Sean Owen
* @see com.google.zxing.common.reedsolomon.GenericGFPoly
*/
class ModulusPoly
{
const ModulusGF* _field = nullptr;
std::vector<int> _coef... | /content/code_sandbox/core/src/pdf417/PDFModulusPoly.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 457 |
```c++
/*
*/
#include "PDFDetectionResult.h"
#include "PDFCodewordDecoder.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <array>
namespace ZXing {
namespace Pdf417 {
static const int ADJUST_ROW_NUMBER_SKIP = 2;
DetectionResult::DetectionResult(const BarcodeMetadata& barcodeMetadata, const Nullable<Boun... | /content/code_sandbox/core/src/pdf417/PDFDetectionResult.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,632 |
```c
#include "common.h"
#define STUB_PIXEL_PLOT(NAME) \
INTERNAL int NAME(struct zint_symbol* symbol, const unsigned char* pixelbuf) \
{ \
(void)symbol; \
(void)pixelbuf; \
return ZINT_ERROR_ENCODING_PROBLEM; \
}
#define STUB_FUNC_CHAR(NAME) \
INTERNAL int NAME(struct zint_symbol* symbol, unsigned char so... | /content/code_sandbox/core/src/libzint/stubs.c | c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 680 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitArray;
namespace Aztec {
class Token
{
public:
void appendTo(BitArray& bitArray, const std::string& text) const;
static Token CreateSimple(int value, int bitCount) {
return {value, -bitCount};
}
static Token CreateBinaryShift(... | /content/code_sandbox/core/src/aztec/AZToken.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 147 |
```objective-c
/*
*/
#pragma once
#include "DetectorResult.h"
#include <utility>
namespace ZXing::Aztec {
class DetectorResult : public ZXing::DetectorResult
{
bool _compact = false;
int _nbDatablocks = 0;
int _nbLayers = 0;
bool _readerInit = false;
bool _isMirrored = false;
int _runeValue = -1;
DetectorR... | /content/code_sandbox/core/src/aztec/AZDetectorResult.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 353 |
```c++
/*
*/
#include "AZToken.h"
#include "BitArray.h"
#include <algorithm>
namespace ZXing::Aztec {
void
Token::appendTo(BitArray& bitArray, const std::string& text) const
{
if (_count < 0) {
bitArray.appendBits(_value, -_count);
}
else {
for (int i = 0; i < _count; i++) {
if (i == 0 || (i == 31 && _co... | /content/code_sandbox/core/src/aztec/AZToken.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 299 |
```c++
/*
*/
#include "AZReader.h"
#include "AZDecoder.h"
#include "AZDetector.h"
#include "AZDetectorResult.h"
#include "BinaryBitmap.h"
#include "ReaderOptions.h"
#include "DecoderResult.h"
#include "Barcode.h"
#include <utility>
namespace ZXing::Aztec {
Barcode Reader::decode(const BinaryBitmap& image) const
{
... | /content/code_sandbox/core/src/aztec/AZReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 389 |
```objective-c
/*
*/
#pragma once
#include "CharacterSet.h"
#include <string>
namespace ZXing {
class BitMatrix;
namespace Aztec {
class Writer
{
public:
Writer();
Writer& setMargin(int margin) {
_margin = margin;
return *this;
}
Writer& setEncoding(CharacterSet encoding) {
_encoding = encoding;
re... | /content/code_sandbox/core/src/aztec/AZWriter.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 201 |
```c++
/*
*/
#include "AZHighLevelEncoder.h"
#include "AZEncodingState.h"
#include "AZToken.h"
#include "BitArray.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <array>
#include <cstdint>
#include <list>
#include <vector>
namespace ZXing::Aztec {
// Do not change these constants
static const int MODE_U... | /content/code_sandbox/core/src/aztec/AZHighLevelEncoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 4,212 |
```objective-c
/*
*/
#pragma once
#include "AZToken.h"
#include <vector>
namespace ZXing::Aztec {
class Token;
/**
* State represents all information about a sequence necessary to generate the current output.
* Note that a state is immutable.
*/
class EncodingState
{
public:
// The list of tokens that we output.... | /content/code_sandbox/core/src/aztec/AZEncodingState.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 201 |
```c++
/*
*/
#include "PDFEncoder.h"
#include "PDFHighLevelEncoder.h"
#include <array>
#include <cmath>
#include <vector>
#include <stdexcept>
namespace ZXing {
namespace Pdf417 {
/**
* The start pattern (17 bits)
*/
static const int START_PATTERN = 0x1fea8;
/**
* The stop pattern (18 bits)
*/
static const int STOP_... | /content/code_sandbox/core/src/pdf417/PDFEncoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 25,894 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitArray;
namespace Aztec {
/**
* This produces nearly optimal encodings of text into the first-level of
* encoding used by Aztec code.
*
* It uses a dynamic algorithm. For each prefix of the string, it determines
* a set of encodings th... | /content/code_sandbox/core/src/aztec/AZHighLevelEncoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 155 |
```c++
/*
*/
#include "AZWriter.h"
#include "AZEncoder.h"
#include "CharacterSet.h"
#include "TextEncoder.h"
#include "Utf.h"
#include <utility>
namespace ZXing::Aztec {
Writer::Writer() :
_encoding(CharacterSet::ISO8859_1),
_eccPercent(Encoder::DEFAULT_EC_PERCENT),
_layers(Encoder::DEFAULT_AZTEC_LAYERS)
{
}
B... | /content/code_sandbox/core/src/aztec/AZWriter.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 201 |
```c++
/*
*/
#include "AZDecoder.h"
#include "AZDetectorResult.h"
#include "BitArray.h"
#include "BitMatrix.h"
#include "DecoderResult.h"
#include "GenericGF.h"
#include "ReedSolomonDecoder.h"
#include "ZXTestSupport.h"
#include "ZXAlgorithms.h"
#include <cctype>
#include <cstring>
#include <numeric>
#include <strin... | /content/code_sandbox/core/src/aztec/AZDecoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 3,746 |
```objective-c
/*
*/
#pragma once
#include <vector>
namespace ZXing {
class BitMatrix;
namespace Aztec {
class DetectorResult;
DetectorResult Detect(const BitMatrix& image, bool isPure, bool tryHarder = true);
using DetectorResults = std::vector<DetectorResult>;
DetectorResults Detect(const BitMatrix& image, bo... | /content/code_sandbox/core/src/aztec/AZDetector.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 89 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
class DecoderResult;
namespace Aztec {
class DetectorResult;
DecoderResult Decode(const DetectorResult& detectorResult);
} // Aztec
} // ZXing
``` | /content/code_sandbox/core/src/aztec/AZDecoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 42 |
```objective-c
/*
*/
#pragma once
#include "Reader.h"
namespace ZXing::Aztec {
class Reader : public ZXing::Reader
{
public:
using ZXing::Reader::Reader;
Barcode decode(const BinaryBitmap& image) const override;
Barcodes decode(const BinaryBitmap& image, int maxSymbols) const override;
};
} // namespace ZXing:... | /content/code_sandbox/core/src/aztec/AZReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 77 |
```objective-c
/*
*/
#pragma once
#include "BitMatrix.h"
#include <string>
namespace ZXing::Aztec {
/**
* Aztec 2D code representation
*
* @author Rustam Abdullaev
*/
struct EncodeResult
{
bool compact;
int size;
int layers;
int codeWords;
BitMatrix matrix;
};
/**
* Generates Aztec 2D barcodes.
*
* @author R... | /content/code_sandbox/core/src/aztec/AZEncoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 179 |
```c++
/*
*/
#include "AZDetector.h"
#include "AZDetectorResult.h"
#include "BitArray.h"
#include "BitHacks.h"
#include "BitMatrix.h"
#include "ConcentricFinder.h"
#include "GenericGF.h"
#include "GridSampler.h"
#include "LogMatrix.h"
#include "Pattern.h"
#include "ReedSolomonDecoder.h"
#include "ZXAlgorithms.h"
#in... | /content/code_sandbox/core/src/aztec/AZDetector.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 4,419 |
```c++
/*
*/
#include "AZEncoder.h"
#include "AZHighLevelEncoder.h"
#include "BitArray.h"
#include "GenericGF.h"
#include "ReedSolomonEncoder.h"
#include "ZXTestSupport.h"
#include <cstdlib>
#include <stdexcept>
#include <vector>
namespace ZXing::Aztec {
static const int MAX_NB_BITS = 32;
static const int MAX_NB_B... | /content/code_sandbox/core/src/aztec/AZEncoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 3,151 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
class DecoderResult;
class BitMatrix;
namespace DataMatrix {
DecoderResult Decode(const BitMatrix& bits);
} // DataMatrix
} // ZXing
``` | /content/code_sandbox/core/src/datamatrix/DMDecoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 41 |
```c++
/*
*/
#include "DMDecoder.h"
#include "BitMatrix.h"
#include "BitSource.h"
#include "DMBitLayout.h"
#include "DMDataBlock.h"
#include "DMVersion.h"
#include "DecoderResult.h"
#include "GenericGF.h"
#include "ReedSolomonDecoder.h"
#include "ZXAlgorithms.h"
#include "ZXTestSupport.h"
#include <algorithm>
#inclu... | /content/code_sandbox/core/src/datamatrix/DMDecoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 4,681 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
class ByteArray;
namespace DataMatrix {
class SymbolInfo;
/**
* Creates and interleaves the ECC200 error correction for an encoded message.
*
* @param codewords the codewords (with interleaved error correction after function return)
* @param symbolInfo info... | /content/code_sandbox/core/src/datamatrix/DMECEncoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 102 |
```objective-c
/*
*/
#pragma once
namespace ZXing::DataMatrix {
/**
* The Version object encapsulates attributes about a particular Data Matrix Symbol size.
*/
class Version
{
public:
/**
* Encapsulates a set of error-correction blocks in one symbol version. Most versions will
* use blocks of differing sizes ... | /content/code_sandbox/core/src/datamatrix/DMVersion.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 523 |
```objective-c
/*
*/
#pragma once
#include "ByteArray.h"
#include <vector>
namespace ZXing::DataMatrix {
class Version;
/**
* <p>Encapsulates a block of data within a Data Matrix Code. Data Matrix Codes may split their data into
* multiple blocks, each of which is a unit of data and error-correction codewords. Ea... | /content/code_sandbox/core/src/datamatrix/DMDataBlock.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 277 |
```c++
/*
*/
#include "DMReader.h"
#include "BinaryBitmap.h"
#include "DMDecoder.h"
#include "DMDetector.h"
#include "ReaderOptions.h"
#include "DecoderResult.h"
#include "DetectorResult.h"
#include "Barcode.h"
#include <utility>
namespace ZXing::DataMatrix {
Barcode Reader::decode(const BinaryBitmap& image) const... | /content/code_sandbox/core/src/datamatrix/DMReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 335 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
class BitMatrix;
class ByteArray;
namespace DataMatrix {
class Version;
BitMatrix BitMatrixFromCodewords(const ByteArray& codewords, int width, int height);
ByteArray CodewordsFromBitMatrix(const BitMatrix& bits, const Version& version);
} // namespace DataMatr... | /content/code_sandbox/core/src/datamatrix/DMBitLayout.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 75 |
```objective-c
/*
*/
#pragma once
#include "ByteArray.h"
#include "DMSymbolInfo.h"
#include "ZXAlgorithms.h"
#include <stdexcept>
#include <string>
#include <utility>
namespace ZXing::DataMatrix {
class EncoderContext
{
std::string _msg;
SymbolShape _shape = SymbolShape::NONE;
int _minWidth = -1;
int _minHeigh... | /content/code_sandbox/core/src/datamatrix/DMEncoderContext.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 688 |
```objective-c
/*
*/
#pragma once
#include "CharacterSet.h"
#include <string>
namespace ZXing {
class ByteArray;
namespace DataMatrix {
enum class SymbolShape;
/**
* DataMatrix ECC 200 data encoder following the algorithm described in ISO/IEC 16022:200(E) in
* annex S.
*/
ByteArray Encode(const std::wstring& ms... | /content/code_sandbox/core/src/datamatrix/DMHighLevelEncoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 111 |
```c++
/*
*/
#include "DMHighLevelEncoder.h"
#include "ByteArray.h"
#include "CharacterSet.h"
#include "DMEncoderContext.h"
#include "TextEncoder.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <limits>
#include ... | /content/code_sandbox/core/src/datamatrix/DMHighLevelEncoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 7,954 |
```objective-c
/*
*/
#pragma once
#ifdef __cpp_impl_coroutine
#include <Generator.h>
#include <DetectorResult.h>
#endif
namespace ZXing {
class BitMatrix;
class DetectorResult;
namespace DataMatrix {
#ifdef __cpp_impl_coroutine
using DetectorResults = Generator<DetectorResult>;
#else
using DetectorResults = Detec... | /content/code_sandbox/core/src/datamatrix/DMDetector.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 101 |
```c++
/*
*/
#include "DMBitLayout.h"
#include "BitArray.h"
#include "BitMatrix.h"
#include "ByteArray.h"
#include "DMVersion.h"
#include <array>
#include <cstddef>
namespace ZXing::DataMatrix {
struct BitPos
{
int row, col;
};
using BitPosArray = std::array<BitPos, 8>;
/**
* VisitMatrix gets a functor/callbac... | /content/code_sandbox/core/src/datamatrix/DMBitLayout.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,773 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.