I'm tasked with validating GTIN-14, GTIN-13, GTIN-12, GTIN-8 and UPC-E barcodes. I have seen a few functions here and there, however I'm unclear on how to validate the code without knowing ahead of time which standard is in use.
I assume this must be possible, but I'm at a loss as to where I should begin.