Quote:
|
Originally Posted by ArteGordon
ah, I just checked and you are correct. The code I posted also reflects an earlier mod to deal with the problem with 2 digit revisions that came up a while back in 4.0.10a
I will modify the posted core mod to reflect that. Sorry.
|
Yes. Problem with numbers (not only for revision) exist.
Version string must be parsed dynamically.
Please see my
solution for this problem.
Can be parsed below types of versions:
5 (Major=5; Minor=0; Revision=0; Patch = 0)
5a (Major=5; Minor=0; Revision=0; Patch = 1)
5.2a (Major=5; Minor=2; Revision=0; Patch = 1)
5.0.1j (Major=5; Minor=0; Revision=1; Patch = 10)
5.0.2 (Major=5; Minor=0; Revision=2; Patch = 0)
10.1.2 (Major=10; Minor=1; Revision=2; Patch = 0)
1234567.1234567.1234567z (Major=1234567; Minor=1234567; Revision=1234567; Patch = 26)
I used Finite State Machine methodology. Usually this technique used in systems programming (compilers, interpreters, regular expressions and others).