Return TypeFunction nameArguments
boolCstrContainsI(const char*,const char*,)

Declared in file: hzTextproc.h
Defined in file : hzTextproc.cpp

Function Logic:

0:START 1:!cpHaystack||!cpHaystack[0]||!cpNeedle||!cpNeedle[0] 2:Return false 3:tolower lower toupper upper strlen len 4:*i; 5:*i!=lower&&*i!=upper 6:!CstrCompareI(i,cpNeedle,len) 7:Return true 8:Return false

Function body:

bool CstrContainsI (const char* cpHaystack, const char* cpNeedle)
{
   const char* i ;
   uint32_t    len ;
   char        lower ;
   char        upper ;
   if (!cpHaystack || !cpHaystack[0]|| !cpNeedle || !cpNeedle[0])
       return false ;
   lower = tolower(cpNeedle[0]);
   upper = toupper(cpNeedle[0]);
   len = strlen(cpNeedle) ;
   for (i = cpHaystack ; *i ; i++)
   {
       if (*i != lower && *i != upper)
           continue ;
       if (!CstrCompareI(i, cpNeedle, len))
           return true ;
   }
   return false ;
}