Lines Matching defs:version
13 * Parse the given version string into its parts
15 * @param string $version
19 public static function parseVersionString($version)
25 'version' => '', // sortable, full version string
27 'raw' => $version, // raw version string as given
30 if (preg_match('/^(rc)?(\d{4}-\d{2}-\d{2})([a-z]*)/', $version, $matches)) {
41 throw new \Exception('failed to parse version string');
44 [, $return['codename']] = sexplode(' ', $version, 2);
47 $return['version'] = $return['date'];
48 $return['version'] .= $return['type'] == 'rc' ? 'rc' : $return['hotfix'];