java.lang.Object | |
↳ | com.atlassian.jira.util.DelimeterInserter |
This can take an input string and look into it for occurences of given terms. It will then intert delimeters into the input string arround the terms. You can use this to hilight text with bold tags in HTML for example.
This is smart enough to merge areas when they overlap or exit side by side, and only one set of delimeters will be inserted.Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a DelimeterInserter that is in prefix mode and case insenstive.
| |||||||||||
Creates a DelimeterInserter that is case insenstive.
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called to do the actual delimeter intertion
| |||||||||||
The String characters that can be considered whitespace ALONG with Character.iswhiteSpace().
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Creates a DelimeterInserter that is in prefix mode and case insenstive.
frontDelimeter | the delimeter to use as around the front of a term |
---|---|
endDelimeter | the delimeter to use as around the end of a term |
Creates a DelimeterInserter that is case insenstive.
frontDelimeter | the delimeter to use as around the front of a term |
---|---|
endDelimeter | the delimeter to use as around the end of a term |
prefixMode | whether a match must be made on word boundaries |
frontDelimeter | the delimeter to use as around the front of a term |
---|---|
endDelimeter | the delimeter to use as around the end of a term |
prefixMode | whether a match must be made on word boundaries |
caseInsensitive | whether matching is case insenstive |
Called to do the actual delimeter intertion
targetString | the target string to insert the delimeters into |
---|---|
terms | the terms to look for in the targetString |
The String characters that can be considered whitespace ALONG with Character.iswhiteSpace().
consideredWhitespace | the extra whitespace characters |
---|