[Groovy] Class StringUtil
- org.codehaus.groovy.util.StringUtil
@CompileStatic class StringUtil extends Object
String utility functions.
Constructor Summary
Constructor and description |
---|
StringUtil
() |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
static String |
tr(String text, String source, String replacement) Provides Groovy with functionality similar to the unix tr command which translates a string replacing characters from a source set with characters from a replacement set. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
StringUtil()
Method Detail
static String tr(String text, String source, String replacement)
Provides Groovy with functionality similar to the unix tr command which translates a string replacing characters from a source set with characters from a replacement set.
- Since:
- 1.7.3
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/util/StringUtil.html