Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8939

Additional Methods in StringGroovyMethods

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha-4
    • Fix Version/s: 3.0.0-alpha-4
    • Component/s: None
    • Labels:
      None

      Description

      Additional methods can be added inĀ StringGroovyMethods for better API Usage.

      CharSequence takeRight(CharSequence self, int num)
      String takeRight(String self, int num)
      String takeRight(GString self, int num)
      CharSequence takeAfter(CharSequence self, CharSequence searchString)
      String takeAfter(String self, CharSequence searchString)
      String takeAfter(GString self, CharSequence searchString)
      CharSequence takeBefore(CharSequence self, CharSequence searchString)
      String takeBefore(GString self, String searchString)
      String takeBefore(String self, String searchString)
      CharSequence dropRight(CharSequence self, int num)
      String dropRight(String self, int num)
      String dropRight(GString self, int num)
      CharSequence takeBetween(CharSequence self, CharSequence from, CharSequence to)
      String takeBetween(String self, CharSequence from, CharSequence to)
      String takeBetween(GString self, CharSequence from, CharSequence to)
      CharSequence takeBetween(CharSequence self, CharSequence enclosure)
      String takeBetween(String self, CharSequence enclosure)
      String takeBetween(GString self, CharSequence enclosure)
      CharSequence takeBetween(CharSequence self, CharSequence from, CharSequence to, int occurrence)
      String takeBetween(String self, CharSequence from, CharSequence to, int occurrence)
      String takeBetween(GString self, CharSequence from, CharSequence to, int occurrence)
      CharSequence takeBetween(CharSequence self, CharSequence enclosure, int occurrence)
      String takeBetween(String self, CharSequence enclosure, int occurrence)
      String takeBetween(GString self, CharSequence enclosure, int occurrence)
      boolean startsWithIgnoreCase(CharSequence self, CharSequence searchString)
      boolean endsWithIgnoreCase(CharSequence self, CharSequence searchString)
      boolean containsIgnoreCase(CharSequence self, CharSequence searchString)
      

      Ā 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                paulk Paul King
                Reporter:
                adithyank Adithyan K
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m