<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>String Conversion Opcodes</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="StringsTop.html" title="Strings" /> <link rel="prev" href="StringsTop.html" title="Strings" /> <link rel="next" href="vectorial.html" title="Vectorial Opcodes" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">String Conversion Opcodes</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="StringsTop.html">Prev</a> </td> <th width="60%" align="center">Strings</th> <td width="20%" align="right"> <a accesskey="n" href="vectorial.html">Next</a></td> </tr> </table> <hr /> </div> <div class="section" title="String Conversion Opcodes"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="stringconvert"></a>String Conversion Opcodes</h2> </div> </div> </div> <p>These opcodes convert string variables (note: most of the opcodes run at init time only, and have a version with a "k" suffix that runs at both init and performance time; exceptions to this rule include puts and strget):</p> <div class="itemizedlist"> <ul class="itemizedlist" type="disc"> <li class="listitem"> <p> <a class="link" href="strtod.html" title="strtod"><em class="citetitle">strtod</em></a> and <a class="link" href="strtodk.html" title="strtodk"><em class="citetitle">strtodk</em></a> - Converts string value to a floating point value at i-rate.</p> </li> <li class="listitem"> <p> <a class="link" href="strtol.html" title="strtol"><em class="citetitle">strtol</em></a> and <a class="link" href="strtolk.html" title="strtolk"><em class="citetitle">strtolk</em></a> - Converts string value to signed integer at i-rate.</p> </li> <li class="listitem"> <p> <a class="link" href="strchar.html" title="strchar"><em class="citetitle">strchar</em></a> and <a class="link" href="strchark.html" title="strchark"><em class="citetitle">strchark</em></a> - Returns the ASCII code of a character in a string.</p> </li> <li class="listitem"> <p> <a class="link" href="strlower.html" title="strlower"><em class="citetitle">strlower</em></a> and <a class="link" href="strlowerk.html" title="strlowerk"><em class="citetitle">strlowerk</em></a> - Converts a string to lower case.</p> </li> <li class="listitem"> <p> <a class="link" href="strupper.html" title="strupper"><em class="citetitle">strupper</em></a> and <a class="link" href="strupperk.html" title="strupperk"><em class="citetitle">strupperk</em></a> - Converts a string to upper case.</p> </li> </ul> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="StringsTop.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="StringsTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="vectorial.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">Strings </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> Vectorial Opcodes</td> </tr> </table> </div> </body> </html>