W3cubDocs

/Haxe C++

NativeSys

package cpp

@:buildXml("<include name=\"${HXCPP}/src/hx/libs/std/Build.xml\"/>") Available on cpp

Static methods

@:extern @:native("_hx_std_file_delete") static file_delete (path:String):Void

@:extern @:native("_hx_std_file_full_path") static file_full_path (path:String):String

@:extern @:native("_hx_std_get_cwd") static get_cwd ():String

@:extern @:native("_hx_std_get_env") static get_env (v:String):String

@:native("__hxcpp_print") static print (v:Dynamic):Void

@:native("__hxcpp_println") static println (v:Dynamic):Void

@:extern @:native("_hx_std_put_env") static put_env (e:String, v:String):Void

@:extern @:native("_hx_std_set_cwd") static set_cwd (d:String):Void

@:extern @:native("_hx_std_set_time_locale") static set_time_locale (l:String):Bool

@:extern @:native("_hx_std_sys_command") static sys_command (cmd:String):Int

@:extern @:native("_hx_std_sys_cpu_time") static sys_cpu_time ():Float

@:extern @:native("_hx_std_sys_create_dir") static sys_create_dir (path:String, mode:Int):Bool

@:extern @:native("_hx_std_sys_env") static sys_env ():Array<String>

@:extern @:native("_hx_std_sys_exe_path") static sys_exe_path ():String

@:extern @:native("_hx_std_sys_exists") static sys_exists (path:String):Bool

@:extern @:native("_hx_std_sys_exit") static sys_exit (code:Int):Void

@:extern @:native("_hx_std_sys_file_type") static sys_file_type (path:String):String

@:extern @:native("_hx_std_sys_get_pid") static sys_get_pid ():Int

@:extern @:native("_hx_std_sys_getch") static sys_getch (b:Bool):Int

@:extern @:native("_hx_std_sys_is64") static sys_is64 ():Bool

@:extern @:native("_hx_std_sys_read_dir") static sys_read_dir (p:String):Array<String>

@:extern @:native("_hx_std_sys_remove_dir") static sys_remove_dir (path:String):Void

@:extern @:native("_hx_std_sys_rename") static sys_rename (path:String, newname:String):Bool

@:extern @:native("_hx_std_sys_sleep") static sys_sleep (f:Float):Void

@:extern @:native("_hx_std_sys_stat") static sys_stat (path:String):Dynamic

@:extern @:native("_hx_std_sys_string") static sys_string ():String

@:extern @:native("_hx_std_sys_time") static sys_time ():Float

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cpp/NativeSys.html