format

fun format(value: String): String(source)

Formats an IFSC to canonical form: 11-character uppercase, no separators.

Applies the same normalisation as validate before formatting. IFSC has no published display separator convention — output is the raw uppercase string: e.g. "HDFC0000001".

This method is idempotent: format(format(x)) == format(x).

Return

Canonical 11-character uppercase IFSC string.

Parameters

value

Raw IFSC string.

Throws

if value is not a valid IFSC. The exception message includes the (truncated) input for diagnostics.

Samples

check(IFSC.format("hdfc0000001") == "HDFC0000001")