Determines if the supplied uchar (arg 1) is the same as the current uchar in the chain iterator. - The comparison is case-sensitive. - Returns true/false
| Return Type | Function name | Arguments |
|---|---|---|
| bool | hzXbuf::Iter::Equal | (unsigned char,) |
Declared in file: hzXbuf.h
Defined in file : hzXbuf.cpp
Function Logic:
Function body:
bool hzXbuf::Iter::Equal (unsigned char c)
{
// Determines if the supplied uchar (arg 1) is the same as the current uchar in the chain iterator.
//
// - The comparison is case-sensitive.
// - Returns true/false
//
// Arguments: 1) c The test character
//
// Returns: True If the supplied uchar is equal to that of the current iterator uchar
// False Otherwise
_hzfunc("hzXbuf::Iter::Equal(uchar)") ;
_xblk* zp ; // Block pointer
if (!m_block)
return false ;
zp = (_xblk*) m_block ;
if (!zp)
Fatal("Cannot access block %d\n", m_block) ;
return zp->m_Data[m_nOset] == c ? true : false ;
}