Info
class Info
kotlin.Any | |
↳ | android.icu.text.IDNA.Info |
Output container for IDNA processing errors. The Info class is not suitable for subclassing.
Summary
Public constructors | |
---|---|
Info() Constructor. |
Public methods | |
---|---|
MutableSet<IDNA.Error!>! |
Returns a set indicating IDNA processing errors. |
Boolean |
Were there IDNA processing errors? |
Boolean |
Returns true if transitional and nontransitional processing produce different results. |
Public constructors
Public methods
getErrors
fun getErrors(): MutableSet<IDNA.Error!>!
Returns a set indicating IDNA processing errors.
Return | |
---|---|
MutableSet<IDNA.Error!>! |
set of processing errors (modifiable, and not null) |
hasErrors
fun hasErrors(): Boolean
Were there IDNA processing errors?
Return | |
---|---|
Boolean |
true if there were processing errors |
isTransitionalDifferent
fun isTransitionalDifferent(): Boolean
Returns true if transitional and nontransitional processing produce different results. This is the case when the input label or domain name contains one or more deviation characters outside a Punycode label (see UTS #46).
- With nontransitional processing, such characters are copied to the destination string.
- With transitional processing, such characters are mapped (sharp s/sigma) or removed (joiner/nonjoiner).
Return | |
---|---|
Boolean |
true if transitional and nontransitional processing produce different results |