|
|
|
|
|
|
|
|
* along with ucd-tools. If not, see <http://www.gnu.org/licenses/>. |
|
|
* along with ucd-tools. If not, see <http://www.gnu.org/licenses/>. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include "config.h" |
|
|
#include "ucd/ucd.h" |
|
|
#include "ucd/ucd.h" |
|
|
|
|
|
|
|
|
#include <locale.h> |
|
|
#include <locale.h> |
|
|
|
|
|
|
|
|
#include <wchar.h> |
|
|
#include <wchar.h> |
|
|
#include <wctype.h> |
|
|
#include <wctype.h> |
|
|
|
|
|
|
|
|
|
|
|
#ifndef HAVE_ISWBLANK |
|
|
|
|
|
static int iswblank(wint_t c) |
|
|
|
|
|
{ |
|
|
|
|
|
return iswspace(c) && !(c >= 0x0A && c <= 0x0D); |
|
|
|
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
void fput_utf8c(FILE *out, codepoint_t c) |
|
|
void fput_utf8c(FILE *out, codepoint_t c) |
|
|
{ |
|
|
{ |
|
|
if (c < 0x80) |
|
|
if (c < 0x80) |