Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
646 B

  1. #!/usr/bin/perl
  2. #
  3. # unicodepartition_analyze.pl
  4. #
  5. # [email protected]
  6. # June 16, 1998
  7. #
  8. # Takes the output of unicodepartition_extract.pl and checks whether there
  9. # are redundant or missing entries. In all, there should be 64K entries.
  10. #
  11. $i = 0;
  12. while (<>)
  13. {
  14. ($iT,$name) = /(....) (....)/;
  15. $iT = hex($iT);
  16. if ($iT != $i)
  17. {
  18. if ($iT < $i)
  19. {
  20. printf("redundant entry: %04x\n", $iT);
  21. }
  22. else
  23. {
  24. printf("missing entries: %04x-%04x\n", $i, $iT-1);
  25. $i = $iT + 1;
  26. }
  27. }
  28. else
  29. {
  30. $i += 1;
  31. }
  32. }