Lab 5, technically working prototype. It's horrid, though.

This commit is contained in:
Rhinemann 2023-06-05 21:47:08 +03:00
parent 49dfcfe457
commit d91c576ab3
1 changed files with 2 additions and 5 deletions

View File

@ -3,8 +3,8 @@ package OOP.Java.lab_5
class Text(textString: String) {
var textArray = arrayOf<Pair<Sentence, Punctuation>>()
var rawText: String = ""
val arrayOfSentences = splitSentences(textString)
val arrayOfPunctuations: Array<Punctuation> = splitPunctuation(textString)
// val arrayOfSentences = splitSentences(textString)
// val arrayOfPunctuations: Array<Punctuation> = splitPunctuation(textString)
init {
val arrayOfSentences = splitSentences(textString)
@ -46,9 +46,6 @@ class Text(textString: String) {
return results.maxBy { it.length }
}
fun checkStringInBoundaries(stringToCheck: String): Boolean {
return stringToCheck.equals(stringToCheck.reversed(), true)
}
override fun toString(): String {
var text = arrayOf<String>()