CharacterArray.st
changeset 7423 5b25b8e82453
parent 7422 200486204923
child 7482 e73c296fa7dc
--- a/CharacterArray.st	Wed Jun 18 13:39:04 2003 +0200
+++ b/CharacterArray.st	Wed Jun 18 13:44:25 2003 +0200
@@ -3557,8 +3557,8 @@
 
 asFixedPoint
     "read a fixedPoint number from the receiver.
-     Notice, that errors may occur during the read, so you better
-     setup some signal handler when using this method."
+     Notice, that errors may occur during the read, 
+     so you better setup some signal handler when using this method."
 
     ^ FixedPoint readFromString:self
 
@@ -3567,7 +3567,7 @@
      '12345' asFixedPoint    
      '(1/5)' asFixedPoint
      'foo' asFixedPoint
-     Object errorSignal handle:[:ex | ex returnWith:0] do:['foo' asFixedPoint] 
+     Object errorSignal handle:[:ex | ex return:0] do:['foo' asFixedPoint] 
     "
 
     "Modified: / 25.10.1997 / 15:19:00 / cg"
@@ -3577,8 +3577,8 @@
     "read a fixedPoint number with scale number of post-decimal digits
      from the receiver. Scale controls the number of displayed digits,
      not the number of actually valid digits.
-     Notice, that errors may occur during the read, so you better
-     setup some signal handler when using this method."
+     Notice, that errors may occur during the read, 
+     so you better setup some signal handler when using this method."
 
     ^ (FixedPoint readFromString:self) scale:scale
 
@@ -3586,6 +3586,8 @@
      '0.123' asFixedPoint:2     
      '123456' asFixedPoint:2    
      ('3.14157' asFixedPoint:1) asFixedPoint:5    
+     '3.14157' asFixedPoint:2    
+     'foo' asFixedPoint:2    
     "
 
     "Modified: / 25.10.1997 / 15:21:57 / cg"
@@ -3732,7 +3734,8 @@
 !
 
 asSoundexCode
-    "return a soundex string or nil"
+    "return a soundex string or nil 
+     (read Knuth or search the web if you dont know what a soundex code is)"
 
     |s d ch last lch n codes sc|
 
@@ -3799,14 +3802,14 @@
     ^ d contents
 
     "
-     'claus' asSoundexCode   
+     'claus' asSoundexCode    
      'clause' asSoundexCode   
      'close' asSoundexCode   
      'smalltalk' asSoundexCode  
      'smaltalk' asSoundexCode   
      'smaltak' asSoundexCode    
      'smaltok' asSoundexCode    
-     'smoltok' asSoundexCode
+     'smoltok' asSoundexCode   
      'aa' asSoundexCode
      'by' asSoundexCode     
      'bab' asSoundexCode     
@@ -6507,7 +6510,7 @@
 !CharacterArray class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.254 2003-06-18 11:39:04 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.255 2003-06-18 11:44:25 cg Exp $'
 ! !
 
 CharacterArray initialize!