public class CombinePrefixPattern extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
capturedGroupIndex |
protected static Map<Character,Integer> |
escapeCharToCodeUnit |
protected boolean |
needToFoldCase |
| Constructor and Description |
|---|
CombinePrefixPattern() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
allowAnywhereFoldCaseAndRenumberGroups(Pattern regex) |
protected static String |
caseFoldCharset(String charSet) |
Pattern |
combinePrefixPattern(List<Pattern> regexs)
Given a group of
Patterns, returns a RegExp that globally
matches the union of the sets of strings matched by the input RegExp. |
protected static int |
decodeEscape(String charsetPart) |
protected static String |
encodeEscape(int charCode) |
protected int capturedGroupIndex
protected boolean needToFoldCase
public Pattern combinePrefixPattern(List<Pattern> regexs) throws Exception
Patterns, returns a RegExp that globally
matches the union of the sets of strings matched by the input RegExp.
Since it matches globally, if the input strings have a start-of-input
anchor (/^.../), it is ignored for the purposes of unioning.regexs - non multiline, non-global regexs.Exceptionprotected static int decodeEscape(String charsetPart)
protected static String encodeEscape(int charCode)
Copyright © 2015. All rights reserved.