Bump version to 3.3.6
[kohana-core.git] / utf8 / trim.php
blobaca558ea30c3767f456ae70addddd99718047b4b
1 <?php defined('SYSPATH') OR die('No direct script access.');
2 /**
3 * UTF8::trim
5 * @package Kohana
6 * @author Kohana Team
7 * @copyright (c) 2007-2012 Kohana Team
8 * @copyright (c) 2005 Harry Fuecks
9 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
11 function _trim($str, $charlist = NULL)
13 if ($charlist === NULL)
14 return trim($str);
16 return UTF8::ltrim(UTF8::rtrim($str, $charlist), $charlist);