Unify print/println/readLine docs
This commit is contained in:
@@ -6,13 +6,13 @@
|
|||||||
package kotlin.io
|
package kotlin.io
|
||||||
|
|
||||||
|
|
||||||
/** Prints a newline to the standard output stream. */
|
/** Prints the line separator to the standard output stream. */
|
||||||
public expect fun println()
|
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?)
|
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?)
|
public expect fun print(message: Any?)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -86,17 +86,17 @@ internal var output = run {
|
|||||||
@kotlin.internal.InlineOnly
|
@kotlin.internal.InlineOnly
|
||||||
private inline fun String(value: Any?): String = js("String")(value)
|
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() {
|
public actual fun println() {
|
||||||
output.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?) {
|
public actual fun println(message: Any?) {
|
||||||
output.println(message)
|
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?) {
|
public actual fun print(message: Any?) {
|
||||||
output.print(message)
|
output.print(message)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,127 +14,127 @@ import java.nio.CharBuffer
|
|||||||
import java.nio.charset.Charset
|
import java.nio.charset.Charset
|
||||||
import java.nio.charset.CharsetDecoder
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public actual inline fun print(message: Any?) {
|
public actual inline fun print(message: Any?) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun print(message: Int) {
|
public inline fun print(message: Int) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun print(message: Long) {
|
public inline fun print(message: Long) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun print(message: Byte) {
|
public inline fun print(message: Byte) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun print(message: Short) {
|
public inline fun print(message: Short) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun print(message: Char) {
|
public inline fun print(message: Char) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun print(message: Boolean) {
|
public inline fun print(message: Boolean) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun print(message: Float) {
|
public inline fun print(message: Float) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun print(message: Double) {
|
public inline fun print(message: Double) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun print(message: CharArray) {
|
public inline fun print(message: CharArray) {
|
||||||
System.out.print(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public actual inline fun println(message: Any?) {
|
public actual inline fun println(message: Any?) {
|
||||||
System.out.println(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun println(message: Int) {
|
public inline fun println(message: Int) {
|
||||||
System.out.println(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun println(message: Long) {
|
public inline fun println(message: Long) {
|
||||||
System.out.println(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun println(message: Byte) {
|
public inline fun println(message: Byte) {
|
||||||
System.out.println(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun println(message: Short) {
|
public inline fun println(message: Short) {
|
||||||
System.out.println(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun println(message: Char) {
|
public inline fun println(message: Char) {
|
||||||
System.out.println(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun println(message: Boolean) {
|
public inline fun println(message: Boolean) {
|
||||||
System.out.println(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun println(message: Float) {
|
public inline fun println(message: Float) {
|
||||||
System.out.println(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun println(message: Double) {
|
public inline fun println(message: Double) {
|
||||||
System.out.println(message)
|
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
|
@kotlin.internal.InlineOnly
|
||||||
public inline fun println(message: CharArray) {
|
public inline fun println(message: CharArray) {
|
||||||
System.out.println(message)
|
System.out.println(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Prints a newline to the standard output stream. */
|
/** Prints the line separator to the standard output stream. */
|
||||||
@kotlin.internal.InlineOnly
|
@kotlin.internal.InlineOnly
|
||||||
public actual inline fun println() {
|
public actual inline fun println() {
|
||||||
System.out.println()
|
System.out.println()
|
||||||
|
|||||||
Reference in New Issue
Block a user