|
@@ -280,8 +280,10 @@ class StringAutoTest : AutoTest {
|
|
(A0 = B0)
|
|
(A0 = B0)
|
|
- A-1 & B-1
|
|
- A-1 & B-1
|
|
(A0 != B0) & (A0 in B) & (B0 in A)
|
|
(A0 != B0) & (A0 in B) & (B0 in A)
|
|
- - 取 A0,B0最小 Range 值
|
|
|
|
|
|
+ - 取 A0,B0最小 Range 值(裁剪区域比较小时)
|
|
- 字符串裁剪对齐
|
|
- 字符串裁剪对齐
|
|
|
|
+ - 取 A0,B0最小 Range 值中字符顺序出现大的值(裁剪区域比较大时,先找出顺序最大序列,删除最小序列首字符)
|
|
|
|
+ - 字符串裁剪首字符
|
|
(A0 != B0) & (A0 in B)
|
|
(A0 != B0) & (A0 in B)
|
|
- 存储B0到识别错误缓存
|
|
- 存储B0到识别错误缓存
|
|
(A0 != B0) & (B0 in A)
|
|
(A0 != B0) & (B0 in A)
|
|
@@ -347,7 +349,7 @@ class StringAutoTest : AutoTest {
|
|
failString = failString.appending(subr as String) as NSString
|
|
failString = failString.appending(subr as String) as NSString
|
|
resultStr = resultStr.substring(from:1) as NSString
|
|
resultStr = resultStr.substring(from:1) as NSString
|
|
}else if (rdegree > 0.2) {
|
|
}else if (rdegree > 0.2) {
|
|
- //‘subc' 字符串有在‘resultStr’中,但'subr'不在’checkString‘中,resultStr 往后推一
|
|
|
|
|
|
+ //‘subr' 字符串有在‘checkString’中,但'subc'不在’checkString‘中,checkString 往后推一
|
|
skipString = skipString.appending(subc as String) as NSString
|
|
skipString = skipString.appending(subc as String) as NSString
|
|
checkString = checkString.substring(from:1) as NSString
|
|
checkString = checkString.substring(from:1) as NSString
|
|
} else if (cdegree > rdegree * 2.0) {
|
|
} else if (cdegree > rdegree * 2.0) {
|
|
@@ -355,7 +357,7 @@ class StringAutoTest : AutoTest {
|
|
failString = failString.appending(subr as String) as NSString
|
|
failString = failString.appending(subr as String) as NSString
|
|
resultStr = resultStr.substring(from:1) as NSString
|
|
resultStr = resultStr.substring(from:1) as NSString
|
|
}else if (cdegree * 2.0 < rdegree) {
|
|
}else if (cdegree * 2.0 < rdegree) {
|
|
- //‘subc' 字符串有在‘resultStr’中,但'subr'不在’checkString‘中,resultStr 往后推一
|
|
|
|
|
|
+ //‘subr' 字符串有在‘checkString’中,但'subc'不在’checkString‘中,checkString 往后推一
|
|
skipString = skipString.appending(subc as String) as NSString
|
|
skipString = skipString.appending(subc as String) as NSString
|
|
checkString = checkString.substring(from:1) as NSString
|
|
checkString = checkString.substring(from:1) as NSString
|
|
}else if (cCount < rCount) {
|
|
}else if (cCount < rCount) {
|
|
@@ -363,7 +365,7 @@ class StringAutoTest : AutoTest {
|
|
failString = failString.appending(subr as String) as NSString
|
|
failString = failString.appending(subr as String) as NSString
|
|
resultStr = resultStr.substring(from:1) as NSString
|
|
resultStr = resultStr.substring(from:1) as NSString
|
|
}else {
|
|
}else {
|
|
- //‘subc' 字符串有在‘resultStr’中,但'subr'不在’checkString‘中,resultStr 往后推一
|
|
|
|
|
|
+ //‘subr' 字符串有在‘checkString’中,但'subc'不在’checkString‘中,checkString 往后推一
|
|
skipString = skipString.appending(subc as String) as NSString
|
|
skipString = skipString.appending(subc as String) as NSString
|
|
checkString = checkString.substring(from:1) as NSString
|
|
checkString = checkString.substring(from:1) as NSString
|
|
}
|
|
}
|