Xapian::Internal Namespace Reference


Classes

class  ExpandTerm
 Class combining a term and its expand weight. More...
class  ExpandStats
 Collates statistics while calculating term weight in an ESet. More...
class  ExpandWeight
 Class for calculating probabilistic ESet term weights. More...
class  MSetItem
 An item resulting from a query. More...
struct  PrettyOStream
struct  Literal
class  RefCntBase
class  RefCntPtr

Functions

void closefrom (int fd)
string str (int value)
 Convert int to std::string.
string str (unsigned int value)
 Convert unsigned int to std::string.
string str (long value)
 Convert long to std::string.
string str (unsigned long value)
 Convert unsigned long to std::string.
string str (long long value)
 Convert long long to std::string.
string str (unsigned long long value)
 Convert unsigned long long to std::string.
template<class T >
string format (const char *fmt, T value)
string str (double value)
 Convert double to std::string.
string str (const void *value)
 Convert const void * to std::string.
std::string str (const std::string &value)
 Convert std::string to std::string.
std::string str (const char *value)
 Convert const char * to std::string.
std::string str (bool value)
 Convert bool to std::string.
bool within_DBL_EPSILON (double a, double b)

Variables

const unsigned char is_tab [('\x20'== ' ')?256:-1]
const unsigned char lo_tab [257]
const unsigned char up_tab [257]
const unsigned char IS_DIGIT = 0x01
const unsigned char IS_LOWER = 0x02
const unsigned char IS_UPPER = 0x04
const unsigned char IS_HEX = 0x08
const unsigned char IS_SIGN = 0x10
const unsigned char IS_SPACE = 0x20

Function Documentation

void Xapian::Internal::closefrom ( int  fd  ) 

Definition at line 61 of file closefrom.cc.

References closedir(), dirent::d_name, get_maxfd(), opendir(), readdir(), and str().

Referenced by FlintLock::lock(), and ProgClient::run_program().

template<class T >
string Xapian::Internal::format ( const char *  fmt,
value 
) [inline]

Definition at line 121 of file str.cc.

References AssertRel, and SNPRINTF_ISO.

Referenced by FlintTable_base::read(), ChertTable_base::read(), BrassTable_base::read(), and str().

std::string Xapian::Internal::str ( bool  value  )  [inline]

Convert bool to std::string.

Definition at line 74 of file str.h.

std::string Xapian::Internal::str ( const char *  value  )  [inline]

Convert const char * to std::string.

Definition at line 71 of file str.h.

std::string Xapian::Internal::str ( const std::string &  value  )  [inline]

Convert std::string to std::string.

This is useful as it allows macros and templates to apply str() to a type and have it work if that type is std::string.

Definition at line 68 of file str.h.

std::string Xapian::Internal::str ( const void *  value  ) 

Convert const void * to std::string.

Definition at line 145 of file str.cc.

References format().

std::string Xapian::Internal::str ( double  value  ) 

Convert double to std::string.

Definition at line 139 of file str.cc.

References format().

std::string Xapian::Internal::str ( unsigned long long  value  ) 

Convert unsigned long long to std::string.

Definition at line 114 of file str.cc.

References tostring_unsigned().

std::string Xapian::Internal::str ( long long  value  ) 

Convert long long to std::string.

Definition at line 108 of file str.cc.

References tostring().

std::string Xapian::Internal::str ( unsigned long  value  ) 

Convert unsigned long to std::string.

Definition at line 102 of file str.cc.

References tostring_unsigned().

std::string Xapian::Internal::str ( long  value  ) 

Convert long to std::string.

Definition at line 96 of file str.cc.

References tostring().

std::string Xapian::Internal::str ( unsigned int  value  ) 

Convert unsigned int to std::string.

Definition at line 90 of file str.cc.

References tostring_unsigned().

std::string Xapian::Internal::str ( int  value  ) 

Convert int to std::string.

Definition at line 84 of file str.cc.

