summaryrefslogtreecommitdiff
path: root/fxbarcode/oned/BC_OnedCodaBarWriter.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-01-12 21:49:50 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-12 21:49:50 +0000
commit53c4ba4011ab59ecc8406e144df8aaaa1169801b (patch)
treee35e5a2e9ae3dbc9e57d2ad28ded618e23019988 /fxbarcode/oned/BC_OnedCodaBarWriter.cpp
parent14e77443e92ce3fdf1cebe85f8f5c8fe705a1558 (diff)
downloadpdfium-53c4ba4011ab59ecc8406e144df8aaaa1169801b.tar.xz
Add jumbo build support for fxbarcode.
BUG=pdfium:964 Change-Id: Ic306a374bc9b710e2ac043eebe43504e5bd75926 Reviewed-on: https://pdfium-review.googlesource.com/22870 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/oned/BC_OnedCodaBarWriter.cpp')
-rw-r--r--fxbarcode/oned/BC_OnedCodaBarWriter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/fxbarcode/oned/BC_OnedCodaBarWriter.cpp b/fxbarcode/oned/BC_OnedCodaBarWriter.cpp
index 791904de5b..3c3ea4afe8 100644
--- a/fxbarcode/oned/BC_OnedCodaBarWriter.cpp
+++ b/fxbarcode/oned/BC_OnedCodaBarWriter.cpp
@@ -30,9 +30,9 @@
namespace {
-const char ALPHABET_STRING[] = "0123456789-$:/.+ABCDTN";
+const char kOnedCodaAlphabet[] = "0123456789-$:/.+ABCDTN";
-const int32_t CHARACTER_ENCODINGS[22] = {
+const int32_t kOnedCodaCharacterEncoding[22] = {
0x003, 0x006, 0x009, 0x060, 0x012, 0x042, 0x021, 0x024,
0x030, 0x048, 0x00c, 0x018, 0x045, 0x051, 0x054, 0x015,
0x01A, 0x029, 0x00B, 0x00E, 0x01A, 0x029};
@@ -158,10 +158,10 @@ uint8_t* CBC_OnedCodaBarWriter::EncodeImpl(const ByteString& contents,
break;
}
int32_t code = 0;
- size_t len = strlen(ALPHABET_STRING);
+ size_t len = strlen(kOnedCodaAlphabet);
for (size_t i = 0; i < len; i++) {
- if (ch == ALPHABET_STRING[i]) {
- code = CHARACTER_ENCODINGS[i];
+ if (ch == kOnedCodaAlphabet[i]) {
+ code = kOnedCodaCharacterEncoding[i];
break;
}
}