Uses of Class
com.google.mu.util.Substring.Match
Package
Description
GoogleSql, SafeQuery
StringFormat, Substring, Optionals and more...
-
Uses of Substring.Match in com.google.mu.safesql
Modifier and TypeMethodDescriptionprotected SafeQuery
SafeQuery.Translator.translateLiteral
(Substring.Match placeholder, Object value) Called if a placeholdervalue
is a non-string, non-Iterable literal appearing unquoted in the template. -
Uses of Substring.Match in com.google.mu.util
Modifier and TypeMethodDescriptionSubstring.Match.limit
(int maxChars) Returns an equivalent match with at mostmaxChars
.Substring.Match.skip
(int fromBeginning, int fromEnd) Returns a new instance that's otherwise equivalent except withfromBeginning
characters skipped from the beginning andfromEnd
characters skipped from the end.Modifier and TypeMethodDescriptionReturns a stream ofMatch
objects from the inputstring
as demarcated by this delimiter pattern.final Optional
<Substring.Match> Matches this pattern againststring
, returning aMatch
if successful, orempty()
otherwise.final Optional
<Substring.Match> Matches this pattern againststring
starting from the character atfromIndex
, returning aMatch
if successful, orempty()
otherwise.abstract Stream
<Substring.Match> Applies this pattern againststring
and returns a stream of each iteration.Returns a stream ofMatch
objects delimited by every match of this pattern.Substring.RepeatingPattern.splitThenTrim
(String string) Returns a stream ofMatch
objects delimited by every match of this pattern.Modifier and TypeMethodDescriptionStringFormat.Interpolator.interpolate
(List<String> fragments, BiStream<Substring.Match, Object> placeholders) Interpolates withfragments
of sizeN + 1
andplaceholders
of sizeN
.Substring.RepeatingPattern.replaceAllFrom
(String string, Function<? super Substring.Match, ? extends CharSequence> replacementFunction) Returns a new string with allmatches
of this pattern replaced by applyingreplacementFunction
for each match.final String
Substring.Pattern.replaceFrom
(String string, Function<? super Substring.Match, ? extends CharSequence> replacementFunction) Returns a new string with the substring matched bythis
replaced by the return value ofreplacementFunction
.