upperCase

Specifies whether upper-case hexadecimal digits should be used for formatting, false by default.

When this option is set to true, formatting functions will use upper-case hexadecimal digits (0-9, A-F) to create the hexadecimal representation of the values being formatted. Otherwise, lower-case hexadecimal digits (0-9, a-f) will be used.

This option affects the formatting results for both byte arrays and numeric values. However, it has no effect on parsing, which is always performed in a case-insensitive manner.

Note: This option affects only the case of hexadecimal digits and does not influence other elements like BytesHexFormat.bytePrefix or NumberHexFormat.suffix.

Since Kotlin

1.9

Samples