MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / ltrim

Method ltrim

src/main/java/com/opslab/util/StringUtil.java:203–210  ·  view source on GitHub ↗

截取字符串左侧的Num位截取到末尾 @param str1 处理的字符串 @param num 开始位置 @return 截取后的字符串

(String str1, int num)

Source from the content-addressed store, hash-verified

201 * @return 截取后的字符串
202 */
203 public static String ltrim(String str1, int num) {
204 String tt = "";
205 if (!isEmpty(str1) && str1.length() >= num) {
206 tt = str1.substring(num, str1.length());
207 }
208 return tt;
209
210 }
211
212 /**
213 * 截取字符串右侧第0位到第Num位

Callers 1

testTrimMethod · 0.95

Calls 1

isEmptyMethod · 0.95

Tested by 1

testTrimMethod · 0.76