summaryrefslogtreecommitdiff
path: root/fxbarcode/datamatrix/BC_C40Encoder.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-28 15:50:15 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-28 23:20:55 +0000
commit75b656a185ded6423b170546b89a945ac7aed74d (patch)
tree4d3d4a1f2a0e27ae6cda602984831de37cacd188 /fxbarcode/datamatrix/BC_C40Encoder.h
parent4536a47bc4581a5344fba9c5491464bf9b7261c9 (diff)
downloadpdfium-75b656a185ded6423b170546b89a945ac7aed74d.tar.xz
Clean up private methods in CBC_C40Encoder.
Change-Id: I0c33ec81ef9fd3ff7c22f33f5647a923aecd3e77 Reviewed-on: https://pdfium-review.googlesource.com/4594 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/datamatrix/BC_C40Encoder.h')
-rw-r--r--fxbarcode/datamatrix/BC_C40Encoder.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/fxbarcode/datamatrix/BC_C40Encoder.h b/fxbarcode/datamatrix/BC_C40Encoder.h
index ad8669d412..550d226efb 100644
--- a/fxbarcode/datamatrix/BC_C40Encoder.h
+++ b/fxbarcode/datamatrix/BC_C40Encoder.h
@@ -29,11 +29,13 @@ class CBC_C40Encoder : public CBC_Encoder {
virtual int32_t encodeChar(wchar_t c, CFX_WideString& sb, int32_t& e);
private:
- int32_t backtrackOneCharacter(CBC_EncoderContext& context,
- CFX_WideString& buffer,
- CFX_WideString& removed,
- int32_t lastCharSize,
- int32_t& e);
+ // Moves back by 1 position in |context| and adjusts |buffer| accordingly
+ // using |lastCharSize|. Returns the length of the current character in
+ // |context| after adjusting the position. If the character cannot be encoded,
+ // return -1.
+ int32_t BacktrackOneCharacter(CBC_EncoderContext* context,
+ CFX_WideString* buffer,
+ int32_t lastCharSize);
};
#endif // FXBARCODE_DATAMATRIX_BC_C40ENCODER_H_