Branch: Tag:


2002-10-12 03:03:04 by Martin Nilsson <>

Removed the deprecated strmult and String_buffer (compatibility is already in place). Fixed a soundex bug. Made int2roman and int2size throw an error when input is out of range. Fixed an off by one error for the bytes/kb transition in int2size.

Rev: lib/modules/String.pmod/module.pmod:1.9

88:      <dt class='head--doc'>Description</dt>   <dd class='body--doc'><p>Converts the provided integer to a roman integer (i.e. a string).</p> + </dd> + <dt class='head--doc'>Throws</dt> + <dd class='body--doc'><p>Throws an error if <code>m</code> is outside the range 0 to 10000.</p>   </dd></dl>      
105:    but we have chosen to keep the old notation for a while.    The function knows about the quantifiers kilo, mega, giga,    tera, peta, exa, zetta and yotta.</p> + </dd> + <dt class='head--doc'>Throws</dt> + <dd class='body--doc'><p>Throws an error is <code>size</code> is less than zero.</p>   </dd></dl>      
132:   <dd class='body--doc'><p>Returns the soundex value of <code>word</code> according to    the original Soundex algorithm, patented by Margaret O┬┤Dell    and Robert C. Russel in 1918. The method is based on the phonetic -  classification of sounds by how they are made.</p> +  classification of sounds by how they are made. It was only intended +  for hashing of english surnames, and even at that it isn't that +  much of a help.</p>   </dd></dl> -  -  - <hr /> - <dl class='group--doc'> - <dt class='head--type'><span class='homogen--type'>Method</span> - <span class='homogen--name'><b>strmult</b></span> - </dt> - <dd><p><code><code class='datatype'>string</code> <b><span class='method'>strmult</span>(</b><code class='datatype'>string</code> <code class='argument'>str</code>, <code class='datatype'>int</code> <code class='argument'>num</code><b>)</b></code></p></dd> -  - <dt class='head--doc'>Description</dt> - <dd class='body--doc'><p>This function multiplies <code>str</code> by <code>num</code>. The return value is the same -  as appending <code>str</code> to an empty string <code>num</code> times.</p> - </dd> - <dt class='head--doc'>Note</dt> - <dd class='body--doc'><p>This function is obsolete, since this functionality has been incorporated -  into <code>`*()</code>.</p> - </dd> - <dt class='head--doc'>See also</dt> - <dd class='body--doc'><p><code>`*()</code></p> - </dd></dl> +    <dl><dt><h2 class='header'>Class <b class='ms datatype'>String.SplitIterator</b></h2>   </dt><dd>