core.sys.posix.iconv - 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.iconv

D binding for the POSIX iconv library.
Defines external functions required to use iconv codeset conversion function.
iconv_open(3) Allocates the descriptor for code conversion iconv(3) Performs the conversion iconvctl(3) Control iconv behavior iconv_close(3) Deallocates allocated resources
License:
Boost License 1.0.
Authors:
Nemanja Boric
Standards:
POSIX.1-2001, POSIX.1-2008
See Also:
http://pubs.opengroup.org/onlinepubs/009695399/functions/iconv_open.html

nothrow @nogc iconv_t `iconv_open`(scope const char* `tocode`, scope const char* `fromcode`);
  Allocate descriptor for code conversion from codeset FROMCODE to codeset TOCODE.
nothrow @nogc size_t `iconv`(iconv_t `cd`, scope const char** `inbuf`, size_t* `inbytesleft`, char** `outbuf`, size_t* `outbytesleft`);
  Convert at most *INBYTESLEFT bytes from *INBUF according to the code conversion algorithm specified by CD and place up to *OUTBYTESLEFT bytes in buffer at *OUTBUF.
nothrow @nogc int `iconvctl`(iconv_t `cd`, int `request`, void* `argument`);
  iconvctl queries or adjusts the behavior of the iconv function, when invoked with the specified conversion descriptor, depending on the request value.
nothrow @nogc int `iconv_close`(iconv_t `cd`);
  Free resources allocated for descriptor CD for code conversion.

Copyright © 1999-2023 by the D Language Foundation | Page generated by Ddoc on Sat Jul 15 12:03:28 2023