Home
last modified time | relevance | path

Searched refs:NWC (Results 1 – 25 of 141) sorted by relevance

123456

/dports/x11-fm/worker/worker-4.10.0/src/
H A Dnwc_path_test.cc19 ck_assert( NWC::Path::dirname( "" ) == "" ); in START_TEST()
20 ck_assert( NWC::Path::dirname( "/" ) == "/" ); in START_TEST()
21 ck_assert( NWC::Path::dirname( "/x" ) == "/" ); in START_TEST()
22 ck_assert( NWC::Path::dirname( "/x/" ) == "/x" ); in START_TEST()
23 ck_assert( NWC::Path::dirname( "/x/y" ) == "/x" ); in START_TEST()
25 ck_assert( NWC::Path::dirname( "x" ) == "" ); in START_TEST()
31 ck_assert( NWC::Path::join( "", "x" ) == "x" ); in START_TEST()
32 ck_assert( NWC::Path::join( "/", "x" ) == "/x" ); in START_TEST()
33 ck_assert( NWC::Path::join( "x", "y" ) == "x/y" ); in START_TEST()
35 ck_assert( NWC::Path::join( "/x", "/y" ) == "/y" ); in START_TEST()
[all …]
H A Dget_files_thread.hh35 class GetFilesThread : public Thread, private NWC::DirWalkCallBack
38 GetFilesThread( std::unique_ptr<NWC::Dir> searchdir );
45 void setVisitCB( std::function< void( NWC::File & ) > cb );
46 void setVisitEnterDirCB( std::function< bool( NWC::Dir & ) > cb );
50 int visit( NWC::File &file, NWC::Dir::WalkControlObj &cobj );
51 int visitEnterDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj );
52 int visitLeaveDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj );
53 int prepareDirWalk( const NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj,
57 std::function< void( NWC::File & ) > m_visit_cb;
58 std::function< bool( NWC::Dir & ) > m_visit_enter_dir_cb;
[all …]
H A Dget_files_thread.cc33 GetFilesThread::GetFilesThread( std::unique_ptr<NWC::Dir> searchdir ) in GetFilesThread()
56 m_searchdir->walk( *this, NWC::Dir::RECURSIVE_DEMAND ); in doSearch()
61 int GetFilesThread::visit( NWC::File &file, NWC::Dir::WalkControlObj &cobj ) in visit()
68 cobj.setMode( NWC::Dir::WalkControlObj::ABORT ); in visit()
73 int GetFilesThread::visitEnterDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj ) in visitEnterDir()
79 cobj.setMode( NWC::Dir::WalkControlObj::SKIP ); in visitEnterDir()
84 cobj.setMode( NWC::Dir::WalkControlObj::ABORT ); in visitEnterDir()
89 int GetFilesThread::visitLeaveDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj ) in visitLeaveDir()
94 int GetFilesThread::prepareDirWalk( const NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj, in prepareDirWalk()
101 void GetFilesThread::setVisitCB( std::function< void( NWC::File & ) > cb ) in setVisitCB()
[all …]
H A Dsearchthread.hh34 class SearchThread : public Thread, private NWC::DirWalkCallBack
37 SearchThread( std::unique_ptr<NWC::Dir> searchdir );
77 virtual int checkContent( const NWC::File &file );
78 virtual int matchContentLine( const NWC::File &file, const char *line, int current_line );
82 int visit( NWC::File &file, NWC::Dir::WalkControlObj &cobj );
83 int visitEnterDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj );
84 int visitLeaveDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj );
85 int prepareDirWalk( const NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj,
86 std::list< RefCount< NWC::FSEntry > > &return_add_entries,
87 std::list< RefCount< NWC::FSEntry > > &return_skip_entries );
[all …]
H A Ddircompareop.hh87 compare_element( NWC::FSEntry *entry, size_t orig_pos ) : in compare_element()
95 NWC::FSEntry *entry = NULL;
106 int compareDirs( std::shared_ptr< NWC::Dir > my_dir,
107 std::shared_ptr< NWC::Dir > other_dir,
110 std::unique_ptr< NWC::Dir > &my_res_vdir,
112 int compareEntry( NWC::FSEntry *my_entry,
113 NWC::FSEntry *other_entry,
114 std::unique_ptr< NWC::Dir > &my_res_vdir,
115 std::unique_ptr< NWC::Dir > &other_res_vdir,
117 int compareFile( NWC::FSEntry *my_entry,
[all …]
H A Dvirtualdirmode_regcommands.cc39 std::unique_ptr< NWC::Dir > selvdir( new NWC::VirtualDir( name ) ); in vdir_from_selected()
49 selvdir->add( NWC::FSEntry( tfe->fullname ) ); in vdir_from_selected()
80 std::unique_ptr< NWC::Dir > selvdir( new NWC::VirtualDir( name ) ); in vdir_add_selected_from_other_side()
86 selvdir->add( NWC::FSEntry( tfe->fullname ) ); in vdir_add_selected_from_other_side()
142 std::unique_ptr< NWC::Dir > selvdir( new NWC::VirtualDir( name ) ); in vdir_from_script_stack()
148 selvdir->add( NWC::FSEntry( wpu->stackEntry( value, i ) ) ); in vdir_from_script_stack()
185 std::unique_ptr< NWC::Dir > selvdir( new NWC::VirtualDir( name ) ); in vdir_add_entry()
187 selvdir->add( NWC::FSEntry( value ) ); in vdir_add_entry()
H A Dworkerinitialsettings.cc34 m_config_base_dir = NWC::Path::join( homestr, ".worker" ); in WorkerInitialSettings()
44 if ( NWC::FSEntry( m_config_base_dir ).entryExists() ) { in WorkerInitialSettings()
50 m_config_base_dir = NWC::Path::join( xdg_home, "worker" ); in WorkerInitialSettings()
52 std::string xdg_config_dir = NWC::Path::join( homestr, ".config" ); in WorkerInitialSettings()
54 if ( NWC::FSEntry( xdg_config_dir ).entryExists() ) { in WorkerInitialSettings()
55 m_config_base_dir = NWC::Path::join( xdg_config_dir, "worker" ); in WorkerInitialSettings()
75 if ( NWC::Path::isAbs( dir ) ) { in setConfigBaseDir()
H A Dsearchthread.cc33 SearchThread::SearchThread( std::unique_ptr<NWC::Dir> searchdir ) : _current_mode( SEARCHING ), in SearchThread()
70 _searchdir->walk( *this, NWC::Dir::RECURSIVE_DEMAND ); in doSearch()
114 int SearchThread::visit( NWC::File &file, NWC::Dir::WalkControlObj &cobj ) in visit()
149 cobj.setMode( NWC::Dir::WalkControlObj::ABORT ); in visit()
154 int SearchThread::visitEnterDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj ) in visitEnterDir()
187 int SearchThread::visitLeaveDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj ) in visitLeaveDir()
192 int SearchThread::prepareDirWalk( const NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj, in prepareDirWalk()
193 std::list< RefCount< NWC::FSEntry > > &return_add_entries, in prepareDirWalk()
198 const NWC::VirtualDir &vdir = dynamic_cast<const NWC::VirtualDir&>( dir ); in prepareDirWalk()
218 NWC::VirtualDir *vd = new NWC::VirtualDir( vname, in prepareDirWalk()
[all …]
H A Dnmextlist.cc113 class ExtListDirWalk : public NWC::DirWalkCallBack
122 int visit( NWC::File &file, NWC::Dir::WalkControlObj &cobj ) in visit()
136 int visitEnterDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj ) in visitEnterDir()
149 int visitLeaveDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj ) { return 0; } in visitLeaveDir()
150 int prepareDirWalk( const NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj, in prepareDirWalk()
151 std::list< RefCount< NWC::FSEntry > > &return_add_entries, in prepareDirWalk()
152 std::list< RefCount< NWC::FSEntry > > &return_skip_entries ) { return 0; } in prepareDirWalk()
185 RefCount< NWC::VirtualDir > vd = msg->getEntriesToConsider(); in createExtList()
H A Dresultstore.cc26 _dir = new NWC::VirtualDir( searchname, follow_symlinks, false, search_same_fs ); in ResultStore()
38 NWC::VirtualDir *ResultStore::getDir() in getDir()
50 NWC::VirtualDir *ResultStore::getClonedDir() const in getClonedDir()
52 NWC::VirtualDir *d = NULL; in getClonedDir()
53 NWC::FSEntry *fse = _dir->clone(); in getClonedDir()
56 d = dynamic_cast<NWC::VirtualDir*>( fse ); in getClonedDir()
60 …d = new NWC::VirtualDir( "searchdir1", _dir->getFollowSymlinks(), false, _dir->getSearchSameFS() ); in getClonedDir()
H A Ddircompareop.cc74 int DirCompareOp::compareFile( NWC::FSEntry *my_entry, in compareFile()
75 NWC::FSEntry *other_entry ) in compareFile()
152 int DirCompareOp::compareEntry( NWC::FSEntry *my_entry, in compareEntry()
153 NWC::FSEntry *other_entry, in compareEntry()
158 NWC::Dir *my_dir = dynamic_cast< NWC::Dir * >( my_entry ); in compareEntry()
159 NWC::Dir *other_dir = dynamic_cast< NWC::Dir * >( other_entry ); in compareEntry()
164 auto my_sdir = std::make_shared<NWC::Dir>( *my_dir ); in compareEntry()
689 std::unique_ptr< NWC::Dir > this_res_dir; in run()
690 std::unique_ptr< NWC::Dir > other_res_dir; in run()
700 this_res_dir = std::unique_ptr< NWC::Dir >( new NWC::VirtualDir( name ) ); in run()
[all …]
H A Dnwc_os_makedirs.cc28 namespace NWC { namespace
45 path = NWC::Path::join( path, segment ); in prepare_deep_dir_info()
47 NWC::FSEntry fe( path ); in prepare_deep_dir_info()
90 path = NWC::Path::join( path, s.get_segment_name() ); in make_dirs()
101 NWC::FSEntry fe( path ); in make_dirs()
125 NWC::FSEntry fse( dirname ); in make_dirs()
H A Dnwcentryselectionstate.hh58 const NWC::FSEntry *getNWCEntry() const;
59 NWC::FSEntry *getNWCEntry();
95 const NWC::FSEntry *fse,
107 void setDir( RefCount< NWC::Dir > dir );
114 RefCount< NWC::Dir > m_dir;
115 RefCount< NWC::FSEntry > m_cloned_entry;
H A Dnwcentryselectionstate.cc64 const NWC::FSEntry *fse = other.getNWCEntry(); in NWCEntrySelectionState()
102 void NWCEntrySelectionState::setDir( RefCount< NWC::Dir > dir ) in setDir()
127 const NWC::FSEntry *NWCEntrySelectionState::getNWCEntry() const in getNWCEntry()
138 NWC::FSEntry *NWCEntrySelectionState::getNWCEntry() in getNWCEntry()
164 const NWC::FSEntry *fse; in getEffectiveFiletype()
183 const NWC::FSEntry *fse1, *fse2; in sortfunction()
214 const NWC::Dir *d = dynamic_cast< const NWC::Dir * >( fse1 ); in sortfunction()
226 const NWC::Dir *d = dynamic_cast< const NWC::Dir * >( fse2 ); in sortfunction()
471 const NWC::FSEntry *fse = getNWCEntry(); in getStringRepresentation()
480 const NWC::FSEntry *fse, in getStringRepresentation()
[all …]
H A Dresultstore.hh42 NWC::VirtualDir *getDir();
43 NWC::VirtualDir *getClonedDir() const;
56 NWC::VirtualDir *_dir;
H A Ddmcacheentrynwc.cc35 DMCacheEntryNWC::DMCacheEntryNWC( std::unique_ptr< NWC::Dir > dir, in DMCacheEntryNWC()
61 void DMCacheEntryNWC::setDir( std::unique_ptr< NWC::Dir > dir ) in setDir()
172 NWC::Dir *old_dir = dynamic_cast< NWC::Dir * >( old_fse ); in applyOldSettings()
173 NWC::Dir *new_dir = dynamic_cast< NWC::Dir * >( new_fse ); in applyOldSettings()
375 const NWC::FSEntry *fse = es.getNWCEntry(); in recalcCommonPrefix()
420 const NWC::FSEntry *fse = es.getNWCEntry(); in changeEntryInStats()
432 const NWC::Dir *d = dynamic_cast< const NWC::Dir * >( fse ); in changeEntryInStats()
606 if ( auto d = dynamic_cast< NWC::Dir *>( es.getNWCEntry() ) ) { in resetDirSizes()
613 const NWC::Dir *DMCacheEntryNWC::getNWCDir() const in getNWCDir()
H A Dcopycore.hh54 const std::vector< NWC::OS::deep_dir_info > &file_base_segments );
138 const std::vector< NWC::OS::deep_dir_info > &file_base_segments );
145 std::vector< NWC::OS::deep_dir_info > &get_file_base_segments() in get_file_base_segments()
154 std::vector< NWC::OS::deep_dir_info > m_file_base_segments;
H A Ddmcacheentrynwc.hh38 DMCacheEntryNWC( std::unique_ptr< NWC::Dir > dir,
46 void setDir( std::unique_ptr< NWC::Dir > dir );
105 const NWC::Dir *getNWCDir() const;
157 RefCount< NWC::Dir > m_dir;
H A Dnwc_path.cc27 namespace NWC { namespace
59 char *tstr = NWC::Path::handlePath( path.c_str() ); in normalize()
160 newpath2=NWC::Path::parentDir(newpath,NULL); in handlePath()
205 std::string cwd = NWC::OS::getCWD(); in handlePathExt()
242 tstr2=NWC::OS::resolveEnv(tstr); in handlePathExt()
259 tstr2=NWC::OS::resolveEnv(tstr); in handlePathExt()
282 tstr=NWC::Path::handlePath(newpath); in handlePathExt()
H A Dview_newest_files_op.cc102 std::unique_ptr< NWC::Dir > use_dir; in run()
108 use_dir = std::make_unique< NWC::Dir >( dirname ); in run()
125 &now ]( NWC::File &file ) in run()
143 &dirname ]( NWC::Dir &dir ) in run()
390 std::string s = NWC::Path::get_extended_basename( m_base_dir, p.first ); in updateResults()
445 std::unique_ptr< NWC::Dir > d( new NWC::VirtualDir( name ) ); in panelizeResults()
464 NWC::FSEntry fse( p.first ); in panelizeResults()
H A Ddirbookmarkaddui.cc99 std::string s1 = NWC::Path::join( dirname, basename ); in DirBookmarkAddUI()
100 NWC::FSEntry e( s1 ); in DirBookmarkAddUI()
175 std::string s1 = NWC::Path::join( m_dirname, m_basename ); in mainLoop()
176 NWC::FSEntry e( s1 ); in mainLoop()
/dports/x11/runner/runner-1.1/src/
H A Drunner.cc178 NWC::FSEntry e( m_config_dir ); in getConfigDir()
566 class MyDirWalk : public NWC::DirWalkCallBack
572 int visit( NWC::File &file, NWC::Dir::WalkControlObj &cobj ) in visit()
581 int visitEnterDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj ) in visitEnterDir()
586 int visitLeaveDir( NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj ) in visitLeaveDir()
591 int prepareDirWalk( const NWC::Dir &dir, NWC::Dir::WalkControlObj &cobj, in prepareDirWalk()
592 std::list< RefCount< NWC::FSEntry > > &return_add_entries, in prepareDirWalk()
593 std::list< RefCount< NWC::FSEntry > > &return_skip_entries ) in prepareDirWalk()
622 NWC::FSEntry p( *it1 ); in getCommands()
625 NWC::Dir d( p ); in getCommands()
/dports/databases/db18/db-18.1.40/examples/c/csv/
H A Dutil.c211 case NWC: in field_cmp_double()
232 case NWC: in field_cmp_re()
236 case NWC: in field_cmp_re()
278 case NWC: in field_cmp_string()
307 case NWC: in field_cmp_ulong()
/dports/databases/db5/db-5.3.28/examples/c/csv/
H A Dutil.c207 case NWC: in field_cmp_double()
228 case NWC: in field_cmp_re()
232 case NWC: in field_cmp_re()
274 case NWC: in field_cmp_string()
303 case NWC: in field_cmp_ulong()
/dports/x11/runner/runner-1.1/src/worker/
H A Dnwc_path.cc27 namespace NWC { namespace
55 char *tstr = NWC::Path::handlePath( path.c_str() ); in normalize()
155 newpath2=NWC::Path::parentDir(newpath,NULL); in handlePath()
200 std::string cwd = NWC::OS::getCWD(); in handlePathExt()
237 tstr2=NWC::OS::resolveEnv(tstr); in handlePathExt()
254 tstr2=NWC::OS::resolveEnv(tstr); in handlePathExt()
277 tstr=NWC::Path::handlePath(newpath); in handlePathExt()

123456