#endif
#endif
-/* Return TRUE if the value of c is in byte range, and FALSE
- * otherwise. */
-bool is_byte(int c)
-{
- return ((unsigned int)c == (unsigned char)c);
-}
-
#ifndef HAVE_ISBLANK
/* This function is equivalent to isblank(). */
-bool nisblank(int c)
+int nisblank(int c)
{
return isspace(c) && (c == '\t' || !is_cntrl_char(c));
}
#if defined(NANO_WIDE) && !defined(HAVE_ISWBLANK)
/* This function is equivalent to iswblank(). */
-bool niswblank(wint_t wc)
+int niswblank(wint_t wc)
{
return iswspace(wc) && (wc == '\t' || !is_cntrl_wchar(wc));
}
#endif
+/* Return TRUE if the value of c is in byte range, and FALSE
+ * otherwise. */
+bool is_byte(int c)
+{
+ return ((unsigned int)c == (unsigned char)c);
+}
+
/* This function is equivalent to isblank() for multibyte characters. */
bool is_blank_mbchar(const char *c)
{
/* Functions we want available. */
/* Public functions in chars.c. */
-bool is_byte(int c);
#ifndef HAVE_ISBLANK
-bool nisblank(int c);
+int nisblank(int c);
#endif
#if defined(NANO_WIDE) && !defined(HAVE_ISWBLANK)
-bool niswblank(wint_t wc);
+int niswblank(wint_t wc);
#endif
+bool is_byte(int c);
bool is_blank_mbchar(const char *c);
bool is_cntrl_char(int c);
#ifdef NANO_WIDE