Home
last modified time | relevance | path

Searched refs:golden0 (Results 1 – 8 of 8) sorted by relevance

/third_party/qrcodegen/c/
Dqrcodegen-demo.c163 const char *golden0 = "Golden ratio \xCF\x86 = 1."; in doSegmentDemo() local
170 char *concat = calloc(strlen(golden0) + strlen(golden1) + strlen(golden2) + 1, sizeof(char)); in doSegmentDemo()
175 strcat(concat, golden0); in doSegmentDemo()
185 uint8_t *bytes = malloc(strlen(golden0) * sizeof(uint8_t)); in doSegmentDemo()
190 for (size_t i = 0, len = strlen(golden0); i < len; i++) in doSegmentDemo()
191 bytes[i] = (uint8_t)golden0[i]; in doSegmentDemo()
192 …uint8_t *segBuf0 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_BYTE, strlen(golden0)) * … in doSegmentDemo()
200 qrcodegen_makeBytes(bytes, strlen(golden0), segBuf0), in doSegmentDemo()
/third_party/qrcodegen/cpp/
DQrCodeGeneratorDemo.cpp120 const char *golden0 = "Golden ratio \xCF\x86 = 1."; in doSegmentDemo() local
124 (std::string(golden0) + golden1 + golden2).c_str(), in doSegmentDemo()
128 std::vector<uint8_t> bytes(golden0, golden0 + std::strlen(golden0)); in doSegmentDemo()
/third_party/qrcodegen/python/
Dqrcodegen-demo.py96 golden0 = "Golden ratio \u03C6 = 1."
99 qr = QrCode.encode_text(golden0 + golden1 + golden2, QrCode.Ecc.LOW)
103 QrSegment.make_bytes(golden0.encode("UTF-8")),
/third_party/qrcodegen/rust/examples/
Dqrcodegen-demo.rs102 let golden0 = "Golden ratio φ = 1."; in do_segment_demo() localVariable
105 let qr = QrCode::encode_text(&[golden0, golden1, golden2].concat(), QrCodeEcc::Low).unwrap(); in do_segment_demo()
109 QrSegment::make_bytes(golden0.as_bytes()), in do_segment_demo()
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen-output-demo.ts105 const golden0: string = "Golden ratio \u03C6 = 1."; constant
108 qr = QrCode.encodeText(golden0 + golden1 + golden2, QrCode.Ecc.LOW);
112 QrSegment.makeBytes(toUtf8ByteArray(golden0)),
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
DQrCodeGeneratorDemo.java119 String golden0 = "Golden ratio φ = 1."; in doSegmentDemo() local
122 qr = QrCode.encodeText(golden0 + golden1 + golden2, QrCode.Ecc.LOW); in doSegmentDemo()
126 QrSegment.makeBytes(golden0.getBytes(StandardCharsets.UTF_8)), in doSegmentDemo()
/third_party/qrcodegen/java/
DQrCodeGeneratorDemo.java120 String golden0 = "Golden ratio φ = 1."; in doSegmentDemo() local
123 qr = QrCode.encodeText(golden0 + golden1 + golden2, QrCode.Ecc.LOW); in doSegmentDemo()
127 QrSegment.makeBytes(golden0.getBytes(StandardCharsets.UTF_8)), in doSegmentDemo()
/third_party/qrcodegen/rust-no-heap/examples/
Dqrcodegen-demo.rs133 let golden0 = "Golden ratio φ = 1."; in do_segment_demo() localVariable
138 …let qr = QrCode::encode_text(&[golden0, golden1, golden2].concat(), &mut tempbuffer, &mut outbuffe… in do_segment_demo()
144 QrSegment::make_bytes(golden0.as_bytes()), in do_segment_demo()