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 "BarcodeFormat.h"
#include "CharacterSet.h"
#include <string>
namespace ZXing {
class BitMatrix;
/**
* This class is here just for convenience as it offers single-point service
* to generate barcodes for all supported formats. As a result, this class
* offer very limited... | /content/code_sandbox/core/src/MultiFormatWriter.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 320 |
```objective-c
/*
*/
#pragma once
#include "CharacterSet.h"
#include <string>
namespace ZXing {
enum class ECI : int
{
Unknown = -1,
Cp437 = 2, // obsolete
ISO8859_1 = 3,
ISO8859_2 = 4,
ISO8859_3 = 5,
ISO8859_4 = 6,
ISO8859_5 = 7,
ISO8859_6 = 8,
ISO8859_7 = 9,
ISO8859_8 = 10,
ISO8859_9 ... | /content/code_sandbox/core/src/ECI.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 504 |
```objective-c
/*
*/
#pragma once
#include "Range.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <stdexcept>
#include <type_traits>
#include <vector>
namespace ZXing {
class ByteArray;
/**
* A simple, fast array of bits.
*/
class BitArray
{
std::vector<uint8_t> _... | /content/code_sandbox/core/src/BitArray.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,371 |
```c++
/*
*/
#include "CharacterSet.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <cctype>
namespace ZXing {
struct CharacterSetName
{
std::string_view name;
CharacterSet cs;
};
static CharacterSetName NAME_TO_CHARSET[] = {
{"Cp437", CharacterSet::Cp437},
{"ISO-8859-1", CharacterSet::ISO8859_1},... | /content/code_sandbox/core/src/CharacterSet.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 897 |
```objective-c
/*
*/
#pragma once
#include <string>
#include <string_view>
namespace ZXing::TextUtfEncoding {
// The following functions are not required anymore after Barcode::text() now returns utf8 natively and the encoders accept utf8 as well.
[[deprecated]] std::string ToUtf8(std::wstring_view str);
[[depreca... | /content/code_sandbox/core/src/TextUtfEncoding.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 113 |
```objective-c
/*
*/
#pragma once
#include "BarcodeFormat.h"
#include "ReadBarcode.h"
#include "WriteBarcode.h"
#ifdef ZXING_EXPERIMENTAL_API
namespace ZXing {
enum class Operation
{
Create,
Read,
CreateAndRead,
CreateOrRead,
};
BarcodeFormats SupportedBarcodeFormats(Operation op = Operation::CreateOrRead);
... | /content/code_sandbox/core/src/ZXingCpp.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 85 |
```objective-c
/*
*/
#pragma once
#include "Matrix.h"
#include <cstdint>
namespace ZXing {
// TODO: If kept at all, this should be replaced by `using ByteMatrix = Matrix<uint8_t>;` to be consistent with ByteArray
// This non-template class is kept for now to stay source-compatible with older versions of the librar... | /content/code_sandbox/core/src/ByteMatrix.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 154 |
```objective-c
/*
*/
#pragma once
#include "BitMatrix.h"
#include <climits>
namespace ZXing {
enum class Direction { LEFT = -1, RIGHT = 1 };
inline Direction opposite(Direction dir) noexcept
{
return dir == Direction::LEFT ? Direction::RIGHT : Direction::LEFT;
}
/**
* @brief The BitMatrixCursor represents a cu... | /content/code_sandbox/core/src/BitMatrixCursor.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,658 |
```objective-c
/*
*/
#pragma once
#include <string>
#include <string_view>
namespace ZXing {
std::string ToUtf8(std::wstring_view str);
std::wstring FromUtf8(std::string_view utf8);
#if __cplusplus > 201703L
std::wstring FromUtf8(std::u8string_view utf8);
#endif
std::wstring EscapeNonGraphical(std::wstring_view st... | /content/code_sandbox/core/src/Utf.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 103 |
```c++
/*
*/
#include "Barcode.h"
#include "DecoderResult.h"
#include "DetectorResult.h"
#include "ZXAlgorithms.h"
#ifdef ZXING_EXPERIMENTAL_API
#include "BitMatrix.h"
#endif
#ifdef ZXING_USE_ZINT
#include <zint.h>
void zint_symbol_deleter::operator()(zint_symbol* p) const noexcept
{
ZBarcode_Delete(p);
}
#else
st... | /content/code_sandbox/core/src/Barcode.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,702 |
```objective-c
/*
*/
#pragma once
#include "Matrix.h"
#include "Point.h"
#include "Range.h"
#include <cstdint>
#include <stdexcept>
#include <vector>
namespace ZXing {
class BitArray;
class ByteMatrix;
/**
* @brief A simple, fast 2D array of bits.
*/
class BitMatrix
{
int _width = 0;
int _height = 0;
using d... | /content/code_sandbox/core/src/BitMatrix.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,565 |
```objective-c
/*
*/
#pragma once
#include "BitHacks.h"
#include <cstddef>
#include <iterator>
#include <type_traits>
namespace ZXing {
template<typename Enum>
class Flags
{
static_assert(std::is_enum<Enum>::value, "Flags is only usable on enumeration types.");
using Int = typename std::underlying_type<Enum>::t... | /content/code_sandbox/core/src/Flags.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,114 |
```objective-c
/*
*/
#pragma once
#include <vector>
namespace ZXing {
class GenericGF;
/**
* <p>Implements Reed-Solomon decoding, as the name implies.</p>
*
* <p>The algorithm will not be explained here, but the following references were helpful
* in creating this implementation:</p>
*
* <ul>
* <li>Bruce Maggs.
* ... | /content/code_sandbox/core/src/ReedSolomonDecoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 337 |
```c++
/*
*/
#include "ZXingC.h"
#include "ZXingCpp.h"
#include <cstdlib>
#include <exception>
#include <string>
#include <string_view>
#include <tuple>
#include <utility>
using namespace ZXing;
static thread_local std::string lastErrorMsg;
template<typename R, typename T> R transmute_cast(const T& v) noexcept
{
... | /content/code_sandbox/core/src/ZXingC.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,944 |
```objective-c
/*
*/
#pragma once
#include "CharacterSet.h"
#include <string>
namespace ZXing {
class TextEncoder
{
static void GetBytes(const std::string& str, CharacterSet charset, std::string& bytes);
static void GetBytes(const std::wstring& str, CharacterSet charset, std::string& bytes);
public:
static std:... | /content/code_sandbox/core/src/TextEncoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 152 |
```objective-c
/*
*/
#pragma once
#include "ZXAlgorithms.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <vector>
namespace ZXing {
class GenericGF;
/**
* <p>Represents a polynomial whose coefficients are elements of a GF.
* Instances of this class are immutable.</p>
*
* <p>Much credit is d... | /content/code_sandbox/core/src/GenericGFPoly.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 990 |
```c++
/*
*/
#include "GenericGF.h"
namespace ZXing {
const GenericGF &
GenericGF::AztecData12()
{
static GenericGF inst(0x1069, 4096, 1); // x^12 + x^6 + x^5 + x^3 + 1
return inst;
}
const GenericGF &
GenericGF::AztecData10()
{
static GenericGF inst(0x409, 1024, 1); // x^10 + x^3 + 1
return inst;
}
const Gene... | /content/code_sandbox/core/src/GenericGF.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 774 |
```objective-c
/*
*/
#pragma once
#include "Point.h"
#include "Quadrilateral.h"
namespace ZXing {
/**
* <p>This class implements a perspective transform in two dimensions. Given four source and four
* destination points, it will compute the transformation implied between them. The code is based
* directly upon sect... | /content/code_sandbox/core/src/PerspectiveTransform.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 342 |
```c++
/*
*/
#ifdef ZXING_EXPERIMENTAL_API
#include "WriteBarcode.h"
#include "BitMatrix.h"
#if !defined(ZXING_READERS) && !defined(ZXING_WRITERS)
#include "Version.h"
#endif
#include <sstream>
#ifdef ZXING_USE_ZINT
#include <zint.h>
#else
struct zint_symbol {};
#endif // ZXING_USE_ZINT
namespace ZXing {
str... | /content/code_sandbox/core/src/WriteBarcode.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 3,806 |
```objective-c
/*
*/
#pragma once
#include "ZXAlgorithms.h"
#include <iterator>
namespace ZXing {
template <typename Iterator>
struct StrideIter
{
Iterator pos;
int stride;
using iterator_category = std::random_access_iterator_tag;
using difference_type = typename std::iterator_traits<Iterator>::difference_... | /content/code_sandbox/core/src/Range.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 430 |
```objective-c
/*
*/
#pragma once
#include "BitMatrix.h"
#include "Quadrilateral.h"
#include <utility>
namespace ZXing {
/**
* Encapsulates the result of detecting a barcode in an image. This includes the raw
* matrix of black/white pixels corresponding to the barcode and the position of the code
* in the input im... | /content/code_sandbox/core/src/DetectorResult.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 266 |
```objective-c
/*
*/
#pragma once
#include "ReaderOptions.h"
#include "ImageView.h"
#include "Barcode.h"
namespace ZXing {
/**
* Read barcode from an ImageView
*
* @param image view of the image data including layout and format
* @param options optional ReaderOptions to parameterize / speed up detection
* @r... | /content/code_sandbox/core/src/ReadBarcode.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 170 |
```objective-c
/*
*/
#pragma once
#include "Point.h"
#include "ZXAlgorithms.h"
#include <stdexcept>
#include <algorithm>
#include <cassert>
#include <vector>
namespace ZXing {
template <class T>
class Matrix
{
public:
using value_t = T;
private:
int _width = 0;
int _height = 0;
std::vector<value_t> _data;
/... | /content/code_sandbox/core/src/Matrix.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 622 |
```c++
/*
*/
#include "ConcentricFinder.h"
#include "LogMatrix.h"
#include "RegressionLine.h"
#include "ZXAlgorithms.h"
namespace ZXing {
std::optional<PointF> AverageEdgePixels(BitMatrixCursorI cur, int range, int numOfEdges)
{
PointF sum = {};
for (int i = 0; i < numOfEdges; ++i) {
if (!cur.isIn())
return ... | /content/code_sandbox/core/src/ConcentricFinder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,601 |
```c++
/*
*/
#include "ReedSolomonEncoder.h"
#include "GenericGF.h"
#include <algorithm>
#include <iterator>
#include <stdexcept>
namespace ZXing {
ReedSolomonEncoder::ReedSolomonEncoder(const GenericGF& field)
: _field(&field)
{
_cachedGenerators.push_back(GenericGFPoly(field, { 1 }));
}
const GenericGFPoly&
Re... | /content/code_sandbox/core/src/ReedSolomonEncoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 402 |
```c++
/*
*/
#include "TextUtfEncoding.h"
#include "Utf.h"
namespace ZXing::TextUtfEncoding {
std::string ToUtf8(std::wstring_view str)
{
return ZXing::ToUtf8(str);
}
// Same as `ToUtf8()` above, except if angleEscape set, places non-graphical characters in angle brackets with text name
std::string ToUtf8(std::ws... | /content/code_sandbox/core/src/TextUtfEncoding.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 154 |
```objective-c
/*
*/
#pragma once
#include "BarcodeFormat.h"
#include "CharacterSet.h"
#include <string_view>
#include <utility>
namespace ZXing {
/**
* @brief The Binarizer enum
*
* Specify which algorithm to use for the grayscale to binary transformation.
* The difference is how to get to a threshold value T... | /content/code_sandbox/core/src/ReaderOptions.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,794 |
```objective-c
/*
*/
#pragma once
#include "Point.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <cmath>
#include <vector>
#ifdef PRINT_DEBUG
#include <cstdio>
#endif
namespace ZXing {
class RegressionLine
{
protected:
std::vector<PointF> _points;
PointF _directionInward;
PointF::value_t a = NAN, b... | /content/code_sandbox/core/src/RegressionLine.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,366 |
```c++
/*
*/
#include "Error.h"
namespace ZXing {
std::string Error::location() const
{
if (!_file)
return {};
std::string file(_file);
return file.substr(file.find_last_of("/\\") + 1) + ":" + std::to_string(_line);
}
std::string ToString(const Error& e)
{
const char* name[] = {"", "FormatError", "ChecksumEr... | /content/code_sandbox/core/src/Error.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 150 |
```c++
/*
*/
#include "GenericGFPoly.h"
#include "GenericGF.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <cassert>
#include <stdexcept>
namespace ZXing {
int
GenericGFPoly::evaluateAt(int a) const
{
if (a == 0) // return the x^0 coefficient
return constant();
if (a == 1) // return the sum of the... | /content/code_sandbox/core/src/GenericGFPoly.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,250 |
```c++
/*
*/
#include "ECI.h"
#include "ZXAlgorithms.h"
#include <map>
namespace ZXing {
static const std::map<ECI, CharacterSet> ECI_TO_CHARSET = {
{ECI(0), CharacterSet::Cp437}, // Obsolete
{ECI(1), CharacterSet::ISO8859_1}, // Obsolete
{ECI::Cp437, CharacterSet::Cp437}, // Obsolete but still used by PDF4... | /content/code_sandbox/core/src/ECI.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 895 |
```c++
/*
*/
#include "ReadBarcode.h"
#if !defined(ZXING_READERS) && !defined(ZXING_WRITERS)
#include "Version.h"
#endif
#ifdef ZXING_READERS
#include "GlobalHistogramBinarizer.h"
#include "HybridBinarizer.h"
#include "MultiFormatReader.h"
#include "Pattern.h"
#include "ThresholdBinarizer.h"
#endif
#include <climit... | /content/code_sandbox/core/src/ReadBarcode.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,990 |
```objective-c
/*
*/
#pragma once
#include "Error.h"
#include <algorithm>
#include <cstring>
#include <initializer_list>
#include <iterator>
#include <numeric>
#include <string>
#include <utility>
namespace ZXing {
template <class T, class U>
constexpr T narrow_cast(U&& u) noexcept {
return static_cast<T>(std::fo... | /content/code_sandbox/core/src/ZXAlgorithms.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,119 |
```objective-c
/*
*/
#pragma once
#include "Content.h"
#include "Error.h"
#include "StructuredAppend.h"
#include <memory>
#include <string>
#include <utility>
namespace ZXing {
class CustomData;
class DecoderResult
{
Content _content;
std::string _ecLevel;
int _lineCount = 0;
int _versionNumber = 0;
Structur... | /content/code_sandbox/core/src/DecoderResult.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 693 |
```objective-c
/*
*/
#pragma once
// Thread local or static memory may be used to reduce the number of (re-)allocations of temporary variables
// in e.g. the ReedSolomonDecoder. It is disabled by default. It can be enabled by modifying the following define.
// Note: The Apple clang compiler until XCode 8 does not sup... | /content/code_sandbox/core/src/ZXConfig.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 173 |
```objective-c
/*
*/
#pragma once
#include "GlobalHistogramBinarizer.h"
namespace ZXing {
/**
* This class implements a local thresholding algorithm, which while slower than the
* GlobalHistogramBinarizer, is fairly efficient for what it does. It is designed for
* high frequency images of barcodes with black data o... | /content/code_sandbox/core/src/HybridBinarizer.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 318 |
```c++
/*
*/
#define HIDE_DECODE_HINTS_ALIAS
#include "ReadBarcode.h"
namespace ZXing {
// Provide a struct that is binary compatible with ReaderOptions and is actually called DecodeHints so that
// the compiler generates a correctly mangled pair of ReadBarcode(s) symbols to keep backward ABI compatibility.
struct... | /content/code_sandbox/core/src/DecodeHints.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 146 |
```c++
/*
*/
#include "ResultPoint.h"
#include <cmath>
namespace ZXing {
float ResultPoint::Distance(int aX, int aY, int bX, int bY)
{
auto dx = static_cast<float>(aX - bX);
auto dy = static_cast<float>(aY - bY);
return std::sqrt(dx * dx + dy * dy);
}
} // ZXing
``` | /content/code_sandbox/core/src/ResultPoint.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 83 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
class ByteArray;
/**
* <p>This provides an easy abstraction to read bits at a time from a sequence of bytes, where the
* number of bits read is not often a multiple of 8.</p>
*
* <p>This class is thread-safe but not reentrant -- unless the caller modifies the byte... | /content/code_sandbox/core/src/BitSource.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 456 |
```objective-c
/*
*/
#pragma once
#include "BitHacks.h"
#include "Range.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <limits>
#include <vector>
namespace ZXing {
using PatternType = uint16_t;
template<int N> using Pattern = std::... | /content/code_sandbox/core/src/Pattern.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 3,569 |
```objective-c
/*
*/
#pragma once
#include <utility>
namespace ZXing {
/**
* ScopeExit is a trivial helper meant to be later replaced by std::scope_exit from library fundamentals TS v3.
*/
template <typename EF>
class ScopeExit
{
EF fn;
public:
ScopeExit(EF&& fn) : fn(std::move(fn)) {}
~ScopeExit() { fn(); }
... | /content/code_sandbox/core/src/Scope.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 193 |
```objective-c
/* zueci_sb.h - Extended Channel Interpretations single-byte, generated by "tools/gen_zueci_sb_h.php" from
"path_to_url" and
"path_to_url" and
"path_to_url" */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#ifndef ZUECI_SB_H
#define ZUECI_SB_H
/* Tables for EC... | /content/code_sandbox/core/src/libzueci/zueci_sb.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 28,996 |
```objective-c
/* ksx1001.h - tables for Unicode to/from ECI 30 EUC-KR (KS X 1001), generated by "tools/gen_zueci_mb_h.php" from
"path_to_url" */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#ifndef ZUECI_KSX1001_H
#define ZUECI_KSX1001_H
#ifndef ZUECI_EMBED_NO_TO_ECI
/* Unicode us... | /content/code_sandbox/core/src/libzueci/zueci_ksx1001.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 144,066 |
```objective-c
/* gb2312.h - tables for Unicode to/from ECI 29 GB 2312-1980 (EUC-CN), generated by "tools/gen_zueci_mb_h.php" from
"unicode.org-mappings/EASTASIA/GB/GB2312.TXT"
(see path_to_url */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#ifndef ZUECI_GB2312_H
#define ZUECI_... | /content/code_sandbox/core/src/libzueci/zueci_gb2312.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 119,712 |
```objective-c
/* zueci_common.h - shared defines */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#ifndef ZUECI_COMMON_H
#define ZUECI_COMMON_H
#define ZUECI_ASIZE(x) ((int) (sizeof(x) / sizeof((x)[0])))
#define ZUECI_MIN(x, y) (x < y ? x : y)
#if (defined(__GNUC__) || defined(__clang... | /content/code_sandbox/core/src/libzueci/zueci_common.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 292 |
```c
/* zueci.c - UTF-8 to/from Extended Channel Interpretations */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "zueci.h"
#include "zueci_common.h"
#include "zueci_sb.h"
#include "zueci_big5.h"
#include "zueci_gb180... | /content/code_sandbox/core/src/libzueci/zueci.c | c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 20,089 |
```objective-c
/* sjis.h - tables for Unicode to/from ECI 20 Shift JIS, generated by "tools/gen_zueci_mb_h.php" from
"path_to_url" */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#ifndef ZUECI_SJIS_H
#define ZUECI_SJIS_H
#ifndef ZUECI_EMBED_NO_TO_ECI
/* Unicode usage bit-flags for ... | /content/code_sandbox/core/src/libzueci/zueci_sjis.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 116,322 |
```objective-c
/* big5.h - tables for Unicode to/from ECI 28 Big5, generated by "tools/gen_zueci_mb_h.php" from
"path_to_url" */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#ifndef ZUECI_BIG5_H
#define ZUECI_BIG5_H
#ifndef ZUECI_EMBED_NO_TO_ECI
/* Unicode usage bit-flags for URO (... | /content/code_sandbox/core/src/libzueci/zueci_big5.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 193,686 |
```objective-c
/* zueci.h - UTF-8 to/from Extended Channel Interpretations */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#ifndef ZUECI_H
#define ZUECI_H
/* Version: 1.0.1 */
/* Warning and error returns from API functions below */
#define ZUECI_WARN_INVALID_DATA 1 /* Invalid da... | /content/code_sandbox/core/src/libzueci/zueci.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,392 |
```objective-c
/* gb18030.h - tables for Unicode to/from ECI 32 GB 18030-2005, generated by "tools/gen_zueci_mb_h.php" from
"jdk-1.4.2/GB18030.TXT"
(see path_to_url */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#ifndef ZUECI_GB18030_H
#define ZUECI_GB18030_H
#ifndef ZUECI_EMB... | /content/code_sandbox/core/src/libzueci/zueci_gb18030.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 10,840 |
```objective-c
/*
*/
#pragma once
#include "CharacterSet.h"
#include <string>
namespace ZXing {
class BitMatrix;
namespace QRCode {
enum class ErrorCorrectionLevel;
/**
* This object renders a QR Code as a BitMatrix 2D array of greyscale values.
*
* @author dswitkin@google.com (Daniel Switkin)
*/
class Writer
{... | /content/code_sandbox/core/src/qrcode/QRWriter.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 310 |
```objective-c
/*
*/
#pragma once
#include "Point.h"
#include "QRECB.h"
#include "QRErrorCorrectionLevel.h"
#include "ZXAlgorithms.h"
#include <array>
#include <initializer_list>
#include <vector>
namespace ZXing {
class BitMatrix;
namespace QRCode {
// clang-format off
constexpr std::array<PointI, 32> RMQR_SIZE... | /content/code_sandbox/core/src/qrcode/QRVersion.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,235 |
```objective-c
/*
*/
#pragma once
#include "TritMatrix.h"
namespace ZXing {
class BitArray;
namespace QRCode {
enum class ErrorCorrectionLevel;
class Version;
constexpr int NUM_MASK_PATTERNS = 8;
void BuildMatrix(const BitArray& dataBits, ErrorCorrectionLevel ecLevel, const Version& version, int maskPattern, Tr... | /content/code_sandbox/core/src/qrcode/QRMatrixUtil.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 85 |
```objective-c
/*
*/
#pragma once
#include "QRErrorCorrectionLevel.h"
#include <cstdint>
namespace ZXing::QRCode {
static constexpr uint32_t FORMAT_INFO_MASK_MODEL2 = 0x5412;
static constexpr uint32_t FORMAT_INFO_MASK_MODEL1 = 0x2825;
static constexpr uint32_t FORMAT_INFO_MASK_MICRO = 0x4445;
static constexpr uint... | /content/code_sandbox/core/src/qrcode/QRFormatInformation.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 451 |
```c++
/*
*/
#include "QRVersion.h"
#include "BitHacks.h"
#include "BitMatrix.h"
#include "QRECB.h"
#include <limits>
namespace ZXing::QRCode {
/**
* See ISO 18004:2006 Annex D.
* Element i represents the raw version bits that specify version i + 7
*/
static const int VERSION_DECODE_INFO[] = {
0x07C94, 0x08... | /content/code_sandbox/core/src/qrcode/QRVersion.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 9,866 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
class DecoderResult;
class BitMatrix;
namespace QRCode {
DecoderResult Decode(const BitMatrix& bits);
} // QRCode
} // ZXing
``` | /content/code_sandbox/core/src/qrcode/QRDecoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 41 |
```c++
/*
*/
#include "QRCodecMode.h"
#include "Error.h"
#include "QRVersion.h"
#include "ZXAlgorithms.h"
#include <array>
namespace ZXing::QRCode {
CodecMode CodecModeForBits(int bits, Type type)
{
if (type == Type::Micro) {
constexpr CodecMode Bits2Mode[4] = {CodecMode::NUMERIC, CodecMode::ALPHANUMERIC, Codec... | /content/code_sandbox/core/src/qrcode/QRCodecMode.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,242 |
```c++
/*
*/
#include "QREncoder.h"
#include "BitArray.h"
#include "ECI.h"
#include "GenericGF.h"
#include "QREncodeResult.h"
#include "QRErrorCorrectionLevel.h"
#include "QRMaskUtil.h"
#include "QRMatrixUtil.h"
#include "ReedSolomonEncoder.h"
#include "TextEncoder.h"
#include "ZXTestSupport.h"
#include <algorithm>
... | /content/code_sandbox/core/src/qrcode/QREncoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 5,605 |
```objective-c
/*
*/
#pragma once
namespace ZXing::QRCode {
/**
* <p>See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels
* defined by the QR code standard.</p>
*
* @author Sean Owen
*/
enum class ErrorCorrectionLevel
{
Low, // L = ~7 % correction
Medium, // M = ~15% correction
... | /content/code_sandbox/core/src/qrcode/QRErrorCorrectionLevel.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 203 |
```c++
/*
*/
#include "QRDecoder.h"
#include "BitMatrix.h"
#include "BitSource.h"
#include "CharacterSet.h"
#include "DecoderResult.h"
#include "GenericGF.h"
#include "QRBitMatrixParser.h"
#include "QRCodecMode.h"
#include "QRDataBlock.h"
#include "QRFormatInformation.h"
#include "QRVersion.h"
#include "ReedSolomonDe... | /content/code_sandbox/core/src/qrcode/QRDecoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 3,599 |
```objective-c
/*
*/
#pragma once
#include "ConcentricFinder.h"
#include "DetectorResult.h"
#include <vector>
namespace ZXing {
class DetectorResult;
class BitMatrix;
namespace QRCode {
struct FinderPatternSet
{
ConcentricPattern bl, tl, tr;
};
using FinderPatterns = std::vector<ConcentricPattern>;
using Finde... | /content/code_sandbox/core/src/qrcode/QRDetector.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 210 |
```c++
/*
*/
#include "QRFormatInformation.h"
#include "BitHacks.h"
#include "ZXAlgorithms.h"
namespace ZXing::QRCode {
static uint32_t MirrorBits(uint32_t bits)
{
return BitHacks::Reverse(bits) >> 17;
}
static FormatInformation FindBestFormatInfo(const std::vector<uint32_t>& masks, const std::vector<uint32_t>& b... | /content/code_sandbox/core/src/qrcode/QRFormatInformation.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,618 |
```objective-c
/*
*/
#pragma once
#include "Reader.h"
namespace ZXing::QRCode {
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/qrcode/QRReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 77 |
```c++
/*
*/
#include "QRErrorCorrectionLevel.h"
#include <cassert>
namespace ZXing::QRCode {
const char* ToString(ErrorCorrectionLevel l)
{
assert(l != ErrorCorrectionLevel::Invalid);
static const char* const LEVEL_STR[] = {"L", "M", "Q", "H", nullptr};
return LEVEL_STR[static_cast<int>(l)];
}
ErrorCorrectionL... | /content/code_sandbox/core/src/qrcode/QRErrorCorrectionLevel.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 358 |
```c++
/*
*/
#include "QRWriter.h"
#include "BitMatrix.h"
#include "CharacterSet.h"
#include "QREncodeResult.h"
#include "QREncoder.h"
#include "QRErrorCorrectionLevel.h"
#include "Utf.h"
#include <stdexcept>
#include <utility>
namespace ZXing::QRCode {
static const int QUIET_ZONE_SIZE = 4;
Writer::Writer()
: _m... | /content/code_sandbox/core/src/qrcode/QRWriter.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 284 |
```objective-c
/*
*/
#pragma once
#include "BitMatrix.h"
#include <array>
#include <stdexcept>
namespace ZXing::QRCode {
/**
* <p>Encapsulates data masks for the data bits in a QR and micro QR code, per ISO 18004:2006 6.8.</p>
*
* <p>Note that the diagram in section 6.8.1 is misleading since it indicates that i i... | /content/code_sandbox/core/src/qrcode/QRDataMask.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 440 |
```objective-c
/*
*/
#pragma once
#include <array>
namespace ZXing::QRCode {
/**
* <p>Encapsulates the parameters for one error-correction block in one symbol version.
* This includes the number of data codewords, and the number of times a block with these
* parameters is used consecutively in the QR code version's... | /content/code_sandbox/core/src/qrcode/QRECB.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 340 |
```objective-c
/*
*/
#pragma once
#include "QRErrorCorrectionLevel.h"
namespace ZXing {
class BitMatrix;
class ByteArray;
namespace QRCode {
class Version;
class FormatInformation;
/**
* @brief Reads version information from the QR Code.
* @return {@link Version} encapsulating the QR Code's version, nullptr if... | /content/code_sandbox/core/src/qrcode/QRBitMatrixParser.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 229 |
```objective-c
/*
*/
#pragma once
#include "ByteArray.h"
#include <vector>
namespace ZXing::QRCode {
class Version;
enum class ErrorCorrectionLevel;
/**
* <p>Encapsulates a block of data within a QR Code. QR Codes may split their data into
* multiple blocks, each of which is a unit of data and error-correction co... | /content/code_sandbox/core/src/qrcode/QRDataBlock.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 349 |
```c++
/*
*/
#include "QRDataBlock.h"
#include "QRErrorCorrectionLevel.h"
#include "QRVersion.h"
#include "ZXAlgorithms.h"
namespace ZXing::QRCode {
std::vector<DataBlock> DataBlock::GetDataBlocks(const ByteArray& rawCodewords, const Version& version, ErrorCorrectionLevel ecLevel)
{
if (Size(rawCodewords) != versi... | /content/code_sandbox/core/src/qrcode/QRDataBlock.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 721 |
```objective-c
/*
*/
#pragma once
namespace ZXing::QRCode {
enum class Type;
class Version;
/**
* <p>See ISO 18004:2006, 6.4.1, Tables 2 and 3. This enum encapsulates the various modes in which
* data can be encoded to bits in the QR code standard.</p>
*/
enum class CodecMode
{
TERMINATOR = 0x00, // Not ... | /content/code_sandbox/core/src/qrcode/QRCodecMode.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 416 |
```c++
/*
*/
#include "QRReader.h"
#include "BinaryBitmap.h"
#include "ConcentricFinder.h"
#include "ReaderOptions.h"
#include "DecoderResult.h"
#include "DetectorResult.h"
#include "LogMatrix.h"
#include "QRDecoder.h"
#include "QRDetector.h"
#include "Barcode.h"
#include <utility>
namespace ZXing::QRCode {
Barcod... | /content/code_sandbox/core/src/qrcode/QRReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,108 |
```c++
/*
*/
#include "QRMatrixUtil.h"
#include "BitArray.h"
#include "BitHacks.h"
#include "QRDataMask.h"
#include "QRErrorCorrectionLevel.h"
#include "QRVersion.h"
#include <stdexcept>
#include <string>
namespace ZXing::QRCode {
// From Appendix D in JISX0510:2004 (p. 67)
static const int VERSION_INFO_POLY = 0x1... | /content/code_sandbox/core/src/qrcode/QRMatrixUtil.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 3,364 |
```c++
/*
*/
#include "QRMaskUtil.h"
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdlib>
#include <utility>
namespace ZXing::QRCode::MaskUtil {
// Penalty weights from section 6.8.2.1
static const int N1 = 3;
static const int N2 = 3;
static const int N3 = 40;
static const int N4 = 10;
/**
*... | /content/code_sandbox/core/src/qrcode/QRMaskUtil.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,445 |
```objective-c
/*
*/
#pragma once
#include "TritMatrix.h"
namespace ZXing::QRCode::MaskUtil {
int CalculateMaskPenalty(const TritMatrix& matrix);
} // namespace ZXing::QRCode::MaskUtil
``` | /content/code_sandbox/core/src/qrcode/QRMaskUtil.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 46 |
```objective-c
/*
*/
#pragma once
#include "BitMatrix.h"
#include "ByteArray.h"
#include "QRCodecMode.h"
#include "QRVersion.h"
namespace ZXing::QRCode {
/**
* @author satorux@google.com (Satoru Takabayashi) - creator
* @author dswitkin@google.com (Daniel Switkin) - ported from C++
*
* Original class name in Java w... | /content/code_sandbox/core/src/qrcode/QREncodeResult.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 171 |
```objective-c
/*
*/
#pragma once
#include "CharacterSet.h"
#include <string>
namespace ZXing::QRCode {
enum class ErrorCorrectionLevel;
class EncodeResult;
EncodeResult Encode(const std::wstring& content, ErrorCorrectionLevel ecLevel, CharacterSet encoding, int versionNumber,
bool useGs1Format, int maskPatt... | /content/code_sandbox/core/src/qrcode/QREncoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 79 |
```c++
/*
*/
#include "QRBitMatrixParser.h"
#include "BitArray.h"
#include "BitMatrix.h"
#include "ByteArray.h"
#include "QRDataMask.h"
#include "QRFormatInformation.h"
#include "QRVersion.h"
#include <utility>
namespace ZXing::QRCode {
static bool getBit(const BitMatrix& bitMatrix, int x, int y, bool mirrored = f... | /content/code_sandbox/core/src/qrcode/QRBitMatrixParser.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 3,059 |
```c++
/*
*/
#include "QRDetector.h"
#include "BitArray.h"
#include "BitMatrix.h"
#include "BitMatrixCursor.h"
#include "ConcentricFinder.h"
#include "GridSampler.h"
#include "LogMatrix.h"
#include "Pattern.h"
#include "QRFormatInformation.h"
#include "QRVersion.h"
#include "Quadrilateral.h"
#include "RegressionLine.... | /content/code_sandbox/core/src/qrcode/QRDetector.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 9,120 |
```c++
/*
*/
#include "MCReader.h"
#include "BinaryBitmap.h"
#include "BitMatrix.h"
#include "DecoderResult.h"
#include "DetectorResult.h"
#include "MCBitMatrixParser.h"
#include "MCDecoder.h"
#include "Barcode.h"
namespace ZXing::MaxiCode {
/**
* This method detects a code in a "pure" image -- that is, pure monoch... | /content/code_sandbox/core/src/maxicode/MCReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 489 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
class DecoderResult;
class BitMatrix;
namespace MaxiCode {
DecoderResult Decode(const BitMatrix& bits);
} // MaxiCode
} // ZXing
``` | /content/code_sandbox/core/src/maxicode/MCDecoder.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 43 |
```c++
/*
*/
#include "MCDecoder.h"
#include "ByteArray.h"
#include "CharacterSet.h"
#include "DecoderResult.h"
#include "GenericGF.h"
#include "MCBitMatrixParser.h"
#include "ReedSolomonDecoder.h"
#include "ZXTestSupport.h"
#include <algorithm>
#include <array>
#include <cstdint>
#include <string>
#include <utility... | /content/code_sandbox/core/src/maxicode/MCDecoder.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 4,264 |
```objective-c
/*
*/
#pragma once
namespace ZXing {
class ByteArray;
class BitMatrix;
namespace MaxiCode {
/**
* @author mike32767
* @author Manuel Kasten
*/
class BitMatrixParser
{
public:
static ByteArray ReadCodewords(const BitMatrix& image);
static const int MATRIX_WIDTH = 30;
static const int MATRIX_HEIGH... | /content/code_sandbox/core/src/maxicode/MCBitMatrixParser.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 89 |
```c++
/*
*/
#include "MCBitMatrixParser.h"
#include "BitMatrix.h"
#include "ByteArray.h"
#include <array>
namespace ZXing::MaxiCode {
static const std::array<std::array<int, BitMatrixParser::MATRIX_WIDTH>, BitMatrixParser::MATRIX_HEIGHT> BITNR = {
121,120,127,126,133,132,139,138,145,144,151,150,157,156,163,162,1... | /content/code_sandbox/core/src/maxicode/MCBitMatrixParser.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,450 |
```objective-c
/*
*/
#pragma once
#include "Reader.h"
namespace ZXing::MaxiCode {
class Reader : public ZXing::Reader
{
public:
using ZXing::Reader::Reader;
Barcode decode(const BinaryBitmap& image) const override;
};
} // namespace ZXing::MaxiCode
``` | /content/code_sandbox/core/src/maxicode/MCReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 62 |
```c++
/*
*/
#include "ODCode93Reader.h"
#include "Barcode.h"
#include "ZXAlgorithms.h"
#include <array>
#include <string>
namespace ZXing::OneD {
// Note that 'abcd' are dummy characters in place of control characters.
static const char ALPHABET[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*";
/**
* Each ... | /content/code_sandbox/core/src/oned/ODCode93Reader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,450 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
class Code39Reader : public RowReader
{
public:
/**
* Creates a reader that can be configured to check the last character as a check digit,
* or optionally attempt to decode "extended Code 39" sequences that are used to encode
* ... | /content/code_sandbox/core/src/oned/ODCode39Reader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 126 |
```objective-c
/*
*/
#pragma once
#include "Reader.h"
#include <memory>
#include <vector>
namespace ZXing {
class ReaderOptions;
namespace OneD {
class RowReader;
class Reader : public ZXing::Reader
{
public:
explicit Reader(const ReaderOptions& opts);
~Reader() override;
Barcode decode(const BinaryBitmap& ... | /content/code_sandbox/core/src/oned/ODReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 118 |
```objective-c
/*
*/
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
class Code128Reader : 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/ODCode128Reader.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 "BitArray.h"
#include "Pattern.h"
#include "Barcode.h"
#include "ZXAlgorithms.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstddef>
#include <iterator>
#include <limits>
#include <memory>
/*
Code39 : 1:2/3, 5+4+1 (0x3|2x1 wide) -> 12-15 mods, v1-? ... | /content/code_sandbox/core/src/oned/ODRowReader.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,200 |
```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 EAN8Writer
{
public:
EAN8Writer& setMargin(int sidesMargin) { _sidesMargin = sidesMargin; re... | /content/code_sandbox/core/src/oned/ODEAN8Writer.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 150 |
```c++
/*
*/
#include "ODEAN8Writer.h"
#include "ODUPCEANCommon.h"
#include "ODWriterHelper.h"
#include "Utf.h"
#include <vector>
namespace ZXing::OneD {
static const int CODE_WIDTH = 3 + // start guard
(7 * 4) + // left bars
5 + // middle guard
... | /content/code_sandbox/core/src/oned/ODEAN8Writer.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 386 |
```c++
/*
*/
#include "ODDataBarReader.h"
#include "BarcodeFormat.h"
#include "DecoderResult.h"
#include "DetectorResult.h"
#include "GTIN.h"
#include "ODDataBarCommon.h"
#include "Barcode.h"
#include <cmath>
#include <unordered_set>
namespace ZXing::OneD {
using namespace DataBar;
static bool IsCharacterPair(Pat... | /content/code_sandbox/core/src/oned/ODDataBarReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,389 |
```objective-c
/*
*/
#pragma once
#include <string>
namespace ZXing {
class BitMatrix;
namespace OneD {
/**
* This class renders CodaBar as {@code boolean[]}.
*
* @author dsbnatut@gmail.com (Kazuki Nishiura)
*/
class CodabarWriter
{
public:
CodabarWriter& setMargin(int sidesMargin) { _sidesMargin = sidesMargin; ... | /content/code_sandbox/core/src/oned/ODCodabarWriter.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 148 |
```c++
/*
*/
#include "ODCode128Reader.h"
#include "ODCode128Patterns.h"
#include "Barcode.h"
#include "ZXAlgorithms.h"
#include <array>
#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>
namespace ZXing::OneD {
static const float MAX_AVG_VARIANCE = 0.25f;
static const float MAX_INDIVIDUAL_V... | /content/code_sandbox/core/src/oned/ODCode128Reader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 2,260 |
```c++
/*
*/
#include "ODDataBarCommon.h"
#include <cmath>
namespace ZXing::OneD::DataBar {
static int combins(int n, int r)
{
int maxDenom;
int minDenom;
if (n - r > r) {
minDenom = r;
maxDenom = n - r;
} else {
minDenom = n - r;
maxDenom = r;
}
int val = 1;
int j = 1;
for (int i = n; i > maxDeno... | /content/code_sandbox/core/src/oned/ODDataBarCommon.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,717 |
```c++
/*
*/
#include "ODCode39Reader.h"
#include "ReaderOptions.h"
#include "Barcode.h"
#include "ZXAlgorithms.h"
#include <array>
namespace ZXing::OneD {
static const char ALPHABET[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*";
/**
* Each character consists of 5 bars and 4 spaces, 3 of which are wide (i.e.... | /content/code_sandbox/core/src/oned/ODCode39Reader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,794 |
```c++
/*
*/
#include "ODCode93Writer.h"
#include "ODWriterHelper.h"
#include "Utf.h"
#include "ZXAlgorithms.h"
#include "ZXTestSupport.h"
#include <stdexcept>
namespace ZXing::OneD {
static const char ALPHABET[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*";
/**
* These represent the encodings of characte... | /content/code_sandbox/core/src/oned/ODCode93Writer.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 1,772 |
```c++
/*
*/
#include "ODDataBarExpandedReader.h"
#include "BarcodeFormat.h"
#include "DecoderResult.h"
#include "DetectorResult.h"
#include "ODDataBarCommon.h"
#include "ODDataBarExpandedBitDecoder.h"
#include "Barcode.h"
#include <cmath>
#include <map>
#include <vector>
namespace ZXing::OneD {
using namespace Da... | /content/code_sandbox/core/src/oned/ODDataBarExpandedReader.cpp | c++ | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 4,283 |
```objective-c
/* gbk.h - tables for Unicode to/from ECI 31 GBK (excl. GB 2312), generated by "tools/gen_zueci_mb_h.php" from
"path_to_url" */
/*
libzueci - an open source UTF-8 ECI library adapted from libzint
*/
#ifndef ZUECI_GBK_H
#define ZUECI_GBK_H
#ifndef ZUECI_EMBED_NO_TO_ECI
/* Unicode usage bit-fla... | /content/code_sandbox/core/src/libzueci/zueci_gbk.h | objective-c | 2016-04-12T22:33:06 | 2024-08-15T07:35:29 | zxing-cpp | zxing-cpp/zxing-cpp | 1,205 | 201,239 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.