MCPcopy Index your code
hub / github.com/WhyNotHugo/python-barcode / _is_char_fnc1_char

Method _is_char_fnc1_char

barcode/codex.py:180–187  ·  view source on GitHub ↗

Whether a character is the FNC1 character. May be redefined by subclasses if required. FNC1 char is defined in GS1-128 specification and it is defined just the same for all encodings therefore this sign should be treated in a special way.

(self, char)

Source from the content-addressed store, hash-verified

178
179 # to be redefined in subclass if required
180 def _is_char_fnc1_char(self, char):
181 """Whether a character is the FNC1 character.
182
183 May be redefined by subclasses if required. FNC1 char is defined in GS1-128
184 specification and it is defined just the same for all encodings therefore this
185 sign should be treated in a special way.
186 """
187 return False
188
189 def _maybe_switch_charset(self, pos: int) -> list[int]:
190 char = self.code[pos]

Callers 1

_maybe_switch_charsetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected