Browse Subversion Repository
Contents of /trunk/doc/jp/html/macro/command/code2str.html
Parent Directory
| Revision Log
Revision 3227 -
( show annotations)
( download)
( as text)
Tue Mar 24 15:10:33 2009 UTC
(15 years, 1 month ago)
by maya
File MIME type: text/html
File size: 1262 byte(s)
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
3 |
<html> |
4 |
<head> |
5 |
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> |
6 |
<title>code2str</title> |
7 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
8 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
9 |
</head> |
10 |
|
11 |
<body> |
12 |
|
13 |
|
14 |
<h1>code2str</h1> |
15 |
|
16 |
<p> |
17 |
ASCII コード値を文字列に変換する。 |
18 |
</p> |
19 |
|
20 |
<pre class="macro-syntax"> |
21 |
code2str <strvar> <ASCII code> |
22 |
</pre> |
23 |
|
24 |
<h2>解説</h2> |
25 |
|
26 |
<p> |
27 |
整数値 <ASCII code> が 1〜255 の場合、ASCII コード <ASCII code> に対応する文字を文字列変数 <strvar> に格納する。<br> |
28 |
このコマンドは <ASCII code> で表される ASCII コード列を文字列に変換し、それを <strvar> に格納する。<br> |
29 |
<ASCII code> の0でない最上位バイトがASCII コード列の1バイト目とみなされる。<br> |
30 |
<ASCII code> が0の場合、 <strvar> には長さ0の文字列 ("") が格納される。文字列の最大長は 4。 |
31 |
</p> |
32 |
|
33 |
<h2>例</h2> |
34 |
|
35 |
<pre class="macro-example"> |
36 |
; 文字 "A" が変数"str" に格納される。 |
37 |
; "A" の ASCII コードは$41。 |
38 |
code2str str $41 |
39 |
|
40 |
; 文字列 "AB" が変数 "str" に格納される。 |
41 |
; $41 は "A" の、$42は "B" のASCII コード。 |
42 |
code2str str $4142 |
43 |
</pre> |
44 |
|
45 |
</body> |
46 |
</html> |
|