Commit ecdf772c authored by yanzg's avatar yanzg

默认日期格式的支持

parent b84007a1
......@@ -1143,6 +1143,9 @@ public class StringHelper {
* @return
*/
public static String trimStart(String inStr, String prefix) {
if (inStr == null) {
return null;
}
if (inStr.startsWith(prefix)) {
String ret = inStr.substring(prefix.length());
return trimStart(ret, prefix);
......@@ -1158,6 +1161,9 @@ public class StringHelper {
* @return
*/
public static String trimEnd(String inStr, String suffix) {
if (inStr == null) {
return null;
}
if (inStr.endsWith(suffix)) {
String ret = inStr.substring(0, inStr.length() - suffix.length());
return trimEnd(ret, suffix);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment