Debian Codegraph @

help/info/char2oct.html

raw symbols SCIP
1 <!--
2 Copyright (c) 2000-2021 Ericsson Telecom AB
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v2.0
5 which accompanies this distribution, and is available at
6 https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7
8 Contributors:
9 Baji, Laszlo
10 Balasko, Jeno
11 Csorba, Mate
12 Forstner, Matyas
13 Szabados, Kristof
14 Szabo, Janos Zoltan – initial implementation
15 -->
16 <html>
17 <head>
18 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
19 <meta http-equiv="Content-Language" content="en-us">
20 <title>char2oct</title>
21 </head>
22 <body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
23 <table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
24 <tr>
25 <td width=105 height=40><a href="https://projects.eclipse.org/projects/tools.titan"><img src="../images/titan_transparent.gif" border=0 width=105 height=40 align="left" alt="Titan"></a></td>
26 </tr>
27 </table>
28 <table border="0" align="right" cellpadding="0" cellspacing="0">
29 <tr>
30 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
31 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
32 <td><a alt="previous" href="char2int.html"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
33 <td><a alt="next" href="charstring.html"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
34 </tr>
35 </table>
36 <p><br clear="all">
37 </p>
38 <hr>
39 <h1>char2oct</h1>
40 <hr align="left" width="75%">
41 <p>This function converts a <b><font face="Courier New">charstring</font></b> value to an <b><font face="Courier New">octetstring</font></b>. The resulting <b><font face="Courier New">octetstring</font></b>
42 will have the same length as the incoming <b><font face="Courier New">charstring</font></b>. The octets of the <b><font face="Courier New">octetstring</font></b> will contain the ASCII codes of the
43 appropriate characters of the <b><font face="Courier New">charstring</font></b>.
44 <p>Note: Some earlier versions of the TTCN-3 Core Language standard contained the description of function <b><font face="Courier New">char2oct</font></b> incorrectly under the name <b><font
45 face="Courier New">str2oct</font></b>.
46 <hr align="left" width="50%">
47 <p>Related keyword:</p>
48 <ul>
49 <li><b><font face="Courier New" size="4" color="#003258"> <a href="charstring.html">charstring</a></font></b></li>
50 <li><b><a href="octetstring.html"><font face="Courier New" size="4" color="#003258"> octetstring</font></a></b></li>
51 <li><b><a href="str2oct.html"><font face="Courier New" size="4" color="#003258">str2oct</font></a></b></li>
52 </ul>
53 <hr align="left" width="50%">
54 <div align="center">
55 <center>
56 <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
57 <tr>
58 <td width="100%">
59 <h3 align="center"><font face="Courier New" color="#003258" size="5"><b>char2oct</b></font><font face="Courier New" color="#003258" size="5"><b>(</b></font><b>charstring</b><i> value</i><font
60 face="Courier New" color="#003258" size="5"><b>) return octetstring</b></font></h3>
61 </td>
62 </tr>
63 </table>
64 </center>
65 </div>
66 <ul>
67 </ul>
68 <hr align="left" width="25%">
69 <p>Example 1:</p>
70 <p><font face="Courier New"> var octetstring v_myo := char2oct("Tinky-Winky"); </font></p>
71 <p>Variable v_myo will contain '54696E6B792D57696E6B79'O.
72 <hr align="left" width="25%">
73 </body>
74 </html>