MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_print_string

Function __hxcpp_print_string

src/hx/StdLibs.cpp:653–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651
652
653void __hxcpp_print_string(const String &inV)
654{
655#ifdef HX_WINDOWS
656 HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
657 DWORD mode;
658 if (GetConsoleMode(handle, &mode) && inV.isUTF16Encoded())
659 {
660 fflush(stdout);
661 WriteConsoleAllW(handle, inV.__WCStr(), inV.length);
662 return;
663 }
664#endif
665 hx::strbuf convertBuf;
666 PRINTF("%s", inV.out_str(&convertBuf) );
667}
668
669void __hxcpp_println_string(const String &inV)
670{

Callers 1

__hxcpp_printFunction · 0.85

Calls 1

WriteConsoleAllWFunction · 0.85

Tested by

no test coverage detected