Class Code128GS1Parser
GS1 Code128 parser that handles all GS1 Application Identifiers, validates data content, and provides comprehensive error handling. Supports multiple input formats and provides detailed parsing results.
Inheritance
System.Object
Code128GS1Parser
Namespace: IronBarCode
Assembly: IronBarCode.dll
Syntax
public static class Code128GS1Parser : Object
Methods
ExtractElements(String)
Extracts all GS1 elements from a string
Declaration
public static List<ParsedElement> ExtractElements(string input)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | input | The GS1 string to parse |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<ParsedElement> | List of GS1 elements |
Format(String)
Formats a GS1 string
Declaration
public static string Format(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The GS1 string to format |
Returns
| Type | Description |
|---|---|
| System.String | Formatted GS1 string with parentheses |
IsValid(String)
Validates if a string is a valid GS1 format
Declaration
public static bool IsValid(string input)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | input | The string to validate |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if valid, false otherwise |
Parse(String)
Parses and formats a GS1 string, handling multiple input formats and providing comprehensive validation
Declaration
public static ParseResult Parse(string input)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | input | The GS1 string to parse (raw, formatted, or mixed) |
Returns
| Type | Description |
|---|---|
| ParseResult | ParseResult containing formatted string, elements, and validation results |