Skip to content

Commit

Permalink
Added x, X formatters to iosMain
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-osm committed Oct 15, 2024
1 parent de8f17c commit afa9c11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ actual fun String.format(vararg args: Any?): String {
}
}

// Get the argument type (e.g., 'd' or 'f')
// Get the argument type (e.g., 'd', 'f', ...)
if (formatSpecifierStart < this.length) {
argType = this[formatSpecifierStart]
}
Expand All @@ -67,7 +67,7 @@ actual fun String.format(vararg args: Any?): String {
index = formatSpecifierStart
}

'd', 'f' -> {
'd', 'f', 'x', 'X' -> {
val formatStringBuilder = StringBuilder()
formatStringBuilder.append('%')
width?.let { formatStringBuilder.append(it) }
Expand Down

0 comments on commit afa9c11

Please sign in to comment.