References tostring().

Referenced by FlintDatabaseReplicator::apply_changeset_from_conn(), ChertDatabaseReplicator::apply_changeset_from_conn(), BrassDatabaseReplicator::apply_changeset_from_conn(), Xapian::DatabaseReplica::Internal::apply_next_changeset(), Term::as_wildcarded_query(), ChertTable::block_to_cursor(), BrassTable::block_to_cursor(), BrassTermList::BrassTermList(), builddb_queries1(), builddb_valuestest1(), FDTracker::check(), Xapian::DatabaseReplica::Internal::check_message_type(), ChertTermList::ChertTermList(), closefrom(), Xapian::Compactor::Internal::compact(), compact_brass(), compact_chert(), compact_flint(), BackendManagerMulti::createdb_multi(), dbcheck(), dbstats_to_string(), DEFINE_TESTCASE(), InMemoryDatabase::delete_document(), FlintRecordTable::delete_record(), ChertRecordTable::delete_record(), BrassRecordTable::delete_record(), docstats_to_string(), docterms_to_string(), FlintTermList::FlintTermList(), Item_wr_::form_key(), Item_wr::form_key(), Brass::Item_wr::form_key(), format_doc_termlist(), CJK::get_cjk(), Xapian::Weight::Internal::get_description(), TermFreqs::get_description(), Xapian::TermGenerator::get_description(), ValueRangePostList::get_description(), ValueGePostList::get_description(), PhrasePostList::get_description(), NearPostList::get_description(), Xapian::ESet::Internal::get_description(), Xapian::Internal::ExpandTerm::get_description(), SlowValueList::get_description(), InMemoryAllDocsPostList::get_description(), InMemoryPostList::get_description(), FlintPostList::get_description(), FlintAllDocsPostList::get_description(), ContiguousAllDocsPostList::get_description(), ChertValueList::get_description(), ChertPostList::get_description(), ChertAllDocsPostList::get_description(), ChertAllDocsModifiedPostList::get_description(), BrassValueList::get_description(), BrassPostList::get_description(), BrassAllDocsPostList::get_description(), Xapian::FixedWeightPostingSource::get_description(), Xapian::ValueMapPostingSource::get_description(), Xapian::ValueWeightPostingSource::get_description(), Xapian::Query::Internal::get_description(), Xapian::MSetIterator::get_description(), Xapian::ESetIterator::get_description(), Xapian::MSet::Internal::get_description(), Xapian::Internal::MSetItem::get_description(), Xapian::RSet::Internal::get_description(), Xapian::Document::Internal::get_description(), OmDocumentTerm::get_description(), Xapian::ValueCountMatchSpy::get_description(), DocumentValueList::get_description(), get_distro(), Xapian::MSet::Internal::get_doc_by_index(), InMemoryDatabase::get_doclength(), FlintTermListTable::get_doclength(), ChertPostListTable::get_doclength(), ChertWritableDatabase::get_doclength(), BrassPostListTable::get_doclength(), Inverter::get_doclength(), Xapian::Error::get_error_string(), RemoteServer::get_message(), RemoteDatabase::get_message(), get_ncpus(), FlintRecordTable::get_record(), ChertRecordTable::get_record(), BrassRecordTable::get_record(), BackendManagerRemote::get_remote_database_args(), StringAndFrequency::get_string(), RemoteTcpClient::get_tcpcontext(), ChangeMaxweightPostingSource::get_weight(), PerfTestLogger::indexing_begin(), PerfTestLogger::indexing_log(), FlintTable::lazy_alloc_deflate_zstream(), ChertTable::lazy_alloc_deflate_zstream(), BrassTable::lazy_alloc_deflate_zstream(), FlintTable::lazy_alloc_inflate_zstream(), ChertTable::lazy_alloc_inflate_zstream(), BrassTable::lazy_alloc_inflate_zstream(), make_matchspy2_db(), make_ordecay_db(), make_sparse_db(), make_topercent7_db(), make_xordecay1_db(), FlintPostList::next_chunk(), ChertPostList::next_chunk(), BrassPostList::next_chunk(), PerfTestLogger::open(), InMemoryDatabase::open_document(), Xapian::open_stub(), InMemoryDatabase::open_term_list(), operator<<(), positions_to_string(), postlist_to_string(), FlintDatabaseReplicator::process_changeset_chunk_blocks(), ChertDatabaseReplicator::process_changeset_chunk_blocks(), BrassDatabaseReplicator::process_changeset_chunk_blocks(), push_leaf_N(), FlintTable_base::read(), ChertTable_base::read(), BrassTable_base::read(), FlintVersion::read_and_check(), ChertVersion::read_and_check(), BrassVersion::read_and_check(), FlintTable::read_block(), ChertTable::read_block(), BrassTable::read_block(), FlintTable::read_tag(), ChertTable::read_tag(), BrassTable::read_tag(), RemoteDatabase::RemoteDatabase(), OmDocumentTerm::remove_position(), Xapian::Document::Internal::remove_value(), RemoteServer::run(), PerfTestLogger::search_end(), RemoteConnection::send_message(), FlintDatabase::set_revision_number(), ChertDatabase::set_revision_number(), BrassDatabase::set_revision_number(), termstats_to_string(), test_qp_value_range3(), test_strbool1(), test_tostring1(), test_value_range_serialise1(), PerfTestLogger::testcase_begin(), Xapian::Query::Internal::validate_query(), values_to_repr(), FlintDatabase::write_changesets_to_fd(), ChertDatabase::write_changesets_to_fd(), and BrassDatabase::write_changesets_to_fd().

