----------------------------------------------------------------------
($version)
| 662 | |
| 663 | //---------------------------------------------------------------------- |
| 664 | public static function getVersionPattern($version) |
| 665 | { |
| 666 | if($version < 7 || $version > QRSPEC_VERSION_MAX) |
| 667 | return 0; |
| 668 | |
| 669 | return self::$versionPattern[$version -7]; |
| 670 | } |
| 671 | |
| 672 | // Format information -------------------------------------------------- |
| 673 | // See calcFormatInfo in tests/test_qrspec.c (orginal qrencode c lib) |