|
xapian-core
1.4.30
|
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 |
Inspect the contents of a glass table for development or debugging.
Definition in file xapian-inspect.cc.
| #define OPT_HELP 1 |
Definition at line 42 of file xapian-inspect.cc.
| #define OPT_VERSION 2 |
Definition at line 43 of file xapian-inspect.cc.
| #define PROG_DESC "Inspect the contents of a glass table for development or debugging" |
Definition at line 40 of file xapian-inspect.cc.
| #define PROG_NAME "xapian-inspect" |
Definition at line 39 of file xapian-inspect.cc.
|
static |
Definition at line 57 of file xapian-inspect.cc.
Referenced by show_entry().
|
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().
|
static |
Definition at line 222 of file xapian-inspect.cc.
References GlassCursor::find_entry_lt(), and GLASS_BTREE_MAX_KEY_LEN.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 231 of file xapian-inspect.cc.
References GlassCursor::after_end(), CONST_STRLEN, GlassCursor::current_key, dir_exists(), DIR_SEPS, do_until(), Glass::DOCDATA, GlassTable::empty(), endswith(), GlassCursor::find_entry_ge(), GlassCursor::find_entry_lt(), Xapian::Error::get_description(), GlassTable::get_entry_count(), GlassVersion::get_offset(), GlassVersion::get_revision(), GlassVersion::get_root(), GLASS_TABLE_EXTENSION, gnu_getopt_long(), goto_last(), keys, long_opts, GlassCursor::next(), no_argument, O_BINARY, Xapian::InMemory::open(), GlassTable::open(), OPT_HELP, OPT_VERSION, optarg, optind, PACKAGE_STRING, Glass::POSITION, Glass::POSTLIST, PROG_DESC, PROG_NAME, GlassVersion::read(), required_argument, show_entry(), show_help(), show_usage(), Glass::SPELLING, startswith(), Glass::SYNONYM, tags, Glass::TERMLIST, and unescape().
|
static |
Definition at line 156 of file xapian-inspect.cc.
References GlassCursor::after_end(), GlassCursor::current_key, GlassCursor::current_tag, display_nicely(), keys, GlassCursor::read_tag(), and tags.
Referenced by do_until(), and main().
|
static |
Definition at line 136 of file xapian-inspect.cc.
Referenced by main().
|
static |
|
static |
Definition at line 81 of file xapian-inspect.cc.
References C_isxdigit(), and hex_decode().
Referenced by main().
|
static |
Definition at line 45 of file xapian-inspect.cc.
Referenced by DEFINE_TESTCASE(), main(), and show_entry().
|
static |
Definition at line 45 of file xapian-inspect.cc.
Referenced by main(), ChertCompact::merge_postlists(), GlassCompact::merge_postlists(), Xapian::Compactor::resolve_duplicate_metadata(), MyCompactor::resolve_duplicate_metadata(), and show_entry().