| Package | Description |
|---|---|
| com.mysql.cj.util |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<SearchMode> |
SearchMode.__BSE_COM_MYM_HNT_WS
Search mode: allow backslash escape, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.
|
static java.util.Set<SearchMode> |
SearchMode.__BSE_MRK_COM_MYM_HNT_WS
Search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip
white space.
|
static java.util.Set<SearchMode> |
SearchMode.__BSE_MRK_WS
Search mode: allow backslash escape, skip between markers and skip white space.
|
static java.util.Set<SearchMode> |
SearchMode.__COM_MYM_HNT_WS
Search mode: skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.
|
static java.util.Set<SearchMode> |
SearchMode.__FULL
Full search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip
white space.
|
static java.util.Set<SearchMode> |
SearchMode.__MRK_COM_MYM_HNT_WS
Search mode: skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.
|
static java.util.Set<SearchMode> |
SearchMode.__MRK_WS
Search mode: skip between markers and skip white space.
|
static java.util.Set<SearchMode> |
SearchMode.__NONE
Empty search mode.
|
private java.util.Set<SearchMode> |
StringInspector.defaultSearchMode |
| Modifier and Type | Method and Description |
|---|---|
static SearchMode |
SearchMode.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SearchMode[] |
SearchMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
int |
StringInspector.incrementPosition(int by,
java.util.Set<SearchMode> searchMode)
Increments the current position index, by be given number, taking into consideration the "escaped" status of current character, if the mode
ALLOW_BACKSLASH_ESCAPE is present in the specified search mode. |
int |
StringInspector.incrementPosition(java.util.Set<SearchMode> searchMode)
Increments the current position index, by one, taking into consideration the "escaped" status of current character, if the mode
ALLOW_BACKSLASH_ESCAPE is present in the search mode specified. |
private int |
StringInspector.indexOfClosingMarker(java.util.Set<SearchMode> searchMode)
Returns the position of the next closing marker corresponding to the opening marker in the current position.
|
static int |
StringUtils.indexOfIgnoreCase(int startingPosition,
java.lang.String searchIn,
java.lang.String[] searchForSequence,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
java.util.Set<SearchMode> searchMode)
Finds the position of the first of a consecutive sequence of strings within a string, ignoring case, with the option to skip text delimited by given
markers or within comments.
|
static int |
StringUtils.indexOfIgnoreCase(int startingPosition,
java.lang.String searchIn,
java.lang.String searchFor,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
java.util.Set<SearchMode> searchMode)
Finds the position of a substring within a string, ignoring case, with the option to skip text delimited by given markers or within comments.
|
static int |
StringUtils.indexOfIgnoreCase(int startingPosition,
java.lang.String searchIn,
java.lang.String searchFor,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
java.lang.String overridingMarkers,
java.util.Set<SearchMode> searchMode)
Finds the position of a substring within a string, ignoring case, with the option to skip text delimited by given markers or within comments.
|
int |
StringInspector.indexOfIgnoreCase(java.lang.String searchFor,
java.util.Set<SearchMode> searchMode)
Finds the position of the given string within the source string, ignoring case, with the option to skip text delimited by the specified markers or inside
comment blocks.
|
static int |
StringUtils.indexOfNextAlphanumericChar(int startingPosition,
java.lang.String searchIn,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
java.lang.String overridingMarkers,
java.util.Set<SearchMode> searchMode)
Finds the position of the next alphanumeric character within a string, with the option to skip text delimited by given markers or within comments.
|
private int |
StringInspector.indexOfNextChar(java.util.Set<SearchMode> searchMode)
Returns the position of the next valid character using the given search mode instead of the default one.
|
static int |
StringUtils.indexOfNextNonWsChar(int startingPosition,
java.lang.String searchIn,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
java.lang.String overridingMarkers,
java.util.Set<SearchMode> searchMode)
Finds the position of the next non-whitespace character within a string, with the option to skip text delimited by given markers or within comments.
|
static int |
StringUtils.indexOfNextWsChar(int startingPosition,
java.lang.String searchIn,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
java.lang.String overridingMarkers,
java.util.Set<SearchMode> searchMode)
Finds the position of the next whitespace character within a string, with the option to skip text delimited by given markers or within comments.
|
static java.util.List<java.lang.String> |
StringUtils.split(java.lang.String stringToSplit,
java.lang.String delimiter,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
boolean trim,
java.util.Set<SearchMode> searchMode)
Splits stringToSplit into a list, using the given delimiter and skipping all between the given markers.
|
static java.util.List<java.lang.String> |
StringUtils.split(java.lang.String stringToSplit,
java.lang.String delimiter,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
java.lang.String overridingMarkers,
boolean trim,
java.util.Set<SearchMode> searchMode)
Splits stringToSplit into a list, using the given delimiter and skipping all between the given markers.
|
| Constructor and Description |
|---|
StringInspector(java.lang.String source,
int startingPosition,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
java.lang.String overridingMarkers,
java.util.Set<SearchMode> searchMode)
This object provides string searching and manipulation operations such as finding sub-strings, matching sub-strings or building a comments-free version
of a string.
|
StringInspector(java.lang.String source,
java.lang.String openingMarkers,
java.lang.String closingMarkers,
java.lang.String overridingMarkers,
java.util.Set<SearchMode> searchMode)
This object provides string searching and manipulation operations such as finding sub-strings, matching sub-strings or building a comments-free version
of a string.
|