- Timestamp:
- Nov 14, 2009 11:37:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strtonum.cpp
r24659 r24661 109 109 * @param pu32 Where to store the converted number. 110 110 * 111 * @ remarks The returned value isn't really suitable for comparing two version112 * strings. Try see which result you get when converting "3.0.14" and113 * "3. 1.0" and comparing the values. The way to fix this deficiency114 * would be to convert the individual parts and dividing the return115 * value into sections: bits 31:24 FirstNumber; 23:16 Second; 15:8116 * Third; 7:0 Forth. It would probably be a good idea to use a 64-bit117 * return value instead of a 32-bit one, so there is room for revision118 * number when found.111 * @todo r=bird: The returned value isn't really suitable for comparing two 112 * version strings. Try see which result you get when converting 113 * "3.0.14" and "3.1.0" and comparing the values. The way to fix this 114 * deficiency would be to convert the individual parts and dividing the 115 * return value into sections: bits 31:24 FirstNumber; 23:16 Second; 116 * 15:8 Third; 7:0 Forth. It would probably be a good idea to use a 117 * 64-bit return value instead of a 32-bit one, so there is room for 118 * revision number when found. 119 119 * 120 120 * Actually, because of the above, the kind of API I had in mind was
Note:
See TracChangeset
for help on using the changeset viewer.