Steps

Steps methods for Datamatrix Barcode type class

Namespace: Com\Tecnick\Barcode\Type\Square\Datamatrix

abstract class Steps extends Modes

Extends: Modes

Source: src/Type/Square/Datamatrix/Steps.php:34

Steps methods for Datamatrix Barcode type class

Methods

lookAheadTest()

The look-ahead test scans the data to be encoded to find the best mode (Annex P - steps from J to S).

public lookAheadTest(string $data, int $pos, int $mode): int

Parameters:

  • $data (string): Data to encode
  • $pos (int): Current position
  • $mode (int): Current encoding mode

Returns: int: encoding mode

Source: src/Type/Square/Datamatrix/Steps.php:45

Inherited members

From Modes

  • $gsonemode: True when the GS1 variant is selected and FNC1 separators are encoded as codeword 232.
  • $last_enc: Store last used encoding for data codewords.
  • $shape: Datamatrix shape key (S=square, R=rectangular)
  • $size: Requested symbol size as rows by columns, empty for the smallest size that fits.
  • canStartEncodation(): Returns true if the encodation can start on the character.
  • get253StateCodeword(): Return the 253-state codeword
  • getSwitchEncodingCodeword(): Get the switching codeword to a new encoding mode (latch codeword)
  • isGsOneChar(): Tell if the character is a GS1 separator: FNC1 (232) or GS (29).

From Placement