public class PlaceholderTextRanges
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Set<TextRange> |
getPlaceholderRanges(java.lang.String s,
java.lang.String prefix,
java.lang.String suffix) |
static java.util.Set<TextRange> |
getPlaceholderRanges(java.lang.String s,
java.lang.String prefix,
java.lang.String suffix,
boolean useFullTextRange) |
static java.util.Set<TextRange> |
getPlaceholderRanges(java.lang.String s,
java.lang.String prefix,
java.lang.String suffix,
boolean useFullTextRange,
boolean filterNestedRanges)
Searches for placeholder text ranges with the given prefix and suffix.
|
public static java.util.Set<TextRange> getPlaceholderRanges(java.lang.String s, java.lang.String prefix, java.lang.String suffix)
public static java.util.Set<TextRange> getPlaceholderRanges(java.lang.String s, java.lang.String prefix, java.lang.String suffix, boolean useFullTextRange)
public static java.util.Set<TextRange> getPlaceholderRanges(java.lang.String s, java.lang.String prefix, java.lang.String suffix, boolean useFullTextRange, boolean filterNestedRanges)
s
- String to parse.prefix
- Prefix.suffix
- Suffix.useFullTextRange
- Use full text range (incl. prefix/suffix).filterNestedRanges
- Remove nested ranges from result.