public class SchemeIndentChanger
extends java.lang.Object
Constructor and Description |
---|
SchemeIndentChanger() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
changeIndentAbsolute(java.lang.String s,
int indent) |
static java.lang.String |
changeIndentAbsoluteMultiline(java.lang.String s,
int indent) |
static java.lang.String |
changeIndentRelativeMultiline(java.lang.String s,
int indent) |
static int |
countFirstSpaces(java.lang.String s) |
static java.lang.String |
fillStr(char c,
int length) |
static int |
lookupLineEnd(java.lang.String s,
int pos)
Returns the next index of nearest \n on the right side of the specified
position.
|
static int |
lookupLineStart(java.lang.CharSequence s,
int pos)
Returns the next index of the nearest \n on the left side of the specified
position.
|
static void |
main(java.lang.String[] args) |
public static int lookupLineStart(java.lang.CharSequence s, int pos)
public static int lookupLineEnd(java.lang.String s, int pos)
s
- a string object to lookup.pos
- the position where to start lookup.public static java.lang.String fillStr(char c, int length)
public static int countFirstSpaces(java.lang.String s)
public static java.lang.String changeIndentRelativeMultiline(java.lang.String s, int indent)
public static java.lang.String changeIndentAbsoluteMultiline(java.lang.String s, int indent)
public static java.lang.String changeIndentAbsolute(java.lang.String s, int indent)
public static void main(java.lang.String[] args)