summaryrefslogtreecommitdiff
path: root/fxbarcode/oned/BC_OnedEANChecksum.h
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-09-06 13:35:25 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-06 20:08:48 +0000
commit7840dd6925308c39f87d3a1d0ef9e8ddc197f696 (patch)
tree3e705415c21a8e2a076711c777b9d1b460acef4c /fxbarcode/oned/BC_OnedEANChecksum.h
parent45061669500e6f4fe71972e0fb60065b02c255bf (diff)
downloadpdfium-7840dd6925308c39f87d3a1d0ef9e8ddc197f696.tar.xz
Unify checksum calculation of EAN-8 and EAN-13.
The algorithm is the same. Change-Id: Ia5713f6b1602aafac546047b8d398048d6532686 Reviewed-on: https://pdfium-review.googlesource.com/13290 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fxbarcode/oned/BC_OnedEANChecksum.h')
-rw-r--r--fxbarcode/oned/BC_OnedEANChecksum.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fxbarcode/oned/BC_OnedEANChecksum.h b/fxbarcode/oned/BC_OnedEANChecksum.h
new file mode 100644
index 0000000000..47d2d6bd91
--- /dev/null
+++ b/fxbarcode/oned/BC_OnedEANChecksum.h
@@ -0,0 +1,12 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef FXBARCODE_ONED_BC_ONEDEANCHECKSUM_H_
+#define FXBARCODE_ONED_BC_ONEDEANCHECKSUM_H_
+
+#include "core/fxcrt/fx_string.h"
+
+int32_t EANCalcChecksum(const CFX_ByteString& contents);
+
+#endif // FXBARCODE_ONED_BC_ONEDEANCHECKSUM_H_