nextwctype(3)

nextwctype3

Iterate through character classes

Usage

#include <wctype.h>

wint_t

nextwctype(wint_t ch, wctype_t wct);

#include <xlocale.h>

wint_t

nextwctype_l(wint_t ch, wctype_t wct, locale_t loc);

Library

Standard C Library (libc, -lc)

Overview

The nextwctype() function determines the next character after ch that is a member of character class wct. If ch is -1, the search begins at the first member of wct.

While the nextwctype() function uses the current locale, the
.Fn nextwctype_l function may be passed a locale directly. See xlocale(3) for more information.

Return values

The nextwctype() function returns the next character, or -1 if there are no more.

Compatibility

This function is a non-standard FreeBSD extension and should not be used where the standard iswctype() function would suffice.

Releases

135 releases since Mac OS X 10.4; the text changed 2 times.

  1. 10.4–10.4.11
  2. 10.5–10.6.8
  3. 10.7–26.5

History

The nextwctype() function appeared in FreeBSD 5.4.

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.