DigitickSepaUtilStringHelper

The WooCommerce Germanized Digitick Sepa Util StringHelper class.

Defined (1)

The class is defined in the following location(s).

/includes/gateways/direct-debit/libraries/php-sepa-xml/Util/StringHelper.php  
  1. class StringHelper 
  2. /** 
  3. * @param string $inputString 
  4. * @return string 
  5. */ 
  6. public static function sanitizeString($inputString) 
  7. $map = array( 
  8. // German 
  9. '' => 'Ae', '' => 'Oe', '' => 'Ue', '' => 'ae', '' => 'oe', '' => 'ue', '' => 'ss',  
  10. // others 
  11. '' => 'A', '' => 'A', '' => 'A', '' => 'A', '' => 'A', '*' => 'A', '' => 'A',  
  12. '' => 'B', '' => 'C', '' => 'E', '' => 'E', '' => 'E', '' => 'E',  
  13. '' => 'I', '' => 'I', '' => 'I', '' => 'I',  
  14. '' => 'N', '*' => 'N', '' => 'O', '' => 'O', '' => 'O', '' => 'O', '' => 'O',  
  15. '*' => 'S', '*' => 'S', '*' => 'T',  
  16. '' => 'U', '' => 'U', '' => 'U', '' => 'Y',  
  17. '' => 'a', '' => 'a', '' => 'a', '' => 'a', '' => 'a', '*' => 'a', '' => 'a',  
  18. '' => 'b', '' => 'c', '' => 'e', '' => 'e', '' => 'e', '' => 'e', '*' => 'f',  
  19. '' => 'i', '' => 'i', '' => 'i', '' => 'i',  
  20. '' => 'n', '*' => 'n', '' => 'o', '' => 'o', '' => 'o', '' => 'o', '' => 'o', '' => 'o',  
  21. '*' => 's', '*' => 's', '*' => 't',  
  22. '' => 'u', '' => 'u', '' => 'u', '' => 'y', '' => 'y',  
  23. '' => 'Dj', '*' => 'Z', '*' => 'z',  
  24. ); 
  25.  
  26. return strtr($inputString, $map);