Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.3.2
-
None
Description
As part of a recent ML discussion it was noted that BooleanUtils.toBoolean(String) is biased towards English speakers.
We could match the behaviour of this method for non-English users by adding:
boolean toBoolean(String str, String... trueStrings)
and match in a case-insensitive fashion. Anything that doesn't match a true string is false.
The current toBoolean(String) method would just be a special case of this new method, with the arguments toBoolean(str, "true", "on", "y", "t", "yes").