Test if the string contains a char string (case insensitive)
| Return Type | Function name | Arguments |
|---|---|---|
| bool | hzString::ContainsI | (const char*,) |
Declared in file: hzString.h
Defined in file : hzString.cpp
Function Logic:
Function body:
bool hzString::ContainsI (const char* cpNeedle)
{
// Test if the string contains a char string (case insensitive)
//
// Arguments: 1) cpStr The char sequence to test for
//
// Returns: True If this string is lexically eqivelent to the supplied cstr
// False Otherwise
_hzfunc("hzString::ContainsI(char*)") ;
_strItem* thisCtl ; // This string's control area
if (!cpNeedle || !cpNeedle[0])
return true ;
if (!m_addr)
return false ;
thisCtl = _strXlate(m_addr) ;
return CstrContainsI((char*) thisCtl->_data(), cpNeedle) ? true : false ;
}