Skip to content

Home

Introduction

Development

IDEs

Services

Service manager

API Explorer

StringMethods

StringMethods contains one-liners for manipulating strings; it is based on Apache Common's StringUtils class. This class is for use in both Gloop and Groovy.

Below are sample usages:

Sample Gloop service showing how to use the `StringMethods` one-liners

1
2
3
4
assert 'HelloWorldHelloGoodPuppers'.splitCamelCase().equals('Hello World Hello Good Puppers')

def string = 'Super secret string'
assert string.encrypt().decrypt().equals(string)