pidibble.hex module¶
Function for detecting a switch from decimal to hexadecimal in integer parsing. This is used to determine if a string should be parsed as a hexadecimal number or a plain decimal integer.
- pidibble.hex.str2atomSerial(arg)[source]¶
Convert a string representation of an atom serial number to an integer. Should be used in cases were an integer series changes format from decimal representation to hexadecimal representation beyond 99999. The transition is signaled by the presence of hexadecimal characters in the string, which sets a global flag to indicate that subsequent strings should be parsed as hexadecimal numbers.