Package editor.search
Class RegExStringUtil
java.lang.Object
editor.search.RegExStringUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SearchLocation>
static List<SearchLocation>
static List<SearchLocation>
static List<SearchLocation>
searchIgnoreCase
(String strSource, String strPattern) Return a list ofSearchLocation
s representing the occurrences of the specified pattern in the specified source string.
-
Constructor Details
-
RegExStringUtil
public RegExStringUtil()
-
-
Method Details
-
searchIgnoreCase
Return a list ofSearchLocation
s representing the occurrences of the specified pattern in the specified source string.- Parameters:
strSource
- A string to search.strPattern
- A pattern to search for.- Returns:
- A list of SearchLocations for each occurrence of the specified pattern. Returns an empty list for zero occurrences.
-
search
-
search
public static List<SearchLocation> search(String strSource, String strPattern, boolean bIgnoreCase, int iOffset) -
search
public static List<SearchLocation> search(String strSource, String strPattern, boolean bIgnoreCase, int iOffset, boolean backwards)
-