Skip to content

Commit

Permalink
Enable %S uppercase conversions in @printf etc
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed May 8, 2024
1 parent f136a61 commit af5ca93
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vdmj/src/main/java/com/fujitsu/vdmj/values/Value.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,14 @@ protected void formatTo(String value, Formatter formatter, int flags, int width,
sb.append(precision);
}

sb.append('s');
if ((flags & FormattableFlags.UPPERCASE) > 0)
{
sb.append('S');
}
else
{
sb.append('s');
}

formatter.format(sb.toString(), value);
}
Expand Down

0 comments on commit af5ca93

Please sign in to comment.