Commit 1784577d authored by yanzg's avatar yanzg

身份证识别

parent a9adf3dd
package helper;
import com.yanzuoguang.util.helper.StringHelper;
import org.junit.Test;
public class TestString {
@Test
public void test() {
String content = "【长江索道】您的北站排号号码2764已过期,请在订单页面点击“重取”,或凭门票、身份证到自助机(电商)、游客服务中心重新取号。当前等候区间2782-3004。";
int page = StringHelper.getPage(content.length(), 67);
String content1 = "【长江索道】您的北站排号号码2764已过期,请在订单页面点击“重取”,或凭门票、身份证到自助机(电商)、游客服务中心重新取号。";
int page1 = StringHelper.getPage(content1.length(), 67);
System.out.printf("长度:%d 条数:%d%n", content.length(), page);
System.out.printf("长度:%d 条数:%d%n", content1.length(), page1);
}
}
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