core.sys.posix.locale - D Programming Language

Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# core.sys.posix.locale

D header file for POSIX's .
See Also:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html
License:
Boost License 1.0
Authors:
Mathias 'Geod24' Lang
Standards:
The Open Group Base Specifications Issue 7, 2018 edition

Source core/sys/posix/locale.d

struct `lconv`;
alias `locale_t` = __locale_struct*;
enum __locale_struct* `LC_GLOBAL_LOCALE`;
nothrow @nogc locale_t `duplocale`(locale_t `locale`);
  Duplicate existing locale
nothrow @nogc void `freelocale`(locale_t `locale`);
  Free an allocated locale
nothrow @nogc lconv* `localeconv`();
  Natural language formatting for C
nothrow @nogc locale_t `newlocale`(int `mask`, const char* `locale`, locale_t `base`);
  Create a new locale
nothrow @nogc char* `setlocale`(int `category`, const char* `locale`);
  Set the C library's notion of natural language formatting style
nothrow @nogc locale_t `uselocale`(locale_t `locale`);
  Set the per-thread locale

Copyright © 1999-2023 by the D Language Foundation | Page generated by Ddoc on Wed Mar 15 21:26:42 2023