[go: up one dir, main page]

File: misc.c

package info (click to toggle)
foot 1.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,492 kB
  • sloc: ansic: 21,242; python: 170; sh: 26; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 252 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "misc.h"

#include <wctype.h>

bool
isword(wchar_t wc, bool spaces_only, const wchar_t *delimiters)
{
    if (spaces_only)
        return iswgraph(wc);

    if (wcschr(delimiters, wc) != NULL)
        return false;

    return iswgraph(wc);
}