home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / searches / ascii.xml < prev    next >
Text File  |  2002-12-14  |  1KB  |  35 lines

  1. <search function="ascii">
  2.   <name>Base Conversion: ASCII Character</name>
  3.   <description>
  4.     Convert ASCII characters to decimal, hex, octal and binary equivalents.<br/>
  5.     <div class="helpboxDescLabels">Example:</div>
  6.     <table class="helpboxDescTable">
  7.           <tr><td>ascii B</td></tr>
  8.       </table>
  9.   </description>
  10.   <category>Functions</category>
  11.   <link>http://www.asciitable.com/</link>
  12.   <contributor>Monty Scroggins</contributor>
  13.   
  14.   <script><![CDATA[
  15.     function ascii(c)
  16.     {
  17.       if( nullArgs("ascii",c) )
  18.         return false;
  19.       var char = c.substring(0,1);
  20.       var dec  = char.charCodeAt(0);
  21.       setSearchWindowText("char: "+char +
  22.         "  dec: "+dec+
  23.         "  oct: "+dec.toString(8)+
  24.         "  hex: "+dec.toString(16)+
  25.         "  bin: "+dec.toString(2));
  26.     }
  27.   ]]></script>
  28.  
  29.   <copyright>
  30.     Copyright (c) 2002 David Bau
  31.     Distributed under the terms of the
  32.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  33.   </copyright>
  34. </search>
  35.