You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
533 B
21 lines
533 B
namespace Barcoded
|
|
{
|
|
internal class Interleaved2Of5Validator : ILinearValidator
|
|
{
|
|
public string Parse(string text, Symbology symbology)
|
|
{
|
|
switch (symbology)
|
|
{
|
|
case Symbology.I2of5:
|
|
return LinearHelpers.GetEvenNumeric(text);
|
|
|
|
case Symbology.I2of5C:
|
|
return LinearHelpers.GetOddNumeric(text);
|
|
|
|
default:
|
|
return LinearHelpers.GetOddNumeric(text);
|
|
}
|
|
}
|
|
}
|
|
}
|