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