From a399a32b3ab94024dafbbc77f0a06effdcbb9110 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 16 Aug 2019 11:39:17 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/help/BookHelp.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/src/main/java/io/legado/app/help/BookHelp.kt b/app/src/main/java/io/legado/app/help/BookHelp.kt index db0b27222..fa42f9cfe 100644 --- a/app/src/main/java/io/legado/app/help/BookHelp.kt +++ b/app/src/main/java/io/legado/app/help/BookHelp.kt @@ -1,7 +1,26 @@ package io.legado.app.help +import io.legado.app.data.entities.Book +import io.legado.app.data.entities.BookChapter + object BookHelp { + fun saveContent(book: Book, bookChapter: BookChapter, content: String) { + + } + + fun hasContent(book: Book, bookChapter: BookChapter): Boolean { + + + return false + } + + fun getContent(book: Book, bookChapter: BookChapter): String? { + + + return null + } + fun formatAuthor(author: String?): String { return author ?.replace("作\\s*者[\\s::]*".toRegex(), "")