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

Method right

src/main/java/com/opslab/helper/StringHelper.java:186–192  ·  view source on GitHub ↗

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

(String input, int count)

Source from the content-addressed store, hash-verified

184 * Summary 其他编码的有待测试
185 */
186 public static String right(String input, int count) {
187 if (isEmpty(input)) {
188 return "";
189 }
190 count = (count > input.length()) ? input.length() : count;
191 return input.substring(input.length() - count, input.length());
192 }
193
194 /**
195 * 返回俩个字符串共同的前缀

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected