package kotlin.io
/** Prints the given [message] to the standard output stream.
*/
@SymbolName("Kotlin_io_Console_print")
external public fun print(message: String)
Kotlinଆ
Slide 20
Slide 20 text
package kotlin.io
/** Prints the given [message] to the standard output stream.
*/
@SymbolName("Kotlin_io_Console_print")
external public fun print(message: String)
Kotlinଆ
Slide 21
Slide 21 text
package kotlin.io
/** Prints the given [message] to the standard output stream.
*/
@SymbolName("Kotlin_io_Console_print")
external public fun print(message: String)
Kotlinଆ
ίϯύΠϥʹରͯؔ͠ͷ࣮ମ֎
෦ʹ͋Δͱڭ͑Δҝͷͷ
ؔͷ࣮ମͷγϯϘϧ໊ $໊ؔ
Λද͢
Slide 22
Slide 22 text
void Kotlin_io_Console_print(KString message) {
if (message->type_info() != theStringTypeInfo) {
ThrowClassCastException(message->obj(), theStringTypeInfo);
}
// TODO: system stdout must be aware about UTF-8.
const KChar* utf16 = CharArrayAddressOfElementAt(message, 0);
KStdString utf8;
// Replace incorrect sequences with a default codepoint (see utf8::with_replacement::default_replacement)
utf8::with_replacement::utf16to8(utf16, utf16 + message->count_, back_inserter(utf8));
konan::consoleWriteUtf8(utf8.c_str(), utf8.size());
}
package kotlin.io
/** Prints the given [message] to the standard output stream. */
@SymbolName("Kotlin_io_Console_print")
external public fun print(message: String)
Kotlinଆ
C++ଆ