apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

private-search.cc File Reference
#include <config.h>
#include <apt-pkg/aptconfiguration.h>
#include <apt-pkg/cachefile.h>
#include <apt-pkg/cacheset.h>
#include <apt-pkg/cmndline.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/depcache.h>
#include <apt-pkg/macros.h>
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/pkgrecords.h>
#include <apt-pkg/policy.h>
#include <apt-pkg/progress.h>
#include <apt-private/private-cachefile.h>
#include <apt-private/private-cacheset.h>
#include <apt-private/private-json-hooks.h>
#include <apt-private/private-output.h>
#include <apt-private/private-search.h>
#include <apt-private/private-show.h>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <string.h>
#include <apti18n.h>
Include dependency graph for private-search.cc:

Go to the source code of this file.

Classes

struct  ExDescFile
 

Macros

#define APT_FREE_PATTERNS()
 

Functions

static std::vector< pkgCache::DescIterator > const TranslatedDescriptionsList (pkgCache::VerIterator const &V)
 
static bool FullTextSearch (CommandLine &CmdL)
 
static int LocalityCompare (const void *const a, const void *const b)
 
void LocalitySort (pkgCache::VerFile **const begin, unsigned long long const Count, size_t const Size)
 
static void LocalitySort (pkgCache::DescFile **const begin, unsigned long long const Count, size_t const Size)
 
static bool Search (CommandLine &CmdL)
 
bool DoSearch (CommandLine &CmdL)
 

Macro Definition Documentation

◆ APT_FREE_PATTERNS

#define APT_FREE_PATTERNS ( )
Value:
for (std::vector<regex_t>::iterator P = Patterns.begin(); \
P != Patterns.end(); ++P) { regfree(&(*P)); }

Function Documentation

◆ DoSearch()

bool DoSearch ( CommandLine CmdL)

Definition at line 411 of file private-search.cc.

References _config, Configuration::FindI(), FullTextSearch(), and Search().

Referenced by GetCommands().

◆ FullTextSearch()

◆ LocalityCompare()

static int LocalityCompare ( const void *const  a,
const void *const  b 
)
static

◆ LocalitySort() [1/2]

static void LocalitySort ( pkgCache::DescFile **const  begin,
unsigned long long const  Count,
size_t const  Size 
)
static

Definition at line 206 of file private-search.cc.

References LocalityCompare().

◆ LocalitySort() [2/2]

void LocalitySort ( pkgCache::VerFile **const  begin,
unsigned long long const  Count,
size_t const  Size 
)

Definition at line 202 of file private-search.cc.

References LocalityCompare().

Referenced by DumpAvail(), and Search().

◆ Search()

◆ TranslatedDescriptionsList()

static std::vector<pkgCache::DescIterator> const TranslatedDescriptionsList ( pkgCache::VerIterator const &  V)
static