diff options
| author | Roland McGrath <roland@gnu.org> | 1995-02-18 01:27:10 +0000 |
|---|---|---|
| committer | Roland McGrath <roland@gnu.org> | 1995-02-18 01:27:10 +0000 |
| commit | 28f540f45bbacd939bfd07f213bcad2bf730b1bf (patch) | |
| tree | 15f07c4c43d635959c6afee96bde71fb1b3614ee /locale | |
| download | glibc-28f540f45bbacd939bfd07f213bcad2bf730b1bf.tar.xz glibc-28f540f45bbacd939bfd07f213bcad2bf730b1bf.zip | |
initial import
Diffstat (limited to 'locale')
| -rw-r--r-- | locale/.cvsignore | 4 | ||||
| -rw-r--r-- | locale/C-collate.c | 7 | ||||
| -rw-r--r-- | locale/C-ctype.c | 14 | ||||
| -rw-r--r-- | locale/C-ctype_ct.c | 793 | ||||
| -rw-r--r-- | locale/C-ctype_mb.c | 9 | ||||
| -rw-r--r-- | locale/C-monetary.c | 22 | ||||
| -rw-r--r-- | locale/C-numeric.c | 12 | ||||
| -rw-r--r-- | locale/C-response.c | 12 | ||||
| -rw-r--r-- | locale/C-time.c | 25 | ||||
| -rw-r--r-- | locale/Makefile | 31 | ||||
| -rw-r--r-- | locale/locale.h | 97 | ||||
| -rw-r--r-- | locale/localeconv.c | 51 | ||||
| -rw-r--r-- | locale/localeinfo.h | 208 | ||||
| -rw-r--r-- | locale/setlocale.c | 45 |
14 files changed, 1330 insertions, 0 deletions
diff --git a/locale/.cvsignore b/locale/.cvsignore new file mode 100644 index 0000000000..1f69fd919a --- /dev/null +++ b/locale/.cvsignore @@ -0,0 +1,4 @@ +*.gz *.Z *.tar *.tgz +=* +TODO COPYING* AUTHORS copyr-* copying.* +glibc-* diff --git a/locale/C-collate.c b/locale/C-collate.c new file mode 100644 index 0000000000..eddcafa297 --- /dev/null +++ b/locale/C-collate.c @@ -0,0 +1,7 @@ +#include <ansidecl.h> +#include <localeinfo.h> +#include <stddef.h> + + +CONST struct collate_info __collate_C = { 0, NULL, NULL, NULL }; +CONST struct collate_info *_collate_info = &__collate_C; diff --git a/locale/C-ctype.c b/locale/C-ctype.c new file mode 100644 index 0000000000..7131a6f78c --- /dev/null +++ b/locale/C-ctype.c @@ -0,0 +1,14 @@ +#include <ansidecl.h> +#include <localeinfo.h> +#include <stddef.h> + + +extern CONST struct ctype_ctype_info __ctype_ctype_C; +extern CONST struct ctype_mbchar_info __ctype_mbchar_C; +CONST struct ctype_info __ctype_C = + { + (struct ctype_ctype_info*)&__ctype_ctype_C, + (struct ctype_mbchar_info*) &__ctype_mbchar_C + }; + +CONST struct ctype_info *_ctype_info = &__ctype_C; diff --git a/locale/C-ctype_ct.c b/locale/C-ctype_ct.c new file mode 100644 index 0000000000..b77e809a52 --- /dev/null +++ b/locale/C-ctype_ct.c @@ -0,0 +1,793 @@ +#include <ansidecl.h> +#include <localeinfo.h> +#include <stddef.h> +#include <ctype.h> + +CONST unsigned short int __ctype_b_C[] = + { + 0, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl|_ISspace|_ISblank, + _IScntrl|_ISspace, + _IScntrl|_ISspace, + _IScntrl|_ISspace, + _IScntrl|_ISspace, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _ISspace|_NOgraph|_ISblank, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISdigit|_IShex, + _ISdigit|_IShex, + _ISdigit|_IShex, + _ISdigit|_IShex, + _ISdigit|_IShex, + _ISdigit|_IShex, + _ISdigit|_IShex, + _ISdigit|_IShex, + _ISdigit|_IShex, + _ISdigit|_IShex, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISalpha|_ISupper|_IShex, + _ISalpha|_ISupper|_IShex, + _ISalpha|_ISupper|_IShex, + _ISalpha|_ISupper|_IShex, + _ISalpha|_ISupper|_IShex, + _ISalpha|_ISupper|_IShex, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISalpha|_ISupper, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _ISalpha|_ISlower|_IShex, + _ISalpha|_ISlower|_IShex, + _ISalpha|_ISlower|_IShex, + _ISalpha|_ISlower|_IShex, + _ISalpha|_ISlower|_IShex, + _ISalpha|_ISlower|_IShex, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISalpha|_ISlower, + _ISpunct, + _ISpunct, + _ISpunct, + _ISpunct, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + _IScntrl, + }; +CONST short int __ctype_tolower_C[] = + { + -1, + 0000, + 0001, + 0002, + 0003, + 0004, + 0005, + 0006, + 0007, + 0010, + 0011, + 0012, + 0013, + 0014, + 0015, + 0016, + 0017, + 0020, + 0021, + 0022, + 0023, + 0024, + 0025, + 0026, + 0027, + 0030, + 0031, + 0032, + 0033, + 0034, + 0035, + 0036, + 0037, + 0040, + '!', + '"', + '#', + '$', + '%', + '&', + '\'', + '(', + ')', + '*', + '+', + ',', + '-', + '.', + '/', + '0', + '1', + '2', + '3', + '4', + '5', + '6', + '7', + '8', + '9', + ':', + ';', + '<', + '=', + '>', + '?', + '@', + 'a', + 'b', + 'c', + 'd', + 'e', + 'f', + 'g', + 'h', + 'i', + 'j', + 'k', + 'l', + 'm', + 'n', + 'o', + 'p', + 'q', + 'r', + 's', + 't', + 'u', + 'v', + 'w', + 'x', + 'y', + 'z', + '[', + '\\', + ']', + '^', + '_', + '`', + 'a', + 'b', + 'c', + 'd', + 'e', + 'f', + 'g', + 'h', + 'i', + 'j', + 'k', + 'l', + 'm', + 'n', + 'o', + 'p', + 'q', + 'r', + 's', + 't', + 'u', + 'v', + 'w', + 'x', + 'y', + 'z', + '{', + '|', + '}', + '~', + 0177, + 0200, + 0201, + 0202, + 0203, + 0204, + 0205, + 0206, + 0207, + 0210, + 0211, + 0212, + 0213, + 0214, + 0215, + 0216, + 0217, + 0220, + 0221, + 0222, + 0223, + 0224, + 0225, + 0226, + 0227, + 0230, + 0231, + 0232, + 0233, + 0234, + 0235, + 0236, + 0237, + 0240, + 0241, + 0242, + 0243, + 0244, + 0245, + 0246, + 0247, + 0250, + 0251, + 0252, + 0253, + 0254, + 0255, + 0256, + 0257, + 0260, + 0261, + 0262, + 0263, + 0264, + 0265, + 0266, + 0267, + 0270, + 0271, + 0272, + 0273, + 0274, + 0275, + 0276, + 0277, + 0300, + 0301, + 0302, + 0303, + 0304, + 0305, + 0306, + 0307, + 0310, + 0311, + 0312, + 0313, + 0314, + 0315, + 0316, + 0317, + 0320, + 0321, + 0322, + 0323, + 0324, + 0325, + 0326, + 0327, + 0330, + 0331, + 0332, + 0333, + 0334, + 0335, + 0336, + 0337, + 0340, + 0341, + 0342, + 0343, + 0344, + 0345, + 0346, + 0347, + 0350, + 0351, + 0352, + 0353, + 0354, + 0355, + 0356, + 0357, + 0360, + 0361, + 0362, + 0363, + 0364, + 0365, + 0366, + 0367, + 0370, + 0371, + 0372, + 0373, + 0374, + 0375, + 0376, + 0377, + }; +CONST short int __ctype_toupper_C[] = + { + -1, + 0000, + 0001, + 0002, + 0003, + 0004, + 0005, + 0006, + 0007, + 0010, + 0011, + 0012, + 0013, + 0014, + 0015, + 0016, + 0017, + 0020, + 0021, + 0022, + 0023, + 0024, + 0025, + 0026, + 0027, + 0030, + 0031, + 0032, + 0033, + 0034, + 0035, + 0036, + 0037, + 0040, + '!', + '"', + '#', + '$', + '%', + '&', + '\'', + '(', + ')', + '*', + '+', + ',', + '-', + '.', + '/', + '0', + '1', + '2', + '3', + '4', + '5', + '6', + '7', + '8', + '9', + ':', + ';', + '<', + '=', + '>', + '?', + '@', + 'A', + 'B', + 'C', + 'D', + 'E', + 'F', + 'G', + 'H', + 'I', + 'J', + 'K', + 'L', + 'M', + 'N', + 'O', + 'P', + 'Q', + 'R', + 'S', + 'T', + 'U', + 'V', + 'W', + 'X', + 'Y', + 'Z', + '[', + '\\', + ']', + '^', + '_', + '`', + 'A', + 'B', + 'C', + 'D', + 'E', + 'F', + 'G', + 'H', + 'I', + 'J', + 'K', + 'L', + 'M', + 'N', + 'O', + 'P', + 'Q', + 'R', + 'S', + 'T', + 'U', + 'V', + 'W', + 'X', + 'Y', + 'Z', + '{', + '|', + '}', + '~', + 0177, + 0200, + 0201, + 0202, + 0203, + 0204, + 0205, + 0206, + 0207, + 0210, + 0211, + 0212, + 0213, + 0214, + 0215, + 0216, + 0217, + 0220, + 0221, + 0222, + 0223, + 0224, + 0225, + 0226, + 0227, + 0230, + 0231, + 0232, + 0233, + 0234, + 0235, + 0236, + 0237, + 0240, + 0241, + 0242, + 0243, + 0244, + 0245, + 0246, + 0247, + 0250, + 0251, + 0252, + 0253, + 0254, + 0255, + 0256, + 0257, + 0260, + 0261, + 0262, + 0263, + 0264, + 0265, + 0266, + 0267, + 0270, + 0271, + 0272, + 0273, + 0274, + 0275, + 0276, + 0277, + 0300, + 0301, + 0302, + 0303, + 0304, + 0305, + 0306, + 0307, + 0310, + 0311, + 0312, + 0313, + 0314, + 0315, + 0316, + 0317, + 0320, + 0321, + 0322, + 0323, + 0324, + 0325, + 0326, + 0327, + 0330, + 0331, + 0332, + 0333, + 0334, + 0335, + 0336, + 0337, + 0340, + 0341, + 0342, + 0343, + 0344, + 0345, + 0346, + 0347, + 0350, + 0351, + 0352, + 0353, + 0354, + 0355, + 0356, + 0357, + 0360, + 0361, + 0362, + 0363, + 0364, + 0365, + 0366, + 0367, + 0370, + 0371, + 0372, + 0373, + 0374, + 0375, + 0376, + 0377, + }; + + +CONST struct ctype_ctype_info __ctype_ctype_C = + { + (unsigned short int *) __ctype_b_C, + (short int *) __ctype_tolower_C, + (short int *) __ctype_toupper_C + }; diff --git a/locale/C-ctype_mb.c b/locale/C-ctype_mb.c new file mode 100644 index 0000000000..fb2309a88d --- /dev/null +++ b/locale/C-ctype_mb.c @@ -0,0 +1,9 @@ +#include <ansidecl.h> +#include <localeinfo.h> +#include <stddef.h> + + +CONST struct ctype_mbchar_info __ctype_mbchar_C = + { + 0, NULL + }; diff --git a/locale/C-monetary.c b/locale/C-monetary.c new file mode 100644 index 0000000000..1e5990f317 --- /dev/null +++ b/locale/C-monetary.c @@ -0,0 +1,22 @@ +#include <ansidecl.h> +#include <localeinfo.h> +#include <stddef.h> + + +CONST struct monetary_info __monetary_C = + { + (char *) "", (char *) "", + (char *) "", (char *) "", + (char *) "", + (char *) "", (char *) "", + CHAR_MAX, + CHAR_MAX, + CHAR_MAX, + CHAR_MAX, + CHAR_MAX, + CHAR_MAX, + CHAR_MAX, + CHAR_MAX + }; + +CONST struct monetary_info *_monetary_info = &__monetary_C; diff --git a/locale/C-numeric.c b/locale/C-numeric.c new file mode 100644 index 0000000000..890ab37d16 --- /dev/null +++ b/locale/C-numeric.c @@ -0,0 +1,12 @@ +#include <ansidecl.h> +#include <localeinfo.h> +#include <stddef.h> + + +CONST struct numeric_info __numeric_C = + { + (char *) ".", (char *) "", + (char *) "" + }; + +CONST struct numeric_info *_numeric_info = &__numeric_C; diff --git a/locale/C-response.c b/locale/C-response.c new file mode 100644 index 0000000000..d823886b34 --- /dev/null +++ b/locale/C-response.c @@ -0,0 +1,12 @@ +#include <ansidecl.h> +#include <localeinfo.h> +#include <stddef.h> + + +CONST struct response_info __response_C = + { + (char *) "[yY][[:alpha:]]", + (char *) "[nN][[:alpha:]]" + }; + +CONST struct response_info *_response_info = &__response_C; diff --git a/locale/C-time.c b/locale/C-time.c new file mode 100644 index 0000000000..43930612ef --- /dev/null +++ b/locale/C-time.c @@ -0,0 +1,25 @@ +/* Built-in time information for ` |
