Logo Search packages:      
Sourcecode: likewise-open version File versions

bool strhaslower ( const char *  s  ) 

Does a string have any lowercase chars in it?

Definition at line 633 of file util_str.c.

References push_ucs2_allocate().

Referenced by strisnormal().

{
      smb_ucs2_t *tmp, *p;
      bool ret;

      if (push_ucs2_allocate(&tmp, s) == -1) {
            return false;
      }

      for(p = tmp; *p != 0; p++) {
            if(islower_w(*p)) {
                  break;
            }
      }

      ret = (*p != 0);
      SAFE_FREE(tmp);
      return ret;
}


Generated by  Doxygen 1.6.0   Back to index