x00.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. $base = array(
  3. // Note: to save memory plain ASCII mappings have been left out.
  4. 0x80 => '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  5. 0x90 => '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  6. 0xA0 => ' ', '!', 'C/', 'PS', '$?', 'Y=', '|', 'SS', '"', '(c)', 'a', '<<', '!', '', '(r)', '-',
  7. 0xB0 => 'deg', '+-', '2', '3', '\'', 'u', 'P', '*', ',', '1', 'o', '>>', '1/4', '1/2', '3/4', '?',
  8. 0xC0 => 'A', 'A', 'A', 'A', 'A', 'A', 'AE', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I', 'I',
  9. 0xD0 => 'D', 'N', 'O', 'O', 'O', 'O', 'O', 'x', 'O', 'U', 'U', 'U', 'U', 'Y', 'Th', 'ss',
  10. 0xE0 => 'a', 'a', 'a', 'a', 'a', 'a', 'ae', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i',
  11. 0xF0 => 'd', 'n', 'o', 'o', 'o', 'o', 'o', '/', 'o', 'u', 'u', 'u', 'u', 'y', 'th', 'y',
  12. );
  13. // Overrides for Danish input.
  14. $variant['da'] = array(
  15. 0xC5 => 'Aa',
  16. 0xC6 => 'Ae',
  17. 0xD8 => 'Oe',
  18. 0xE5 => 'aa',
  19. 0xE6 => 'ae',
  20. 0xF8 => 'oe',
  21. );
  22. // Overrides for German input.
  23. $variant['de'] = array(
  24. 0xC4 => 'Ae',
  25. 0xD6 => 'Oe',
  26. 0xDC => 'Ue',
  27. 0xE4 => 'ae',
  28. 0xF6 => 'oe',
  29. 0xFC => 'ue',
  30. 0xDF => 'ss',
  31. );
  32. // Overrides for Spanish input.
  33. $variant['es'] = array(
  34. 0xE1 => 'a',
  35. 0xE9 => 'e',
  36. 0xED => 'i',
  37. 0xF3 => 'o',
  38. 0xFA => 'u',
  39. 0xF1 => 'n',
  40. );