| Modifier and Type | Method and Description |
|---|---|
StringCropper.StrPosition |
StringCropper.getAfterOfWithDetails(String srcStr,
String token)
returns the string that is cropped after token with position-detail-info
Method Example, getAfterOfWithDetails("AAABCDBCDEEE","BCD") returns str=EEE, startIndex=9, endIndex=11 |
StringCropper.StrPosition |
StringCropper.getAfterOfWithDetails(String srcStr,
String token,
boolean useTailSearch)
returns the string that is cropped after token with position-detail-info
Method Example1 tail mode=true, getAfterOfWithDetails("AAABCDBCDEEE","BCD",true) returns str=EEE, startIndex=9, endIndex=11 Method Example2 tail mode=true, getAfterOfWithDetails("AAABCDBCDEEE","BCD",true) returns str=BCDEEE, startIndex=6, endIndex=11 |
StringCropper.StrPosition |
StringCropper.getBeforeOfWithDetails(String srcStr,
String token)
returns the string that is cropped before token with position-detail-info
|
StringCropper.StrPosition |
StringCropper.getStringEnclosedInFirstWithDetails(String srcStr,
String startToken,
String endToken)
returns the first one that enclosed in specific tokens found in the
source string with position-detail-info
|
| Modifier and Type | Method and Description |
|---|---|
List<StringCropper.StrPosition> |
StringCropper.getStringEnclosedInWithDetails(String srcStr,
String startToken,
String endToken)
returns all of discovery that enclosed in specific tokens found in the
source string with position-detail-info.
|
List<StringCropper.StrPosition> |
StringCropper.splitByIndexWithDetail(String srcStr,
Integer... splitPoint)
split string by index[indexes]
Example #splitByIndex("abcdefghi",2,5) returns StrPosition [str=abc, startIndex=0, endIndex=2] StrPosition [str=def, startIndex=3, endIndex=5] StrPosition [str=ghi, startIndex=6, endIndex=8] |
Copyright © 2015. All rights reserved.