nis-util  1.0.D108
Defines | Functions
lib/rcstring.cc File Reference
#include <lib/ac/assert.h>
#include <lib/ac/ctype.h>
#include <lib/ac/stdlib.h>
#include <lib/ac/string.h>
#include <libexplain/malloc.h>
#include <libexplain/output.h>
#include <libexplain/realloc.h>
#include <lib/rcstring.h>
#include <lib/mprintf.h>

Go to the source code of this file.

Defines

#define MAX_WIDTH   509
#define MAX_HASH_LEN   20

Functions

static rcstring::hash_ty hash_generate (const char *s, size_t n)
bool operator< (const rcstring &lhs, const rcstring &rhs)
bool operator<= (const rcstring &lhs, const rcstring &rhs)
bool operator> (const rcstring &lhs, const rcstring &rhs)
bool operator>= (const rcstring &lhs, const rcstring &rhs)

Define Documentation

#define MAX_HASH_LEN   20

Definition at line 40 of file rcstring.cc.

#define MAX_WIDTH   509

Definition at line 38 of file rcstring.cc.


Function Documentation

static rcstring::hash_ty hash_generate ( const char *  s,
size_t  n 
) [static]

The hash_generate function is used to make a number from a string.

Note:
Only the last MAX_HASH_LEN characters are used. It is important that rcstring::hash_ty be unsigned (int or long).

Definition at line 52 of file rcstring.cc.

bool operator< ( const rcstring lhs,
const rcstring rhs 
)

Definition at line 264 of file rcstring.cc.

bool operator<= ( const rcstring lhs,
const rcstring rhs 
)

Definition at line 270 of file rcstring.cc.

bool operator> ( const rcstring lhs,
const rcstring rhs 
)

Definition at line 276 of file rcstring.cc.

bool operator>= ( const rcstring lhs,
const rcstring rhs 
)

Definition at line 282 of file rcstring.cc.