TransliterationResult

The result of applying a transliteration profile: Success or Failure.

The profiles the SDK ships map unmapped characters to < and always return Success.

toString() on each of them shows no document values; they are in the properties.

Since

0.1.0

Inheritors

Types

Link copied to clipboard
data class Failure(val unmappedCharacters: List<UnmappedCharacter>) : TransliterationResult

At least one character could not be mapped and the profile has no fallback.

Link copied to clipboard
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.