|
|
@ -64,7 +64,7 @@ class AnalyzeTxtFile { |
|
|
|
blockPos++ |
|
|
|
blockPos++ |
|
|
|
//如果存在Chapter |
|
|
|
//如果存在Chapter |
|
|
|
if (rulePattern != null) { //将数据转换成String |
|
|
|
if (rulePattern != null) { //将数据转换成String |
|
|
|
var blockContent = String(buffer, charset) |
|
|
|
var blockContent = String(buffer, 0, length, charset) |
|
|
|
val lastN = blockContent.lastIndexOf("\n") |
|
|
|
val lastN = blockContent.lastIndexOf("\n") |
|
|
|
if (lastN > 0) { |
|
|
|
if (lastN > 0) { |
|
|
|
blockContent = blockContent.substring(0, lastN) |
|
|
|
blockContent = blockContent.substring(0, lastN) |
|
|
|