%PDF- %PDF-
Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/String/ |
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/String/sum-i.ri |
U:RDoc::AnyMethod[iI"sum:ETI"String#sum;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"NReturns a basic <em>n</em>-bit checksum of the characters in <i>str</i>, ;TI"Qwhere <em>n</em> is the optional <code>Integer</code> parameter, defaulting ;TI"Mto 16. The result is simply the sum of the binary value of each byte in ;TI"N<i>str</i> modulo <code>2**n - 1</code>. This is not a particularly good ;TI"checksum.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I" str.sum(n=16) -> integer ;T0[ I"(p1 = v1);T@FI"String;TcRDoc::NormalClassI" scanf;T0