Changeset 69
- Timestamp:
- 08/01/06 22:52:42 (2 years ago)
- Files:
-
- trunk/bcd.gen/bcd/gen/bcdgen.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bcd.gen/bcd/gen/bcdgen.d
r67 r69 293 293 bool isNumeric(char[] str) 294 294 { 295 bool hase; 296 bool hasdot; 295 bool hase, hasdot, ishex; 297 296 298 297 for (int i = 0; i < str.length; i++) { 299 298 char c = str[i]; 300 299 if (c >= '0' && c <= '9') continue; 300 if (ishex && 301 ((c >= 'a' && c <= 'f') || 302 (c >= 'A' && c <= 'F'))) continue; 303 301 304 302 305 if (c == 'e' || c == 'E') { … … 304 307 hase = true; 305 308 } else if (c == 'x' || c == 'X') { 309 ishex = true; 306 310 if (i != 1) return false; 307 311 if (str[0] != '0') return false;