bool Xapian::Internal::within_DBL_EPSILON ( double  a,
double  b 
)

Definition at line 102 of file utils.cc.


Variable Documentation

const unsigned char Xapian::Internal::IS_DIGIT = 0x01

Definition at line 113 of file stringutils.h.

Referenced by C_isalnum(), C_isdigit(), and C_isupdig().

const unsigned char Xapian::Internal::IS_HEX = 0x08

Definition at line 116 of file stringutils.h.

Referenced by C_islcxdigit(), and C_isxdigit().

const unsigned char Xapian::Internal::IS_LOWER = 0x02

Definition at line 114 of file stringutils.h.

Referenced by C_isalnum(), C_isalpha(), and C_islower().

const unsigned char Xapian::Internal::IS_SIGN = 0x10

Definition at line 117 of file stringutils.h.

Referenced by C_issign().

const unsigned char Xapian::Internal::IS_SPACE = 0x20

Definition at line 118 of file stringutils.h.

Referenced by C_isspace().

const unsigned char Xapian::Internal::is_tab

Definition at line 36 of file stringutils.cc.

Referenced by C_tab_().

const unsigned char Xapian::Internal::IS_UPPER = 0x04

Definition at line 115 of file stringutils.h.

Referenced by C_isalnum(), C_isalpha(), C_islcxdigit(), C_isupdig(), and C_isupper().

const unsigned char Xapian::Internal::lo_tab

Initial value:

    "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
    "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
    " !\"#$%&'()*+,-./0123456789:;<=>?"
    "@abcdefghijklmnopqrstuvwxyz[\\]^_"
    "`abcdefghijklmnopqrstuvwxyz{|}~\x7f"
    "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
    "\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
    "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
    "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
    "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
    "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
    "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef"
    "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"

Definition at line 299 of file stringutils.cc.

Referenced by C_tolower().

const unsigned char Xapian::Internal::up_tab

Initial value:

    "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
    "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
    " !\"#$%&'()*+,-./0123456789:;<=>?"
    "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
    "`ABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~\x7f"
    "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
    "\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
    "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
    "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
    "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
    "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
    "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef"
    "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"

Definition at line 314 of file stringutils.cc.

Referenced by C_toupper().


Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.