Breadcrumbs

StringUtils

The stringUtils placeholder forwards all method calls to  StringUtils.
Please refer to the  original documentation for more information about implementation details.

Below you can find some most common implementation examples.

Viewport 2.23.10 this placeholder supplies org.apache.commons.lang3.StringUtils instead of org.apache.commons.lang.StringUtils. The ability to use org.apache.commons.lang.StringUtils methods is deprecated and will be removed in a future release.

Methods

Name

Type

Description

$stringUtils

StringUtils

A helper object for modifying strings in the template. See  StringUtils for more information.

$stringUtils.join(['oneString', 'otherString'], '-')

StringUtils

Joins the elements of the provided array into a single String containing the provided list of elements.
Example will resolve to: 'oneString-otherString'

$stringUtils.indexOf($myString, 'searchString')

StringUtils

Finds the first index within a String, handling null.