The Trunk: Collections-ar.303.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Collections-ar.303.mcz

commits-2
Andreas Raab uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ar.303.mcz

==================== Summary ====================

Name: Collections-ar.303
Author: ar
Time: 11 February 2010, 11:43:43.61 pm
UUID: 3ad71ebf-93be-2843-a1e0-eb1ca2dcb352
Ancestors: Collections-dtl.302

Change EncodedCharSet>>digitValue: to EncodedCharSet>>digitValueOf:. Part 2/3.

=============== Diff against Collections-dtl.302 ===============

Item was changed:
  ----- Method: Character>>digitValue (in category 'accessing') -----
  digitValue
  "Answer 0-9 if the receiver is $0-$9, 10-35 if it is $A-$Z, and < 0
  otherwise. This is used to parse literal numbers of radix 2-36."
 
  | digitValue |
  (digitValue := ('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' indexOf: self) - 1) >= 0
  ifTrue: [ ^digitValue ].
+ ^ (EncodedCharSet charsetAt: self leadingChar) digitValueOf: self.
- ^ (EncodedCharSet charsetAt: self leadingChar) digitValue: self.
  !