xapian-core  1.4.21
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 <cstdio>
#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)
 
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 43 of file xapian-inspect.cc.

Referenced by main().

◆ OPT_VERSION

#define OPT_VERSION   2

Definition at line 44 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 41 of file xapian-inspect.cc.

Referenced by main().

◆ PROG_NAME

#define PROG_NAME   "xapian-inspect"

Definition at line 40 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 58 of file xapian-inspect.cc.

Referenced by show_entry().

◆ do_until()

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

◆ 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 138 of file xapian-inspect.cc.

Referenced by main().

◆ show_usage()

static void show_usage ( )
static

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

References PROG_NAME.

Referenced by main().

◆ unescape()

static string unescape ( const string &  s)
static

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

References C_isxdigit(), and hex_decode().

Referenced by main().

Variable Documentation

◆ keys

bool keys = true
static

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

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

◆ tags

bool tags = true
static