Unify print/println/readLine docs

This commit is contained in:
Ilya Gorbunov
2018-10-18 22:24:39 +03:00
parent 406bd7c980
commit ebe9d59df7
3 changed files with 27 additions and 27 deletions
+3 -3
View File
@@ -6,13 +6,13 @@
package kotlin.io
/** Prints a newline to the standard output stream. */
/** Prints the line separator to the standard output stream. */
public expect fun println()
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
public expect fun println(message: Any?)
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
public expect fun print(message: Any?)
+3 -3
View File
@@ -86,17 +86,17 @@ internal var output = run {
@kotlin.internal.InlineOnly
private inline fun String(value: Any?): String = js("String")(value)
/** Prints a newline to the standard output stream. */
/** Prints the line separator to the standard output stream. */
public actual fun println() {
output.println()
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
public actual fun println(message: Any?) {
output.println(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
public actual fun print(message: Any?) {
output.print(message)
}
+21 -21
View File
@@ -14,127 +14,127 @@ import java.nio.CharBuffer
import java.nio.charset.Charset
import java.nio.charset.CharsetDecoder
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public actual inline fun print(message: Any?) {
System.out.print(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun print(message: Int) {
System.out.print(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun print(message: Long) {
System.out.print(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun print(message: Byte) {
System.out.print(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun print(message: Short) {
System.out.print(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun print(message: Char) {
System.out.print(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun print(message: Boolean) {
System.out.print(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun print(message: Float) {
System.out.print(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun print(message: Double) {
System.out.print(message)
}
/** Prints the given message to the standard output stream. */
/** Prints the given [message] to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun print(message: CharArray) {
System.out.print(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public actual inline fun println(message: Any?) {
System.out.println(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun println(message: Int) {
System.out.println(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun println(message: Long) {
System.out.println(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun println(message: Byte) {
System.out.println(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun println(message: Short) {
System.out.println(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun println(message: Char) {
System.out.println(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun println(message: Boolean) {
System.out.println(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun println(message: Float) {
System.out.println(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun println(message: Double) {
System.out.println(message)
}
/** Prints the given message and newline to the standard output stream. */
/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public inline fun println(message: CharArray) {
System.out.println(message)
}
/** Prints a newline to the standard output stream. */
/** Prints the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public actual inline fun println() {
System.out.println()