Bump version to 3.3.6
[kohana-core.git] / utf8 / strlen.php
blob147b3375980162058e0059478ca1f275feef4ac6
1 <?php defined('SYSPATH') OR die('No direct script access.');
2 /**
3 * UTF8::strlen
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 _strlen($str)
13 if (UTF8::is_ascii($str))
14 return strlen($str);
16 return strlen(utf8_decode($str));