CLucene - a full-featured, c++ search engine
API Documentation


lucene::util::Misc Class Reference

A class containing various functions. More...

#include <Misc.h>


Static Public Member Functions

static uint64_t currentTimeMillis ()
static const TCHAR * replace_all (const TCHAR *val, const TCHAR *srch, const TCHAR *repl)
static bool dir_Exists (const char *path)
static int64_t file_Size (const char *path)
static size_t ahashCode (const char *str)
static size_t ahashCode (const char *str, size_t len)
static TCHAR * join (const TCHAR *a, const TCHAR *b, const TCHAR *c=NULL, const TCHAR *d=NULL, const TCHAR *e=NULL, const TCHAR *f=NULL)
static char * ajoin (const char *a, const char *b, const char *c=NULL, const char *d=NULL, const char *e=NULL, const char *f=NULL)
static bool priv_isDotDir (const TCHAR *name)
static char * segmentname (const char *segment, const char *ext, const int32_t x=-1)
static void segmentname (char *buffer, int32_t bufferLen, const char *Segment, const char *ext, const int32_t x=-1)
static int32_t stringDifference (const TCHAR *s1, const int32_t s1Len, const TCHAR *s2, const int32_t s2Len)
 Compares two strings, character by character, and returns the first position where the two strings differ from one another.
static TCHAR * stringTrim (TCHAR *s)
static TCHAR * wordTrim (TCHAR *s)
static char * longToBase (int64_t value, int32_t base)
static int64_t base36ToLong (const char *value)


Detailed Description

A class containing various functions.

Member Function Documentation

static uint64_t lucene::util::Misc::currentTimeMillis (  )  [static]

static const TCHAR* lucene::util::Misc::replace_all ( const TCHAR *  val,
const TCHAR *  srch,
const TCHAR *  repl 
) [static]

static bool lucene::util::Misc::dir_Exists ( const char *  path  )  [static]

static int64_t lucene::util::Misc::file_Size ( const char *  path  )  [static]

static size_t lucene::util::Misc::ahashCode ( const char *  str  )  [static]

static size_t lucene::util::Misc::ahashCode ( const char *  str,
size_t  len 
) [static]

static TCHAR* lucene::util::Misc::join ( const TCHAR *  a,
const TCHAR *  b,
const TCHAR *  c = NULL,
const TCHAR *  d = NULL,
const TCHAR *  e = NULL,
const TCHAR *  f = NULL 
) [static]

static char* lucene::util::Misc::ajoin ( const char *  a,
const char *  b,
const char *  c = NULL,
const char *  d = NULL,
const char *  e = NULL,
const char *  f = NULL 
) [static]

static bool lucene::util::Misc::priv_isDotDir ( const TCHAR *  name  )  [static]

static char* lucene::util::Misc::segmentname ( const char *  segment,
const char *  ext,
const int32_t  x = -1 
) [static]

static void lucene::util::Misc::segmentname ( char *  buffer,
int32_t  bufferLen,
const char *  Segment,
const char *  ext,
const int32_t  x = -1 
) [static]

static int32_t lucene::util::Misc::stringDifference ( const TCHAR *  s1,
const int32_t  s1Len,
const TCHAR *  s2,
const int32_t  s2Len 
) [static]

Compares two strings, character by character, and returns the first position where the two strings differ from one another.

Parameters:
s1 The first string to compare
s1Len The length of the first string to compare
s2 The second string to compare
s2Len The length of the second string to compare
Returns:
The first position where the two strings differ.

static TCHAR* lucene::util::Misc::stringTrim ( TCHAR *  s  )  [static]

static TCHAR* lucene::util::Misc::wordTrim ( TCHAR *  s  )  [static]

static char* lucene::util::Misc::longToBase ( int64_t  value,
int32_t  base 
) [static]

static int64_t lucene::util::Misc::base36ToLong ( const char *  value  )  [static]


The documentation for this class was generated from the following file:

clucene.sourceforge.net