Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-90

Add CharacterPredicates for ASCII letters (uppercase/lowercase) and arabic numerals

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • None

    Description

      I tried to migrate a project from RandomStringUtils to RandomStringGenerator today, but I found it hard to replace methods like RandomStringUtils#randomAlphanumeric and RandomStringUtils#randomAlphabetic.

      I believe it would ease migration from RandomStringUtils to RandomStringGenerator if CharacterPrecidates would offer more predicates.

      Edit:

      Added CharacterPredicates#ARABIC_NUMERALS, #ASCII_LOWERCASE_LETTERS, #ASCII_UPPERCASE_LETTERS, #ASCII_LETTERS and #ASCII_ALPHA_NUMERALS.

      Attachments

        Issue Links

          Activity

            People

              pascalschumacher Pascal Schumacher
              pascalschumacher Pascal Schumacher
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: