public class Cut extends java.lang.Object implements StringFormat
Strip
Constructor and Description |
---|
Cut() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
cut(java.lang.String sValue,
int iCut)
Cuts a string, leaving only the first N characters from it, jumping over tags.
|
java.lang.String |
format(java.lang.String sTag,
java.lang.String sOption,
java.lang.String sValue)
Cuts a string, leaving only the first N characters from it, jumping over tags.
|
static void |
main(java.lang.String[] args)
Debug method
|
public java.lang.String format(java.lang.String sTag, java.lang.String sOption, java.lang.String sValue)
format
in interface StringFormat
sTag
- ignoredsOption
- tag option, in the form "cutN", with N>0sValue
- original stringpublic static java.lang.String cut(java.lang.String sValue, int iCut)
sValue
- iCut
- public static void main(java.lang.String[] args)
args
-