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 // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface ZXIGTIN : NSObject @property(nonatomic, nonnull)NSString *country; @property(nonatomic, nonnull)NSString *addOn; @property(nonatomic, nonnull)NSString *price; @property(nonatomic, nonnull)NSString *issueNumber; - (instancetype)i...
/content/code_sandbox/wrappers/ios/Sources/Wrapper/Reader/ZXIGTIN.h
objective-c
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
99
```xml // #import "ZXIGTIN.h" @implementation ZXIGTIN - (instancetype)initWithCountry:(NSString *)country addOn:(NSString *)addOn price:(NSString *)price issueNumber:(NSString *)issueNumber { self = [super init]; self.country = country; ...
/content/code_sandbox/wrappers/ios/Sources/Wrapper/Reader/ZXIGTIN.mm
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
92
```xml // #import "ZXIResult.h" @implementation ZXIResult - (instancetype)init:(NSString *)text format:(ZXIFormat)format bytes:(NSData *)bytes position:(ZXIPosition *)position orientation:(NSInteger)orientation ecLevel:(NSString *)ecLevel symbologyIdenti...
/content/code_sandbox/wrappers/ios/Sources/Wrapper/Reader/ZXIResult.mm
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
242
```xml // #import "ZXIReaderOptions.h" #import "ReaderOptions.h" @interface ZXIReaderOptions() @property(nonatomic) ZXing::ReaderOptions cppOpts; @end @implementation ZXIReaderOptions -(instancetype)init { self = [super init]; self.cppOpts = ZXing::ReaderOptions(); return self; } -(BOOL)tryHarder { ...
/content/code_sandbox/wrappers/ios/Sources/Wrapper/Reader/ZXIReaderOptions.mm
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,634
```xml // #import "ZXIBarcodeReader.h" #import "ReadBarcode.h" #import "ImageView.h" #import "Barcode.h" #import "GTIN.h" #import "ZXIFormatHelper.h" #import "ZXIPosition+Helper.h" #import "ZXIErrors.h" using namespace ZXing; NSString *stringToNSString(const std::string &text) { return [[NSString alloc]initWithB...
/content/code_sandbox/wrappers/ios/Sources/Wrapper/Reader/ZXIBarcodeReader.mm
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,335
```objective-c // #import <Foundation/Foundation.h> #import "ZXIFormat.h" NS_ASSUME_NONNULL_BEGIN extern const int AZTEC_ERROR_CORRECTION_0; extern const int AZTEC_ERROR_CORRECTION_12; extern const int AZTEC_ERROR_CORRECTION_25; extern const int AZTEC_ERROR_CORRECTION_37; extern const int AZTEC_ERROR_CORRECTION_50; ...
/content/code_sandbox/wrappers/ios/Sources/Wrapper/Writer/ZXIWriterOptions.h
objective-c
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
389
```objective-c // #import <Foundation/Foundation.h> #import "ZXIWriterOptions.h" NS_ASSUME_NONNULL_BEGIN @interface ZXIBarcodeWriter : NSObject @property(nonatomic, strong) ZXIWriterOptions *options; -(instancetype)initWithOptions:(ZXIWriterOptions*)options; -(nullable CGImageRef)writeString:(NSString *)contents ...
/content/code_sandbox/wrappers/ios/Sources/Wrapper/Writer/ZXIBarcodeWriter.h
objective-c
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
115
```xml // #import "ZXIWriterOptions.h" const int AZTEC_ERROR_CORRECTION_0 = 0; const int AZTEC_ERROR_CORRECTION_12 = 1; const int AZTEC_ERROR_CORRECTION_25 = 2; const int AZTEC_ERROR_CORRECTION_37 = 3; const int AZTEC_ERROR_CORRECTION_50 = 4; const int AZTEC_ERROR_CORRECTION_62 = 5; const int AZTEC_ERROR_CORRECTION_7...
/content/code_sandbox/wrappers/ios/Sources/Wrapper/Writer/ZXIWriterOptions.mm
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
474
```xml // #import <CoreGraphics/CoreGraphics.h> #import "ZXIBarcodeWriter.h" #import "ZXIWriterOptions.h" #import "MultiFormatWriter.h" #import "BitMatrix.h" #import "BitMatrixIO.h" #import "ZXIFormatHelper.h" #import "ZXIErrors.h" #import <iostream> using namespace ZXing; std::wstring NSStringToStringW(NSString* st...
/content/code_sandbox/wrappers/ios/Sources/Wrapper/Writer/ZXIBarcodeWriter.mm
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
879
```unknown <?xml version="1.0" encoding="UTF-8"?> <Workspace version = "1.0"> <FileRef location = "self:"> </FileRef> </Workspace> ```
/content/code_sandbox/wrappers/ios/demo/demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
unknown
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
46
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>IDEDidComputeMac32BitWarning</key> <true/> </dict> </plist> ```
/content/code_sandbox/wrappers/ios/demo/demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
72
```unknown <?xml version="1.0" encoding="UTF-8"?> <Scheme LastUpgradeVersion = "1340" version = "1.3"> <BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES"> <BuildActionEntries> <BuildActionEntry buildForTesting = "YES" buildForRunning ...
/content/code_sandbox/wrappers/ios/demo/demo.xcodeproj/xcshareddata/xcschemes/demo.xcscheme
unknown
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
710
```swift // // demo // // import UIKit import ZXingCpp class WriteViewController: UIViewController { @IBOutlet fileprivate var imageView: UIImageView! // MARK: - Actions @IBAction func textFieldChanged(_ sender: UITextField) { let options = ZXIWriterOptions(format: .QR_CODE, width: 200, height:...
/content/code_sandbox/wrappers/ios/demo/demo/WriteViewController.swift
swift
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
141
```swift // demo // // import UIKit class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { // Use this method to optionally configure and attach the U...
/content/code_sandbox/wrappers/ios/demo/demo/SceneDelegate.swift
swift
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
452
```swift // demo // // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. ...
/content/code_sandbox/wrappers/ios/demo/demo/AppDelegate.swift
swift
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
241
```swift // demo // // import UIKit import AVFoundation import ZXingCpp class ViewController: UIViewController { let captureSession = AVCaptureSession() lazy var preview = AVCaptureVideoPreviewLayer(session: captureSession) let queue = DispatchQueue(label: "com.zxing_cpp.ios.demo") let reader = ZXIBa...
/content/code_sandbox/wrappers/ios/demo/demo/ViewController.swift
swift
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
566
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>UIApplicationSceneManifest</key> <dict> <key>UIApplicationSupportsMultipleScenes</key> <false/> <key>UISceneConfigurations</key> <dict> <key>UIWindowSceneSessi...
/content/code_sandbox/wrappers/ios/demo/demo/Info.plist
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
213
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" color...
/content/code_sandbox/wrappers/ios/demo/demo/Base.lproj/LaunchScreen.storyboard
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
417
```unknown // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 55; objects = { /* Begin PBXBuildFile section */ 388BF029283CC49D005CE271 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388BF028283CC49D005CE271 /* AppDelegate.swift */; }; 388BF02B283CC49D005CE271 /* SceneDele...
/content/code_sandbox/wrappers/ios/demo/demo.xcodeproj/project.pbxproj
unknown
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
5,122
```kotlin pluginManagement { repositories { mavenLocal() gradlePluginPortal() google() mavenCentral() } } plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0" } dependencyResolutionManagement { repositories { google() mavenCent...
/content/code_sandbox/wrappers/kn/settings.gradle.kts
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
82
```xml <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="y...
/content/code_sandbox/wrappers/ios/demo/demo/Base.lproj/Main.storyboard
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,711
```batchfile @rem @rem @rem @rem path_to_url @rem @rem Unless required by applicable law or agreed to in writing, software @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @rem @if "%DEBUG%" == "" @echo off @rem #########################################################################...
/content/code_sandbox/wrappers/kn/gradlew.bat
batchfile
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
590
```kotlin import io.github.isning.gradle.plugins.cmake.params.CustomCMakeParams import io.github.isning.gradle.plugins.cmake.params.entries.CustomCMakeCacheEntries import io.github.isning.gradle.plugins.cmake.params.entries.asCMakeParams import io.github.isning.gradle.plugins.cmake.params.entries.platform.ModifiablePla...
/content/code_sandbox/wrappers/kn/build.gradle.kts
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,495
```ini kotlin.code.style=official kotlin.mpp.enableCInteropCommonization=true ```
/content/code_sandbox/wrappers/kn/gradle.properties
ini
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
18
```toml [versions] kotlin = "1.9.22" krossCompile = "0.1.9" [libraries] [plugins] kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" } krossCompile = { id = "io.github.isning.gradle.plugins.kn.krossCompile", version.ref = "krossCompile" } ```
/content/code_sandbox/wrappers/kn/gradle/libs.versions.toml
toml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
83
```ini distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists ```
/content/code_sandbox/wrappers/kn/gradle/wrapper/gradle-wrapper.properties
ini
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
54
```kotlin /* */ package zxingcpp import cnames.structs.ZXing_CreatorOptions import cnames.structs.ZXing_WriterOptions import kotlinx.cinterop.* import zxingcpp.cinterop.* import kotlin.experimental.ExperimentalNativeApi import kotlin.native.ref.createCleaner // TODO: Remove this annotation when the API is stable @Re...
/content/code_sandbox/wrappers/kn/src/nativeMain/kotlin/zxingcpp/BarcodeWriter.kt
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
675
```unknown #!/bin/sh # # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # ############################################################################## # # Gradle start up script for POSIX gener...
/content/code_sandbox/wrappers/kn/gradlew
unknown
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,929
```kotlin /* */ package zxingcpp import cnames.structs.ZXing_Barcode import cnames.structs.ZXing_Barcodes import kotlinx.cinterop.* import zxingcpp.cinterop.* import zxingcpp.cinterop.ZXing_ContentType.* import kotlin.experimental.ExperimentalNativeApi import kotlin.native.ref.createCleaner @OptIn(ExperimentalForeig...
/content/code_sandbox/wrappers/kn/src/nativeMain/kotlin/zxingcpp/Barcode.kt
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,506
```kotlin /* */ package zxingcpp import cnames.structs.ZXing_ReaderOptions import kotlinx.cinterop.* import zxingcpp.cinterop.* import zxingcpp.cinterop.ZXing_Binarizer.* import zxingcpp.cinterop.ZXing_EanAddOnSymbol.* import zxingcpp.cinterop.ZXing_TextMode.* import kotlin.experimental.ExperimentalNativeApi import k...
/content/code_sandbox/wrappers/kn/src/nativeMain/kotlin/zxingcpp/BarcodeReader.kt
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,270
```kotlin /* */ package zxingcpp import kotlinx.cinterop.ExperimentalForeignApi import zxingcpp.cinterop.* @OptIn(ExperimentalForeignApi::class) enum class BarcodeFormat(internal val rawValue: UInt) { None(ZXing_BarcodeFormat_None), Aztec(ZXing_BarcodeFormat_Aztec), Codabar(ZXing_BarcodeFormat_Codabar), Code39(Z...
/content/code_sandbox/wrappers/kn/src/nativeMain/kotlin/zxingcpp/BarcodeFormat.kt
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
425
```kotlin /* */ import zxingcpp.* import kotlin.experimental.ExperimentalNativeApi import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals import kotlin.test.assertNotNull class BarcodeReaderTest { @Test @OptIn(ExperimentalNativeApi::class) fun `read barcode`() { val data ...
/content/code_sandbox/wrappers/kn/src/nativeTest/kotlin/Test.kt
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
587
```kotlin /* */ package zxingcpp import cnames.structs.ZXing_Image import cnames.structs.ZXing_ImageView import kotlinx.cinterop.* import zxingcpp.cinterop.* import kotlin.experimental.ExperimentalNativeApi import kotlin.native.ref.createCleaner @OptIn(ExperimentalForeignApi::class) class ImageView( val data: ByteA...
/content/code_sandbox/wrappers/kn/src/nativeMain/kotlin/zxingcpp/ImageView.kt
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
666
```c /* */ #include "ZXingC.h" #include <stdio.h> #include <stdlib.h> #define STB_IMAGE_IMPLEMENTATION #define STBI_NO_LINEAR // prevent dependency on -lm #define STBI_NO_HDR #include <stb_image.h> int usage(char* pname) { fprintf(stderr, "Usage: %s FILE [FORMATS]\n", pname); return 1; } bool parse_args(int argc...
/content/code_sandbox/wrappers/c/ZXingCTest.c
c
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,138
```python import sys import zxingcpp from PIL import Image if len(sys.argv) < 3: format, content = zxingcpp.BarcodeFormat.QRCode, "I have the best words." else: format, content = zxingcpp.barcode_format_from_str(sys.argv[1]), sys.argv[2] # old writer API img = zxingcpp.write_barcode(format, content, width=200, heig...
/content/code_sandbox/wrappers/python/demo_writer.py
python
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
187
```cmake macro(zxing_add_package_stb) unset (STB_FOUND CACHE) if (ZXING_DEPENDENCIES STREQUAL "AUTO") find_package(PkgConfig) pkg_check_modules (STB IMPORTED_TARGET stb) elseif (ZXING_DEPENDENCIES STREQUAL "LOCAL") find_package(PkgConfig REQUIRED) pkg_check_modules (STB REQ...
/content/code_sandbox/wrappers/python/zxing.cmake
cmake
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
460
```python import importlib.util import unittest import math import platform import zxingcpp has_numpy = importlib.util.find_spec('numpy') is not None has_pil = importlib.util.find_spec('PIL') is not None has_cv2 = importlib.util.find_spec('cv2') is not None BF = zxingcpp.BarcodeFormat CT = zxingcpp.ContentType clas...
/content/code_sandbox/wrappers/python/test.py
python
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,623
```unknown global-include CMakeLists.txt include zxing.cpp include zxing.cmake graft core/ ```
/content/code_sandbox/wrappers/python/MANIFEST.in
unknown
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
24
```python import os import platform import subprocess import sys from setuptools import setup, Extension from setuptools.command.build_ext import build_ext # Adapted from here: path_to_url class CMakeExtension(Extension): def __init__(self, name, sourcedir=''): Extension.__init__(self, name, sources=[]) self.so...
/content/code_sandbox/wrappers/python/setup.py
python
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
673
```toml [build-system] requires = [ "setuptools>=42", "setuptools_scm", "wheel", "cmake>=3.15", "pybind11[global]", ] build-backend = "setuptools.build_meta" ```
/content/code_sandbox/wrappers/python/pyproject.toml
toml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
53
```python import sys, zxingcpp from PIL import Image img = Image.open(sys.argv[1]) barcodes = zxingcpp.read_barcodes(img) for barcode in barcodes: print('Found barcode:' f'\n Text: "{barcode.text}"' f'\n Format: {barcode.format}' f'\n Content: {barcode.content_type}' f'\n Position: {barcode.position}') ...
/content/code_sandbox/wrappers/python/demo_reader.py
python
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
108
```toml max_width = 135 hard_tabs = true tab_spaces = 4 newline_style = "Auto" use_small_heuristics = "Default" fn_call_width = 100 attr_fn_like_width = 70 struct_lit_width = 18 struct_variant_width = 35 array_width = 100 chain_width = 100 single_line_if_else_max_width = 70 short_array_element_width_threshold = 10 fn_p...
/content/code_sandbox/wrappers/rust/rustfmt.toml
toml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
107
```rust use std::env; fn main() -> miette::Result<()> { if cfg!(feature = "bundled") { // Builds the project in the directory located in `core`, installing it into $OUT_DIR let mut dst = cmake::Config::new("core") .define("BUILD_SHARED_LIBS", "OFF") .define("ZXING_READERS", "ON") .define("ZXING_WRITERS",...
/content/code_sandbox/wrappers/rust/build.rs
rust
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
423
```rust /* */ #[cfg(test)] mod tests { use crate::*; #[test] fn barcode_formats_from_str_valid() { let formats = BarcodeFormats::from_str("qrcode,linearcodes").unwrap(); assert_eq!(formats, BarcodeFormat::QRCode | BarcodeFormat::LinearCodes); } #[test] fn barcode_reader_new() { let mut o1 = BarcodeReader...
/content/code_sandbox/wrappers/rust/src/tests.rs
rust
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
914
```c++ /* */ #include "BarcodeFormat.h" // Reader #include "ReadBarcode.h" #include "ZXAlgorithms.h" // Writer #ifdef ZXING_EXPERIMENTAL_API #include "WriteBarcode.h" #else #include "BitMatrix.h" #include "Matrix.h" #include "MultiFormatWriter.h" #include <cstring> #endif #include <pybind11/pybind11.h> #include <p...
/content/code_sandbox/wrappers/python/zxing.cpp
c++
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
6,750
```rust /* */ #![allow(unknown_lints)] // backward compatibility #![allow(unused_unsafe)] #![allow(clippy::useless_transmute)] #![allow(clippy::redundant_closure_call)] #![allow(clippy::missing_transmute_annotations)] // introduced in 1.79 mod tests; #[allow(dead_code)] #[allow(non_camel_case_types)] #[allow(non_sna...
/content/code_sandbox/wrappers/rust/src/lib.rs
rust
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
4,942
```rust /* */ use image; use std::fs; use zxingcpp::*; fn main() -> anyhow::Result<()> { let text = std::env::args().nth(1).expect("no input text provided"); let format = std::env::args().nth(2).expect("no format provided"); let filename = std::env::args().nth(3).expect("no output file name provided"); let creat...
/content/code_sandbox/wrappers/rust/examples/demo_writer.rs
rust
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
177
```rust /* */ use zxingcpp::*; fn main() -> anyhow::Result<()> { let filename = std::env::args().nth(1).expect("no image file name provided"); let formats = std::env::args().nth(2); let fast = std::env::args().nth(3).is_some(); let image = image::open(&filename)?; #[cfg(not(feature = "image"))] let lum_img = ...
/content/code_sandbox/wrappers/rust/examples/demo_reader.rs
rust
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
375
```rust /* automatically generated by rust-bindgen 0.69.2 */ #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ZXing_Barcode { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ZXing_Barcodes { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ZXing_ImageView { _unused:...
/content/code_sandbox/wrappers/rust/src/bindings.rs
rust
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
4,138
```kotlin pluginManagement { repositories { gradlePluginPortal() google() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { mavenCentral() google() } } include(":app") include(":zxingcpp") rootProject.n...
/content/code_sandbox/wrappers/android/settings.gradle.kts
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
70
```kotlin plugins { base alias(libs.plugins.android.application) apply false alias(libs.plugins.android.library) apply false alias(libs.plugins.kotlin.android) apply false } tasks.named<Delete>("clean") { val buildDirs = allprojects.map { it.layout.buildDirectory.asFile } delete(buildDirs) } `...
/content/code_sandbox/wrappers/android/build.gradle.kts
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
70
```batchfile @rem @rem @rem @rem path_to_url @rem @rem Unless required by applicable law or agreed to in writing, software @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## ...
/content/code_sandbox/wrappers/android/gradlew.bat
batchfile
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
618
```ini # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # path_to_url # Specifies the JVM arguments used for the daemon process. # Th...
/content/code_sandbox/wrappers/android/gradle.properties
ini
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
212
```toml [versions] androidGradlePlugin = "8.2.2" androidCompileSdk = "34" androidMinSdk = "21" androidTargetSdk = "33" androidx-appcompat = "1.6.1" androidx-camera = "1.3.1" androidx-core = "1.12.0" androidx-constraintLayout = "2.1.4" android-material = "1.11.0-rc01" kotlin = "1.9.10" zxing-core = "3.5.3" [libraries] ...
/content/code_sandbox/wrappers/android/gradle/libs.versions.toml
toml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
417
```ini distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists ```
/content/code_sandbox/wrappers/android/gradle/wrapper/gradle-wrapper.properties
ini
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
66
```kotlin plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) } android { namespace = "zxingcpp.app" defaultConfig { applicationId = "io.github.zxingcpp.app" compileSdk = libs.versions.androidCompileSdk.get().toInt() minSdk = 26 // for the adapti...
/content/code_sandbox/wrappers/android/app/build.gradle.kts
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
328
```qmake # Add project specific ProGuard rules here. # You can control the set of applied configuration files using the # proguardFiles setting in build.gradle.kts. # # For more details, see # path_to_url # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to ...
/content/code_sandbox/wrappers/android/app/proguard-rules.pro
qmake
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
157
```unknown #!/bin/sh # # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # ############################################################################## # # Gradle start up script for POSIX gener...
/content/code_sandbox/wrappers/android/gradlew
unknown
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
2,081
```xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="path_to_url"> <!-- Declare features --> <uses-feature android:name="android.hardware.camera" /> <!-- Declare permissions --> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.pe...
/content/code_sandbox/wrappers/android/app/src/main/AndroidManifest.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
207
```xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:id="@+id/camera_container" android:layout_width="match_parent" android:layout_height="match_parent"> <androi...
/content/code_sandbox/wrappers/android/app/src/main/res/layout/activity_camera.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,052
```xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:id="@+id/camera_container" android:layout_width="match_parent" android:layout_height="match_parent"> <androi...
/content/code_sandbox/wrappers/android/app/src/main/res/layout-land/activity_camera.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,028
```xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <TextView ...
/content/code_sandbox/wrappers/android/app/src/main/res/layout/activity_main.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
161
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <color name="ic_launcher_background">#C8C8C8</color> </resources> ```
/content/code_sandbox/wrappers/android/app/src/main/res/values/ic_launcher_background.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
39
```xml <?xml version="1.0" encoding="utf-8"?> <adaptive-icon xmlns:android="path_to_url"> <background android:drawable="@color/ic_launcher_background"/> <foreground android:drawable="@drawable/ic_launcher_foreground"/> </adaptive-icon> ```
/content/code_sandbox/wrappers/android/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
55
```xml <?xml version="1.0" encoding="utf-8"?> <adaptive-icon xmlns:android="path_to_url"> <background android:drawable="@color/ic_launcher_background"/> <foreground android:drawable="@drawable/ic_launcher_foreground"/> </adaptive-icon> ```
/content/code_sandbox/wrappers/android/app/src/main/res/mipmap-anydpi/ic_launcher.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
55
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar"> <item name="android:immersive">true</item> <item name="android:windowFullscreen">true</item> <item name="android:windowTranslucentStatus">true</item> ...
/content/code_sandbox/wrappers/android/app/src/main/res/values/values.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
437
```xml <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="74" android:viewportHeight="74"> <path android:fillColor="#FFFFFF" android:fillType="evenOdd" android:pathData="M73.1,37C73.1,17...
/content/code_sandbox/wrappers/android/app/src/main/res/drawable/ic_shutter_normal.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
356
```xml <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="path_to_url" android:width="108dp" android:height="108dp" android:tint="#1E1E1E" android:viewportWidth="108" android:viewportHeight="108"> <group android:scaleX="2.2185" android:scaleY="2.2185" android:t...
/content/code_sandbox/wrappers/android/app/src/main/res/drawable/ic_launcher_foreground.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
473
```xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="path_to_url"> <item android:drawable="@drawable/ic_shutter_pressed" android:state_pressed="true" /> <item android:drawable="@drawable/ic_shutter_pressed" android:state_focused="true" /> <item android:drawable="@drawable/ic_shutter_normal...
/content/code_sandbox/wrappers/android/app/src/main/res/drawable/ic_shutter.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
85
```xml <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="74" android:viewportHeight="74"> <path android:fillColor="#FFFFFF" android:fillType="evenOdd" android:pathData="M73.1,37C73.1,17...
/content/code_sandbox/wrappers/android/app/src/main/res/drawable/ic_shutter_pressed.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
357
```xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="path_to_url" android:shape="rectangle"> <stroke android:width="3dp" android:color="#80FFFFFF" /> <solid android:color="@android:color/transparent" /> </shape> ```
/content/code_sandbox/wrappers/android/app/src/main/res/drawable/shape_rectangle.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
70
```kotlin /* */ package com.example.zxingcppdemo import android.content.Context import android.graphics.Canvas import android.graphics.Paint import android.graphics.Path import android.graphics.PointF import android.graphics.Rect import android.util.AttributeSet import android.view.View import androidx.camera.core.Im...
/content/code_sandbox/wrappers/android/app/src/main/java/zxingcpp/app/PreviewOverlay.kt
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
561
```qmake -keep class zxingcpp.** { *; } ```
/content/code_sandbox/wrappers/android/zxingcpp/consumer-rules.pro
qmake
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
13
```kotlin plugins { alias(libs.plugins.android.library) alias(libs.plugins.kotlin.android) id("maven-publish") id("signing") } android { namespace = "zxingcpp" // ndk version 25 is known to support c++20 (see #386) // ndkVersion = "25.1.8937393" defaultConfig { compileSdk = lib...
/content/code_sandbox/wrappers/android/zxingcpp/build.gradle.kts
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
713
```xml <?xml version="1.0" encoding="utf-8"?> <manifest /> ```
/content/code_sandbox/wrappers/android/zxingcpp/src/main/AndroidManifest.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
18
```kotlin /* */ package zxingcpp.app import android.Manifest import android.content.Context import android.content.pm.PackageManager import android.graphics.ImageFormat import android.graphics.PointF import android.graphics.Rect import android.graphics.YuvImage import android.hardware.camera2.CaptureRequest import an...
/content/code_sandbox/wrappers/android/app/src/main/java/zxingcpp/app/MainActivity.kt
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
2,631
```kotlin /* */ package zxingcpp import android.graphics.Bitmap import android.graphics.ImageFormat import android.graphics.Point import android.graphics.Rect import android.os.Build import androidx.camera.core.ImageProxy import java.nio.ByteBuffer public class BarcodeReader(public var options: Options = Options()) ...
/content/code_sandbox/wrappers/android/zxingcpp/src/main/java/zxingcpp/BarcodeReader.kt
kotlin
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,085
```cmake # Based on the Qt 5 processor detection code, so should be very accurate # path_to_url # Currently handles ARM (v5, v6, v7, v8), ARM64, x86 (32/64), ia64, and ppc (32/64) # Regarding POWER/PowerPC, just as is noted in the Qt source, # "There are many more known variants/revisions that we do not handle/detect....
/content/code_sandbox/wrappers/winrt/TargetArch.cmake
cmake
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
767
```batchfile @echo off set CMAKE_EXE="C:\Program Files\CMake\bin\cmake.exe" rem Path to folder where the result should be copied to rem This should be the path to the folder containing SDKManifest.xml set DESTINATION="%~dp0\UAP\v0.8.0.0\ExtensionSDKs\ZXingWinRT\1.0.0.0" pushd %DESTINATION% set DESTINATION=%CD% popd ...
/content/code_sandbox/wrappers/winrt/BuildWinCom.bat
batchfile
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
582
```c++ /* */ #include "ReadBarcode.h" #include <android/bitmap.h> #include <android/log.h> #include <chrono> #include <exception> #include <stdexcept> #include <string> #include <string_view> using namespace ZXing; using namespace std::string_literals; #define PACKAGE "zxingcpp/BarcodeReader$" #define ZX_LOG_TAG "...
/content/code_sandbox/wrappers/android/zxingcpp/src/main/cpp/ZXingCpp.cpp
c++
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
3,571
```objective-c /* */ #pragma once #include "BarcodeFormat.h" #include "ReaderOptions.h" #include <memory> namespace ZXing { public enum class BarcodeType : int { AZTEC, CODABAR, CODE_39, CODE_93, CODE_128, DATA_MATRIX, DX_FILM_EDGE, EAN_8, EAN_13, ITF, MAXICODE, PDF_417, QR_CODE, MICRO_QR_CODE, RMQR...
/content/code_sandbox/wrappers/winrt/BarcodeReader.h
objective-c
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
282
```objective-c /* */ #pragma once namespace ZXing { public ref class ReadResult sealed { public: property Platform::String^ Format { Platform::String^ get() { return m_format; } } property Platform::String^ Text { Platform::String^ get() { return m_text; } } property BarcodeType Type { Barcode...
/content/code_sandbox/wrappers/winrt/ReadResult.h
objective-c
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
165
```cmake SET (CMAKE_SYSTEM_NAME WindowsStore) SET (CMAKE_SYSTEM_VERSION 10.0) ```
/content/code_sandbox/wrappers/winrt/Toolchain-Win10.cmake
cmake
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
21
```xml <?xml version="1.0" encoding="utf-8" ?> <FileList DisplayName="ZXing Barcode Scanner Library" ProductFamilyName="ZXingWinRT" MoreInfo="path_to_url" MinVSVersion="14.0" AppliesTo="WindowsAppContainer" SupportsMultipleVersions="Error" SupportedArchitectures="x86;x64;ARM;ARM64"> <File R...
/content/code_sandbox/wrappers/winrt/UAP/v0.8.0.0/ExtensionSDKs/ZXingWinRT/1.0.0.0/SDKManifest.xml
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
106
```xml <?xml version="1.0"?> <package> <metadata> <id>huycn.zxingcpp.winrt</id> <version>1.0.0</version> <title>ZXingWinRT</title> <authors>Nu-book Inc.</authors> <owners>Nu-book Inc.</owners> <licenseUrl>path_to_url <projectUrl>path_to_url <description>C++ port of ZXing barcode scanne...
/content/code_sandbox/wrappers/winrt/nuget/ZXingWinRT.nuspec
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
680
```xml <?xml version="1.0" encoding="utf-8"?> <Project xmlns="path_to_url"> <PropertyGroup> <ZXingCpp-Platform Condition="'$(Platform)' == 'Win32'">x86</ZXingCpp-Platform> <ZXingCpp-Platform Condition="'$(Platform)' != 'Win32'">$(Platform)</ZXingCpp-Platform> </PropertyGroup> <ItemGroup Cond...
/content/code_sandbox/wrappers/winrt/nuget/ZXingWinRT.targets
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
187
```c++ /* */ #if (_MSC_VER >= 1915) #define no_init_all deprecated #pragma warning(disable : 4996) #endif #include "BarcodeReader.h" #include "BarcodeFormat.h" #include "ReaderOptions.h" #include "ReadBarcode.h" #include "ReadResult.h" #include "Utf.h" #include <algorithm> #include <MemoryBuffer.h> #include <stdexc...
/content/code_sandbox/wrappers/winrt/BarcodeReader.cpp
c++
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,573
```html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>zxing-cpp/wasm reader demo</title> <link rel="shortcut icon" href="#" /> <script src="zxing_reader.js"></script> <script> var zxing = ZXing().then(function(instance) { zxing = ...
/content/code_sandbox/wrappers/wasm/demo_reader.html
html
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,340
```html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>zxing-cpp/wasm writer demo</title> <link rel="shortcut icon" href="#" /> <script src="zxing_writer.js"></script> <script> var zxing = ZXing().then(function(instance) { zxing = ...
/content/code_sandbox/wrappers/wasm/demo_writer.html
html
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,615
```c++ /* */ #include "BarcodeFormat.h" #include "MultiFormatWriter.h" #include "BitMatrix.h" #include "CharacterSet.h" #include <string> #include <memory> #include <exception> #include <emscripten/bind.h> #include <emscripten/val.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include <stb_image_write.h> class ImageDat...
/content/code_sandbox/wrappers/wasm/BarcodeWriter.cpp
c++
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
569
```c++ /* */ #include "ReadBarcode.h" #include <emscripten/bind.h> #include <emscripten/val.h> #include <memory> #include <stdexcept> #include <string> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> using namespace ZXing; struct ReadResult { std::string format{}; std::string text{}; emscripten::val by...
/content/code_sandbox/wrappers/wasm/BarcodeReader.cpp
c++
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
997
```html <!DOCTYPE html> <html> <head> <title>zxing-cpp/wasm live demo</title> <link rel="shortcut icon" href="#" /> <script src="zxing_reader.js"></script> </head> <body style="text-align: center"> <h2>zxing-cpp/wasm live demo</h2> <p> This is a simple demo of the wasm wrapper of <a href="path_to_url">zxing-cp...
/content/code_sandbox/wrappers/wasm/demo_cam_reader.html
html
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,348
```unknown Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZXingCpp", "ZXingCpp\ZXingCpp.csproj", "{64E71DE2-C1C6-4FCF-B8A6-FFC6D1605ECD}" EndProject...
/content/code_sandbox/wrappers/dotnet/dotnet.sln
unknown
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
1,091
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard2.1</TargetFramework> <!-- <ImplicitUsings>enable</ImplicitUsings> --> <Nullable>enable</Nullable> <PackageId>ZXingCpp</PackageId> <Version>0.2.1-alpha</Version> <Authors>Axel Waggershauser</Authors> <Co...
/content/code_sandbox/wrappers/dotnet/ZXingCpp/ZXingCpp.csproj
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
399
```smalltalk /* */ using System.Collections.Generic; using SkiaSharp; using ZXingCpp; public static class SkBitmapBarcodeWriter { public static SKBitmap Write(Barcode barcode, WriterOptions? opts = null) { var img = barcode.ToImage(opts); var info = new SKImageInfo(img.Width, img.Height, SKColorType.Gray8); v...
/content/code_sandbox/wrappers/dotnet/ZXingCpp.DemoWriter/Program.cs
smalltalk
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
287
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <IsPackable>false</IsPackable> </PropertyGroup> <ItemGroup> <PackageReference Include="SkiaS...
/content/code_sandbox/wrappers/dotnet/ZXingCpp.DemoWriter/ZXingCpp.DemoWriter.csproj
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
194
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <IsPackable>false</IsPackable> <IsTestProject>true</IsTestProject> </PropertyGroup> <ItemGroup> <PackageReference Includ...
/content/code_sandbox/wrappers/dotnet/ZXingCpp.Tests/ZXingCpp.Tests.csproj
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
270
```smalltalk using Xunit; using System.Text; using ZXingCpp; namespace ZXingCpp.Tests; public class UnitTest1 { [Fact] public void ValidBarcodeFormatsParsing() { Assert.Equal(BarcodeFormats.QRCode, Barcode.FormatsFromString("qrcode")); Assert.Equal(BarcodeFormats.LinearCodes, Barcode.FormatsFromString("linear_...
/content/code_sandbox/wrappers/dotnet/ZXingCpp.Tests/UnitTest1.cs
smalltalk
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
629
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <IsPackable>false</IsPackable> </PropertyGroup> <ItemGroup> <PackageReference Include="SkiaS...
/content/code_sandbox/wrappers/dotnet/ZXingCpp.DemoReader/ZXingCpp.DemoReader.csproj
xml
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
217
```smalltalk /* */ using System.Collections.Generic; using ImageMagick; using SkiaSharp; using ZXingCpp; public static class MagickImageBarcodeReader { public static List<Barcode> Read(MagickImage img, ReaderOptions? opts = null) { if (img.DetermineBitDepth() < 8) img.SetBitDepth(8); var bytes = img.ToByteAr...
/content/code_sandbox/wrappers/dotnet/ZXingCpp.DemoReader/Program.cs
smalltalk
2016-04-12T22:33:06
2024-08-15T07:35:29
zxing-cpp
zxing-cpp/zxing-cpp
1,205
496