Skip to content

Commit

Permalink
ZXingWriter: update supported formats list in EXPERIMENTAL_API case
Browse files Browse the repository at this point in the history
  • Loading branch information
axxel committed Dec 28, 2024
1 parent a76ba53 commit d270b3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/ZXingWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ static void PrintUsage(const char* exePath)
<< " -version Print version information\n"
<< "\n"
<< "Supported formats are:\n";
#ifdef ZXING_EXPERIMENTAL_API
for (auto f : BarcodeFormats::all())
#else
for (auto f : BarcodeFormatsFromString("Aztec Codabar Code39 Code93 Code128 DataMatrix EAN8 EAN13 ITF PDF417 QRCode UPCA UPCE"))
#endif
std::cout << " " << ToString(f) << "\n";

std::cout << "Format can be lowercase letters, with or without '-'.\n"
Expand Down

0 comments on commit d270b3f

Please sign in to comment.