#DOCUMENTATION by stefan
authorStefan Vogel <sv@exept.de>
Fri, 19 Jan 2018 11:04:33 +0100
changeset 22460 f8b145aaccda
parent 22459 9dbb05104f4e
child 22461 0d61027663a5
#DOCUMENTATION by stefan class: Integer class comment/format in: #readFrom:
Integer.st
--- a/Integer.st	Fri Jan 19 10:40:39 2018 +0100
+++ b/Integer.st	Fri Jan 19 11:04:33 2018 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1988 by Claus Gittinger
               All Rights Reserved
@@ -244,8 +246,11 @@
 
     "
      Integer readFrom:(ReadStream on:'foobar')
+     Integer readFrom:(ReadStream on:'123foobar')
      Integer readFrom:(ReadStream on:'foobar') onError:nil
     "
+
+    "Modified (comment): / 17-01-2018 / 18:27:26 / stefan"
 !
 
 readFrom:aStringOrStream allowRadix:allowRadix onError:exceptionBlock
@@ -794,6 +799,8 @@
     "Modified: / 15.11.1999 / 20:35:20 / cg"
 ! !
 
+
+
 !Integer class methodsFor:'class initialization'!
 
 initialize
@@ -850,6 +857,7 @@
     "Modified: 18.7.1996 / 12:26:38 / cg"
 ! !
 
+
 !Integer class methodsFor:'prime numbers'!
 
 flushPrimeCache
@@ -1227,6 +1235,7 @@
     ^ self == Integer
 ! !
 
+
 !Integer methodsFor:'Compatibility-Dolphin'!
 
 highWord
@@ -1478,6 +1487,7 @@
     "Modified: / 25-08-2017 / 12:32:47 / cg"
 ! !
 
+
 !Integer methodsFor:'bcd conversion'!
 
 decodeFromBCD
@@ -3711,7 +3721,7 @@
     ^ fibUsingDict value:self
 
     "the running time is mostly dictated by the LargeInteger multiplication performance...
-     (therefore, we get O(n²) execution times, even for a linear number of multiplications)
+     (therefore, we get O(n²) execution times, even for a linear number of multiplications)
 
      Time millisecondsToRun:[50000 fib_iterative]  312    (DUO 1.7Ghz CPU)
      Time millisecondsToRun:[50000 fib_helper]     109
@@ -5137,6 +5147,7 @@
     "Created: / 09-01-2012 / 17:18:06 / cg"
 ! !
 
+
 !Integer methodsFor:'special modulo arithmetic'!
 
 add_32:anInteger