An optional original name.
An immutable UTF-8 string.
An immutable UTF-8 string.
The contents of a UTF8String
is guaranteed to be a well-formed UTF-8
string.
equals()
and hashCode()
, along with ==
and ##
, are just as
broken for UTF8String
as for Array
s. Use the methods in the
companion object instead. This is unavoidable because we cannot override
equals
nor hashCode
in an AnyVal
.
Helper class to allow for testing of logic.
An implementation of the SHA-1 algorithm for use in Hashers.
An implementation of the SHA-1 algorithm for use in Hashers.
Reference: https://en.wikipedia.org/wiki/SHA-1#SHA-1_pseudocode
This implementation MUST NOT be used for any cryptographic purposes. It did not receive the care and attention required for security purposes. It is only meant as a best-effort hash for incremental linking.
An optional original name.
Since an
OriginalName
is basically an optionalUTF8String
, original names must always be well-formed Unicode strings. Unpaired surrogates are not valid.