1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.2.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>STD_ConvertCharSjisToUnicode</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">STD_ConvertCharSjisToUnicode <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16<dl> 17 <dd><PRE><CODE>#include <nitro/std.h> 18 19SDK_INLINE int STD_ConvertCharSjisToUnicode(u16 *dst, const char *src);</CODE></PRE></dd> 20</dl> 21 22<h2>Arguments</h2> 23<table border="1" width="100%"> 24 <tbody> 25 <TR> 26 <TD width="20%"><EM><STRONG>dst</STRONG></EM></TD> 27 <TD width="80%">Destination Unicode string buffer</TD> 28 </TR> 29 <TR> 30 <TD width="20%"><EM><STRONG>src</STRONG></EM></TD> 31 <TD width="80%">Source <CODE>ShiftJIS</CODE> string buffer.</TD> 32 </TR> 33 <TR> 34 </tbody> 35</table> 36 37<h2>Return Values</h2> 38<p> 39If the conversion is successful, the converted number of characters (=1) will return. If the conversion fails, a -1 will return. 40</p> 41 42<H2>Description</H2> 43<P> 44This function converts a ShiftJIS-format character to a Unicode-format character.<BR><CODE><A href="STD_ConvertStringSjisToUnicode.html">STD_ConvertStringSjisToUnicode</A></CODE> is called internally, and only one character is converted.<BR> 45 46</P> 47 48<h2>See Also</h2> 49<p><CODE><A href="STD_ConvertStringSjisToUnicode.html">STD_ConvertStringSjisToUnicode</A></CODE></p> 50 51<H2>Revision History</H2> 52<P> 532006/07/24 Changed the interface.<br>2006/07/05 Initial version. 54</P> 55<hr><p>CONFIDENTIAL</p></body> 56</html> 57