public class Seek extends Object
| Constructor and Description |
|---|
Seek() |
| Modifier and Type | Method and Description |
|---|---|
static int |
indent(CharSequence text,
int end) |
static boolean |
isAlnum(char c) |
static boolean |
isSplit(char c) |
static boolean |
isWhite(char c) |
static boolean |
notBlank(char c) |
static boolean |
notWhite(char c) |
static int |
seekFollow(String txt,
int off,
int end,
String tkn) |
static int[] |
seekNextAlnum(CharSequence txt,
int off,
int end) |
static int |
seekNextEdge(CharSequence txt,
int off)
右侧包含`\n`,index为end
|
static int |
seekNextGrace(CharSequence txt,
int off,
int end) |
static int |
seekNextSplit(CharSequence txt,
int off,
int end) |
static int |
seekNextWhite(CharSequence txt,
int off,
int end) |
static int[] |
seekNextWords(CharSequence txt,
int off,
int end) |
static int |
seekPrevEdge(CharSequence txt,
int end)
左侧不包含`\n`,index为start
|
static int |
seekPrevGrace(CharSequence txt,
int off,
int end) |
static int |
seekPrevWhite(CharSequence txt,
int off,
int end) |
static int[] |
seekPrevWords(CharSequence txt,
int off,
int end) |
static int |
seekToken(String txt,
int off,
int end,
String tkn,
boolean echo)
区域内查找特征字符
|
static int[] |
trimBlank(CharSequence txt,
int off,
int end) |
public static int seekToken(String txt, int off, int end, String tkn, boolean echo)
txt - 源off - 开始位置,包含end - 结束位置,不包含tkn - 特征echo - 是否叠字public static int seekPrevGrace(CharSequence txt, int off, int end)
public static int seekNextGrace(CharSequence txt, int off, int end)
public static int seekPrevWhite(CharSequence txt, int off, int end)
public static int seekNextWhite(CharSequence txt, int off, int end)
public static int[] seekPrevWords(CharSequence txt, int off, int end)
public static int[] seekNextWords(CharSequence txt, int off, int end)
public static int seekNextSplit(CharSequence txt, int off, int end)
public static int[] seekNextAlnum(CharSequence txt, int off, int end)
public static int[] trimBlank(CharSequence txt, int off, int end)
public static int seekPrevEdge(CharSequence txt, int end)
txt - 文本end - 结束,不含public static int seekNextEdge(CharSequence txt, int off)
txt - 文本off - 开始,含public static boolean isAlnum(char c)
public static boolean isSplit(char c)
public static boolean isWhite(char c)
public static boolean notWhite(char c)
public static boolean notBlank(char c)
public static int indent(CharSequence text, int end)
Copyright © 2020. All rights reserved.