// Generated by Haxe 4.0.5 #include #ifndef INCLUDED_haxe_io_Path #include #endif #ifndef INCLUDED_sys_FileSystem #include #endif HX_LOCAL_STACK_FRAME(_hx_pos_b4db2871ee22ed2c_31_exists,"sys.FileSystem","exists",0xf55bed9e,"sys.FileSystem.exists","/usr/share/haxe/std/cpp/_std/sys/FileSystem.hx",31,0xcabeeced) namespace sys{ void FileSystem_obj::__construct() { } Dynamic FileSystem_obj::__CreateEmpty() { return new FileSystem_obj; } void *FileSystem_obj::_hx_vtable = 0; Dynamic FileSystem_obj::__Create(hx::DynamicArray inArgs) { hx::ObjectPtr< FileSystem_obj > _hx_result = new FileSystem_obj(); _hx_result->__construct(); return _hx_result; } bool FileSystem_obj::_hx_isInstanceOf(int inClassId) { return inClassId==(int)0x00000001 || inClassId==(int)0x284891f8; } bool FileSystem_obj::exists(::String path){ HX_STACKFRAME(&_hx_pos_b4db2871ee22ed2c_31_exists) HXDLIN( 31) ::String _hx_tmp; HXDLIN( 31) bool _hx_tmp1; HXDLIN( 31) if (hx::IsEq( path.charCodeAt(1),58 )) { HXDLIN( 31) _hx_tmp1 = (path.length <= 3); } else { HXDLIN( 31) _hx_tmp1 = false; } HXDLIN( 31) if (_hx_tmp1) { HXDLIN( 31) _hx_tmp = ::haxe::io::Path_obj::addTrailingSlash(path); } else { HXDLIN( 31) if ((path == HX_("/",2f,00,00,00))) { HXDLIN( 31) _hx_tmp = HX_("/",2f,00,00,00); } else { HXDLIN( 31) _hx_tmp = ::haxe::io::Path_obj::removeTrailingSlashes(path); } } HXDLIN( 31) return _hx_std_sys_exists(_hx_tmp); } STATIC_HX_DEFINE_DYNAMIC_FUNC1(FileSystem_obj,exists,return ) FileSystem_obj::FileSystem_obj() { } bool FileSystem_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp) { switch(inName.length) { case 6: if (HX_FIELD_EQ(inName,"exists") ) { outValue = exists_dyn(); return true; } } return false; } #ifdef HXCPP_SCRIPTABLE static hx::StorageInfo *FileSystem_obj_sMemberStorageInfo = 0; static hx::StaticInfo *FileSystem_obj_sStaticStorageInfo = 0; #endif hx::Class FileSystem_obj::__mClass; static ::String FileSystem_obj_sStaticFields[] = { HX_("exists",dc,1d,e0,bf), ::String(null()) }; void FileSystem_obj::__register() { FileSystem_obj _hx_dummy; FileSystem_obj::_hx_vtable = *(void **)&_hx_dummy; hx::Static(__mClass) = new hx::Class_obj(); __mClass->mName = HX_("sys.FileSystem",6c,2c,e5,e6); __mClass->mSuper = &super::__SGetClass(); __mClass->mConstructEmpty = &__CreateEmpty; __mClass->mConstructArgs = &__Create; __mClass->mGetStaticField = &FileSystem_obj::__GetStatic; __mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField; __mClass->mStatics = hx::Class_obj::dupFunctions(FileSystem_obj_sStaticFields); __mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */); __mClass->mCanCast = hx::TCanCast< FileSystem_obj >; #ifdef HXCPP_SCRIPTABLE __mClass->mMemberStorageInfo = FileSystem_obj_sMemberStorageInfo; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mStaticStorageInfo = FileSystem_obj_sStaticStorageInfo; #endif hx::_hx_RegisterClass(__mClass->mName, __mClass); } } // end namespace sys