Last sync 2016.04.01
[deliverable/titan.core.git] / help / info / str2oct.html
1 <!--
2 Copyright (c) 2000-2016 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 v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/epl-v10.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>str2oct</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="str2int.html"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
33 <td><a alt="next" href="subset.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>str2oct</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 input shall contain even number of characters,
42 where each character represents the value of one hexadecimal digit of the resulting <b><font face="Courier New">octetstring</font></b>. A dynamic test case error occurs if the length of <b><font
43 face="Courier New">charstring</font></b> is odd or one or more of its characters are outside the ranges "0" .. "9", "A" .. "F" or "a" .. "f".
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="octetstring.html">octetstring</a></font></b></li>
50 <li><b><a href="charstring.html"><font face="Courier New" size="4" color="#003258"> charstring</font></a></b></li>
51 <li><b><font face="Courier New" size="4" color="#003258"><a href="char2oct.html">char2oct</a></font></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>str2oct</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"> const octetstring c_duebel := str2oct("00DeadBeef12"); </font></p>
71 <p>The constant called c_duebel will have the value '00DEADBEEF12'O.
72 <hr align="left" width="25%">
73 </body>
74 </html>
This page took 0.038155 seconds and 5 git commands to generate.