We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
private static String trim(String str, String stripChars, int mode)
此方法逻辑有问题
stripChars.indexOf(str.charAt(start)) != -1
此行并不能判定字符串顺序,例如
String a = "abcdefgbac"; System.out.println(trim(a, "abc", 0)); //结果defg
trim方法会匹配abc,同时也会匹配acb、bac、cba等等
The text was updated successfully, but these errors were encountered:
fix
Sorry, something went wrong.
No branches or pull requests
此方法逻辑有问题
此行并不能判定字符串顺序,例如
trim方法会匹配abc,同时也会匹配acb、bac、cba等等
The text was updated successfully, but these errors were encountered: