|
xapian-core
2.0.0
|
Inspect the contents of a honey table for development or debugging. More...
#include <config.h>#include <ios>#include <iostream>#include <string>#include "honey_cursor.h"#include "honey_defs.h"#include "honey_table.h"#include "honey_version.h"#include "filetests.h"#include "stringutils.h"#include <xapian.h>#include "gnu_getopt.h"
Include dependency graph for xapian-inspect-honey.cc:Go to the source code of this file.
Macros | |
| #define | PROG_NAME "xapian-inspect-honey" |
| #define | PROG_DESC "Inspect a honey 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 (HoneyCursor &cursor) |
| static void | do_until (HoneyCursor &cursor, const string &target, bool show) |
| int | main (int argc, char **argv) |
Variables | |
| static bool | keys = true |
| static bool | tags = true |
Inspect the contents of a honey table for development or debugging.
Definition in file xapian-inspect-honey.cc.
| #define OPT_HELP 1 |
Definition at line 43 of file xapian-inspect-honey.cc.
| #define OPT_VERSION 2 |
Definition at line 44 of file xapian-inspect-honey.cc.
| #define PROG_DESC "Inspect a honey table for development or debugging" |
Definition at line 41 of file xapian-inspect-honey.cc.
| #define PROG_NAME "xapian-inspect-honey" |
Definition at line 40 of file xapian-inspect-honey.cc.
|
static |
Definition at line 58 of file xapian-inspect-honey.cc.
Referenced by show_entry().
|
static |
Definition at line 181 of file xapian-inspect-honey.cc.
References HoneyCursor::after_end(), HoneyCursor::current_key, HoneyCursor::next(), and show_entry().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 223 of file xapian-inspect-honey.cc.
References HoneyCursor::after_end(), CONST_STRLEN, dir_exists(), DIR_SEPS, do_until(), Honey::DOCDATA, endswith(), HoneyCursor::find_entry_ge(), Xapian::Error::get_description(), HoneyTable::get_entry_count(), HoneyVersion::get_offset(), HoneyVersion::get_revision(), HoneyVersion::get_root(), gnu_getopt_long(), HONEY_TABLE_EXTENSION, keys, long_opts, HoneyCursor::next(), no_argument, O_BINARY, HoneyTable::open(), Xapian::Remote::open(), OPT_HELP, OPT_VERSION, optarg, optind, PACKAGE_STRING, Honey::POSITION, Honey::POSTLIST, HoneyCursor::prev(), PROG_DESC, PROG_NAME, HoneyVersion::read(), required_argument, HoneyCursor::rewind(), show_entry(), show_help(), show_usage(), Honey::SPELLING, startswith(), Honey::SYNONYM, tags, Honey::TERMLIST, HoneyCursor::to_end(), and unescape().
|
static |
Definition at line 157 of file xapian-inspect-honey.cc.
References HoneyCursor::after_end(), HoneyCursor::current_key, HoneyCursor::current_tag, display_nicely(), keys, HoneyCursor::read_tag(), and tags.
Referenced by do_until(), and main().
|
static |
Definition at line 137 of file xapian-inspect-honey.cc.
Referenced by main().
|
static |
|
static |
Definition at line 82 of file xapian-inspect-honey.cc.
References C_isxdigit(), and hex_decode().
Referenced by main().
|
static |
Definition at line 46 of file xapian-inspect-honey.cc.
Referenced by DEFINE_TESTCASE(), main(), and show_entry().
|
static |
Definition at line 46 of file xapian-inspect-honey.cc.
Referenced by main(), GlassCompact::merge_postlists(), HoneyCompact::merge_postlists(), Xapian::Compactor::resolve_duplicate_metadata(), MyCompactor::resolve_duplicate_metadata(), and show_entry().