Success

class Success(val output: String, val replacedCharacters: List<UnmappedCharacter>) : TransliterationResult

The profile produced output for the whole input. replacedCharacters lists input characters that the profile replaced with < because it had no mapping for them. Separators that become < by rule are not listed.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(output: String, replacedCharacters: List<UnmappedCharacter>)
constructor(output: String)

Creates a success without replacement details.

Properties

Link copied to clipboard

The mapped text, in the MRZ alphabet.

Link copied to clipboard

Characters with no mapping in the normalized input.

Functions

Link copied to clipboard
operator fun component1(): String

The mapped text.

Link copied to clipboard

The characters replaced for having no mapping.

Link copied to clipboard
fun copy(output: String = this.output): TransliterationResult.Success

Copies this result while preserving its replacement details.

fun copy(output: String = this.output, replacedCharacters: List<UnmappedCharacter>): TransliterationResult.Success

Copies this result with explicit replacement details.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

How long the mapped text is; never the text itself.