From d85536af73dc5d327075d983abfa69d70e129d20 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sat, 2 Jun 2001 21:46:42 +0000 Subject: Add locale-enabled strcoll function from vodz, plus supporting tool. --- libc/misc/locale/_locale.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libc/misc/locale/_locale.h (limited to 'libc/misc/locale/_locale.h') diff --git a/libc/misc/locale/_locale.h b/libc/misc/locale/_locale.h new file mode 100644 index 000000000..139a862f9 --- /dev/null +++ b/libc/misc/locale/_locale.h @@ -0,0 +1,22 @@ +extern const unsigned char *_uc_ctype_b; +extern const unsigned char *_uc_ctype_trans; + +extern const unsigned char _uc_ctype_b_C[256+256]; + +#define LOCALE_BUF_SIZE (sizeof(_uc_ctype_b_C)) + +#define ISbit(bit) (1 << bit) + +enum +{ + ISprint = ISbit (0), /* 1 Printable. */ + ISupper = ISbit (1), /* 2 UPPERCASE. */ + ISlower = ISbit (2), /* 4 lowercase. */ + IScntrl = ISbit (3), /* 8 Control character. */ + ISspace = ISbit (4), /* 16 Whitespace. */ + ISpunct = ISbit (5), /* 32 Punctuation. */ + ISalpha = ISbit (6), /* 64 Alphabetic. */ + ISxdigit = ISbit (7), /* 128 Hexnumeric. */ +}; + +extern const unsigned char *_uc_collate_b; -- cgit v1.2.3