Changeset 90
- Timestamp:
- 05/18/08 03:19:04 (8 months ago)
- Files:
-
- trunk/cashew/utils/Sfv.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cashew/utils/Sfv.d
r89 r90 33 33 +/ 34 34 public final class Sfv { 35 36 /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 37 + 38 +/ 39 public static struct Entry { 40 41 /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 42 + 43 +/ 44 FilePath 45 path ; 46 47 /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 48 + 49 +/ 50 uint 51 checksum = 0u ; 52 53 } // struct Entry 35 54 36 55 /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ … … 283 302 + 284 303 +/ 304 public int opApply (int delegate (size_t, Entry) dg) { 305 int 306 result ; 307 308 foreach (index, entry; m_entries) { 309 result = dg(index, entry); 310 311 if (result != 0) { 312 break; 313 } 314 } 315 return result; 316 } 317 318 /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 319 + 320 +/ 285 321 private FilePath 286 322 m_path ; … … 362 398 363 399 } // final class Sfv 364 365 366 /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++367 +368 +/369 private struct Entry {370 371 /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++372 +373 +/374 FilePath375 path ;376 377 /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++378 +379 +/380 uint381 checksum = 0u ;382 383 } // struct Entry384 400 385 401
