CoreFiles by mySites.guru
sv.php58 lines, 1,075 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
bcc1ad4a7cbc6f6b6e1096c0185e16cf
sha1
1f94f4a03b8c04649f7e0ae22db2ebf4bb4b45dc
sha256
f39211cd3605ebf1df74be51646e7dc0c5854b2fd27c61de088c54b749563089
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_finder
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Swedish language support class for the Finder indexer package.
 *
 * @since  4.0.0
 */
class FinderIndexerLanguagesv extends FinderIndexerLanguage
{
	/**
	 * Language locale of the class
	 *
	 * @var    string
	 * @since  4.0.0
	 */
	public $language = 'sv';

	/**
	 * The swedish stemmer object.
	 *
	 * @var    \Wamania\Snowball\Swedish
	 * @since  4.0.0
	 */
	protected $stemmer = null;

	/**
	 * Method to construct the language object.
	 *
	 * @since   4.0.0
	 */
	public function __construct()
	{
		$this->stemmer = new \Wamania\Snowball\Swedish;
	}

	/**
	 * Method to stem a token.
	 *
	 * @param   string  $token  The token to stem.
	 *
	 * @return  string  The stemmed token.
	 *
	 * @since   4.0.0
	 */
	public function stem($token)
	{
		return $this->stemmer->stem($token);
	}
}

The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.