std.windows.charset - D Programming Language - Digital Mars

D Programming Language 1.0

- Comments
- D
- Search
- Home

Last update Wed Sep 2 00:11:33 2009

# std.windows.charset

Support UTF-8 on Windows 95, 98 and ME systems.

char* toMBSz(char[] s, uint codePage = cast(uint)0);
  Converts the UTF-8 string s into a null-terminated string in a Windows 8-bit character set.
  Params:

  char[] s | UTF-8 string to convert.
  uint codePage | is the number of the target codepage, or 0 - ANSI, 1 - OEM, 2 - Mac

  Authors:
  yaneurao, Walter Bright, Stewart Gordon
char[] fromMBSz(char* s, int codePage = 0);
  Converts the null-terminated string s from a Windows 8-bit character set into a UTF-8 char array.
  Params:

  char* s | UTF-8 string to convert.
  int codePage | is the number of the source codepage, or 0 - ANSI, 1 - OEM, 2 - Mac

  Authors:
  Stewart Gordon, Walter Bright

Copyright © 1999-2009 by Digital Mars, All Rights Reserved | Page generated by Ddoc.