public fun makeCompletePhraseString()

in richtext-ui/src/commonMain/kotlin/com/halilibo/richtext/ui/util/AnnotatedStringSegmenter.kt [11:18]


  public fun makeCompletePhraseString(isComplete: Boolean): AnnotatedString {
    return when {
      isComplete -> annotatedString
      else -> annotatedString.subSequence(0,
        annotatedString.length.coerceAtMost(
          phraseSegments.lastOrNull() ?: annotatedString.length))
    }
  }