+1 On Wed, 15 Mar 2023 at 05:58, Gary Gregory <garydgreg...@gmail.com> wrote:
> PRs and issues like "[LANG-1682] Adding new startsWithAnyIgnoreCase > method and tests cases" keep popping up from time to time. > > My preference is to stop adding APIs that are variations of other APIs > based on case sensitivity (and Charset, Locale, and so on). > > Instead, I can see adding a new String utility class that tracks such > attributes on its instance such that you'd say something like: > - Strings.caseSensitive().someOperation(...) > - Strings.caseInsensitive().someOperation(...). > > The 2 above would access pre-built instances probably. A builder would > let you build an instance that your app can cache: > Strings.builder().setCaseSensitivity(true).setCharset(...).build(); > > An instance of Strings or whatever to call such a class would track > case sensitivity, a Locale, and maybe an input and output Charset, I'm > not 100% sure yet. But you get the idea I hope. > > Any thoughts? > > Gary > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- OpenPGP: https://hasan.d8u.us/openpgp.asc If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest <http://bit.ly/hd1AppointmentRequest>*. Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest <http://bit.ly/hd1AppointmentRequest>*. <https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1>Sent from my mobile device Envoye de mon portable