类 MStr
java.lang.Object
com.gdxsoft.easyweb.utils.msnet.MStr
- 所有已实现的接口:
Serializable
兼容的StringBuilder 对象
- 作者:
- Administrator
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明添加内容 = append添加内容,并在结尾添加新行(newLine),默认\r\n = appendLine添加内容appendLine(Object val) 添加内容,并在结尾添加新行(newLine),默认\r\ndelete(int startIndex, int endIndex) 删除字符串新行字符串,默认是\r\nint查找字符串位置int查找字符串位置插入字符串intlength()只替换一次voidreset()voidsetLength(int length) voidsetNewLine(String newLine) 设置新行字符串,默认是\r\nsubstring(int startIndex) 提取字符串substring(int startIndex, int endIndex) 提取字符串toString()返回字符串
-
构造器详细资料
-
MStr
public MStr() -
MStr
-
-
方法详细资料
-
length
public int length() -
setLength
public void setLength(int length) -
reset
public void reset() -
a
添加内容 = append- 参数:
val- 内容- 返回:
- this
-
append
添加内容- 参数:
val- 内容- 返回:
- this
-
appendLine
添加内容,并在结尾添加新行(newLine),默认\r\n- 参数:
val- 内容- 返回:
- this
-
al
添加内容,并在结尾添加新行(newLine),默认\r\n = appendLine- 参数:
val- 内容- 返回:
- this
-
indexOf
查找字符串位置- 参数:
val- 字符串- 返回:
-
indexOf
查找字符串位置- 参数:
val- 字符串start- 开始位置- 返回:
-
substring
提取字符串- 参数:
startIndex- 开始位置- 返回:
- 提取的字符串
-
substring
提取字符串- 参数:
startIndex- 开始位置endIndex- 结束位置- 返回:
- 提取的字符串
-
delete
删除字符串- 参数:
startIndex- 开始位置endIndex- 结束位置- 返回:
- this
-
insert
插入字符串- 参数:
index- 位置val- 字符串- 返回:
- this
-
replace
只替换一次- 参数:
find-val-- 返回:
- this
-
toString
返回字符串 -
getNewLine
新行字符串,默认是\r\n- 返回:
- the newLine
-
setNewLine
设置新行字符串,默认是\r\n- 参数:
newLine- the newLine to set
-