You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
252 B

  1. #include "misc.h"
  2. #include <wctype.h>
  3. bool
  4. isword(wchar_t wc, bool spaces_only, const wchar_t *delimiters)
  5. {
  6. if (spaces_only)
  7. return iswgraph(wc);
  8. if (wcschr(delimiters, wc) != NULL)
  9. return false;
  10. return iswgraph(wc);
  11. }