Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ZXCode39Reader.h 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright 2012 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "ZXOneDReader.h"
  17. extern unichar ZX_CODE39_ALPHABET[];
  18. extern NSString *ZX_CODE39_ALPHABET_STRING;
  19. extern const int ZX_CODE39_CHARACTER_ENCODINGS[];
  20. @class ZXDecodeHints, ZXResult;
  21. /**
  22. * Decodes Code 39 barcodes. This does not support "Full ASCII Code 39" yet.
  23. */
  24. @interface ZXCode39Reader : ZXOneDReader
  25. /**
  26. * Creates a reader that assumes all encoded data is data, and does not treat the final
  27. * character as a check digit. It will not decoded "extended Code 39" sequences.
  28. */
  29. - (id)init;
  30. /**
  31. * Creates a reader that can be configured to check the last character as a check digit.
  32. * It will not decoded "extended Code 39" sequences.
  33. *
  34. * @param usingCheckDigit if true, treat the last data character as a check digit, not
  35. * data, and verify that the checksum passes.
  36. */
  37. - (id)initUsingCheckDigit:(BOOL)usingCheckDigit;
  38. /**
  39. * Creates a reader that can be configured to check the last character as a check digit,
  40. * or optionally attempt to decode "extended Code 39" sequences that are used to encode
  41. * the full ASCII character set.
  42. *
  43. * @param usingCheckDigit if true, treat the last data character as a check digit, not
  44. * data, and verify that the checksum passes.
  45. * @param extendedMode if true, will attempt to decode extended Code 39 sequences in the
  46. * text.
  47. */
  48. - (id)initUsingCheckDigit:(BOOL)usingCheckDigit extendedMode:(BOOL)extendedMode;
  49. @end