摘要:
1.简单匹配算法: 1 private int search(String source, String pattern) { 2 int i = 0; 3 int j = 0; 4 5 int length = pattern.length(); 6 int lastIndex = source.length() - length; 7 8 while (i <= lastIndex && j < length) { 9 if (source.substring(i, i + ... 阅读全文