Changeset ace588a in mainline


Ignore:
Timestamp:
2011-08-24T20:31:28Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c065743
Parents:
ebddd71
Message:

Remove wstr_is_ascii().

Location:
uspace/lib/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/str.c

    rebddd71 race588a  
    366366       
    367367        return false;
    368 }
    369 
    370 /** Check whether wide string is plain ASCII.
    371  *
    372  * @return True if wide string is plain ASCII.
    373  *
    374  */
    375 bool wstr_is_ascii(const wchar_t *wstr)
    376 {
    377         while (*wstr && ascii_check(*wstr))
    378                 wstr++;
    379         return *wstr == 0;
    380368}
    381369
  • uspace/lib/c/include/str.h

    rebddd71 race588a  
    7272extern bool ascii_check(wchar_t ch);
    7373extern bool chr_check(wchar_t ch);
    74 extern bool wstr_is_ascii(const wchar_t *wstr);
    7574
    7675extern int str_cmp(const char *s1, const char *s2);
Note: See TracChangeset for help on using the changeset viewer.