xapian-core  1.4.27
Macros | Functions | Variables
xapian-inspect.cc File Reference

Inspect the contents of a glass table for development or debugging. More...

#include <config.h>
#include <ios>
#include <iostream>
#include <string>
#include "glass_cursor.h"
#include "glass_table.h"
#include "glass_version.h"
#include "filetests.h"
#include "stringutils.h"
#include <xapian.h>
#include "gnu_getopt.h"
+ Include dependency graph for xapian-inspect.cc:

Go to the source code of this file.

Macros

#define PROG_NAME   "xapian-inspect"
 
#define PROG_DESC   "Inspect the contents of a glass table for development or debugging"
 
#define OPT_HELP   1
 
#define OPT_VERSION   2
 

Functions

static void show_usage ()
 
static void display_nicely (const string &data)
 
static string unescape (const string &s)
 
static void show_help ()
 
static void show_entry (GlassCursor &cursor)
 
static void do_until (GlassCursor &cursor, const string &target, bool show)
 
static void goto_last (GlassCursor &cursor)
 
int main (int argc, char **argv)
 

Variables

static bool keys = true
 
static bool tags = true
 

Detailed Description

Inspect the contents of a glass table for development or debugging.

Definition in file xapian-inspect.cc.

Macro Definition Documentation

◆ OPT_HELP

#define OPT_HELP   1

Definition at line 42 of file xapian-inspect.cc.

Referenced by main().

◆ OPT_VERSION

#define OPT_VERSION   2

Definition at line 43 of file xapian-inspect.cc.

Referenced by main().

◆ PROG_DESC

#define PROG_DESC   "Inspect the contents of a glass table for development or debugging"

Definition at line 40 of file xapian-inspect.cc.

Referenced by main().

◆ PROG_NAME

#define PROG_NAME   "xapian-inspect"

Definition at line 39 of file xapian-inspect.cc.

Referenced by main(), and show_usage().

Function Documentation

◆ display_nicely()

static void display_nicely ( const string &  data)
static

Definition at line 57 of file xapian-inspect.cc.

Referenced by show_entry().

◆ do_until()

static void do_until ( GlassCursor cursor,
const string &  target,
bool  show 
)
static

Definition at line 180 of file xapian-inspect.cc.

References GlassCursor::after_end(), GlassCursor::current_key, GlassCursor::next(), and show_entry().

Referenced by main().

◆ goto_last()

static void goto_last ( GlassCursor cursor)
static

Definition at line 222 of file xapian-inspect.cc.

References GlassCursor::find_entry_lt(), and GLASS_BTREE_MAX_KEY_LEN.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ show_entry()

static void show_entry ( GlassCursor cursor)
static

◆ show_help()

static void show_help ( )
static

Definition at line 136 of file xapian-inspect.cc.

Referenced by main().

◆ show_usage()

static void show_usage ( )
static

Definition at line 47 of file xapian-inspect.cc.

References PROG_NAME.

Referenced by main().

◆ unescape()

static string unescape ( const string &  s)
static

Definition at line 81 of file xapian-inspect.cc.

References C_isxdigit(), and hex_decode().

Referenced by main().

Variable Documentation

◆ keys

bool keys = true
static

Definition at line 45 of file xapian-inspect.cc.

Referenced by DEFINE_TESTCASE(), main(), and show_entry().

◆ tags

bool tags = true
static