Deprecate dropWhileTo and takeWhileTo on CharSequences.
(cherry picked from commit 14f17e7)
diff --git a/libraries/stdlib/src/kotlin/text/StringsJVM.kt b/libraries/stdlib/src/kotlin/text/StringsJVM.kt
index 464b37e..e2a3d93 100644
--- a/libraries/stdlib/src/kotlin/text/StringsJVM.kt
+++ b/libraries/stdlib/src/kotlin/text/StringsJVM.kt
@@ -471,6 +471,7 @@
  * Appends the contents of this char sequence, excluding the first characters that satisfy the given [predicate],
  * to the given Appendable.
  */
+@Deprecated("This function will be removed soon.", ReplaceWith("result.append(this.dropWhile(predicate))"))
 public inline fun <T : Appendable> CharSequence.dropWhileTo(result: T, predicate: (Char) -> Boolean): T {
     var start = true
     for (element in this) {
@@ -487,6 +488,7 @@
 /**
  * Appends the first characters from this char sequence that satisfy the given [predicate] to the given Appendable.
  */
+@Deprecated("This function will be removed soon.", ReplaceWith("result.append(this.takeWhile(predicate))"))
 public inline fun <T : Appendable> CharSequence.takeWhileTo(result: T, predicate: (Char) -> Boolean): T {
     for (c in this) if (predicate(c)) result.append(c) else break
     return result