]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/sys/localedef.h
Standard Libraries for EDK II.
[mirror_edk2.git] / StdLib / Include / sys / localedef.h
diff --git a/StdLib/Include/sys/localedef.h b/StdLib/Include/sys/localedef.h
new file mode 100644 (file)
index 0000000..63ea8a2
--- /dev/null
@@ -0,0 +1,100 @@
+/*     $NetBSD: localedef.h,v 1.7 2005/11/29 03:12:16 christos Exp $   */\r
+\r
+/*\r
+ * Copyright (c) 1994 Winning Strategies, Inc.\r
+ * All rights reserved.\r
+ *\r
+ * Redistribution and use in source and binary forms, with or without\r
+ * modification, are permitted provided that the following conditions\r
+ * are met:\r
+ * 1. Redistributions of source code must retain the above copyright\r
+ *    notice, this list of conditions and the following disclaimer.\r
+ * 2. Redistributions in binary form must reproduce the above copyright\r
+ *    notice, this list of conditions and the following disclaimer in the\r
+ *    documentation and/or other materials provided with the distribution.\r
+ * 3. All advertising materials mentioning features or use of this software\r
+ *    must display the following acknowledgement:\r
+ *      This product includes software developed by Winning Strategies, Inc.\r
+ * 4. The name of the author may not be used to endorse or promote products\r
+ *    derived from this software without specific prior written permission.\r
+ *\r
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ */\r
+\r
+#ifndef _SYS_LOCALEDEF_H_\r
+#define _SYS_LOCALEDEF_H_\r
+\r
+typedef struct {\r
+       const char *yesexpr;\r
+       const char *noexpr;\r
+       const char *yesstr;\r
+       const char *nostr;\r
+} _MessagesLocale;\r
+\r
+extern const _MessagesLocale *_CurrentMessagesLocale;\r
+extern const _MessagesLocale  _DefaultMessagesLocale;\r
+\r
+\r
+typedef struct {\r
+       const char *int_curr_symbol;\r
+       const char *currency_symbol;\r
+       const char *mon_decimal_point;\r
+       const char *mon_thousands_sep;\r
+       const char *mon_grouping;\r
+       const char *positive_sign;\r
+       const char *negative_sign;\r
+       char int_frac_digits;\r
+       char frac_digits;\r
+       char p_cs_precedes;\r
+       char p_sep_by_space;\r
+       char n_cs_precedes;\r
+       char n_sep_by_space;\r
+       char p_sign_posn;\r
+       char n_sign_posn;\r
+       char int_p_cs_precedes;\r
+       char int_n_cs_precedes;\r
+       char int_p_sep_by_space;\r
+       char int_n_sep_by_space;\r
+       char int_p_sign_posn;\r
+       char int_n_sign_posn;\r
+} _MonetaryLocale;\r
+\r
+extern const _MonetaryLocale *_CurrentMonetaryLocale;\r
+extern const _MonetaryLocale  _DefaultMonetaryLocale;\r
+\r
+\r
+typedef struct {\r
+       const char *decimal_point;\r
+       const char *thousands_sep;\r
+       const char *grouping;\r
+} _NumericLocale;\r
+\r
+extern const _NumericLocale *_CurrentNumericLocale;\r
+extern const _NumericLocale  _DefaultNumericLocale;\r
+\r
+\r
+typedef struct {\r
+       const char *abday[7];\r
+       const char *day[7];\r
+       const char *abmon[12];\r
+       const char *mon[12];\r
+       const char *am_pm[2];\r
+       const char *d_t_fmt;\r
+       const char *d_fmt;\r
+       const char *t_fmt;\r
+       const char *t_fmt_ampm;\r
+} _TimeLocale;\r
+\r
+extern const _TimeLocale *_CurrentTimeLocale;\r
+extern const _TimeLocale  _DefaultTimeLocale;\r
+\r
+#endif /* !_SYS_LOCALEDEF_H_ */\r