Package editor.search
Class RegExStringUtil
- java.lang.Object
-
- editor.search.RegExStringUtil
-
public class RegExStringUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description RegExStringUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<SearchLocation>search(String strSource, String strPattern, boolean bIgnoreCase)static List<SearchLocation>search(String strSource, String strPattern, boolean bIgnoreCase, int iOffset)static List<SearchLocation>search(String strSource, String strPattern, boolean bIgnoreCase, int iOffset, boolean backwards)static List<SearchLocation>searchIgnoreCase(String strSource, String strPattern)Return a list ofSearchLocations representing the occurrences of the specified pattern in the specified source string.
-
-
-
Method Detail
-
searchIgnoreCase
public static List<SearchLocation> searchIgnoreCase(String strSource, String strPattern)
Return a list ofSearchLocations 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
public static List<SearchLocation> search(String strSource, String strPattern, boolean bIgnoreCase)
-
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)
-
-