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

Method right

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

截取字符串右侧指定长度的字符串 @param input 输入字符串 @param count 截取长度 @return 截取字符串 Summary 其他编码的有待测试

(String input, int count)

Source from the content-addressed store, hash-verified

275 * Summary 其他编码的有待测试
276 */
277 public static String right(String input, int count) {
278 if (isEmpty(input)) {
279 return "";
280 }
281 count = (count > input.length()) ? input.length() : count;
282 return input.substring(input.length() - count, input.length());
283 }
284
285
286 /**

Callers 2

testLeftRigthMethod · 0.95
rigthEqualsMethod · 0.95

Calls 1

isEmptyMethod · 0.95

Tested by 1

testLeftRigthMethod · 0.76