mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4518 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7c6569294e
commit
5c7547f430
1 changed files with 2 additions and 2 deletions
|
|
@ -208,8 +208,8 @@
|
|||
* @param tail 잘라졌을 경우 문자열의 제일 뒤에 붙을 꼬리
|
||||
* @return string
|
||||
**/
|
||||
function cut_str($string,$cut_size,$tail = '...') {
|
||||
if(!$string) return $string;
|
||||
function cut_str($string,$cut_size=0,$tail = '...') {
|
||||
if($cut_size<1 || !$string) return $string;
|
||||
|
||||
$char_width = Array(5,10,11,16,14,16,16,10,11,11,12,13,10,13,10,12,13,13,13,13,13,13,13,13,13,13,10,10,14,13,14,13,16,15,15,16,15,15,14,16,15,8,13,15,14,16,16,16,15,16,15,15,14,16,15,16,16,15,15,13,16,13,13,11,10,14,14,14,14,14,10,14,14,8,9,13,8,16,14,15,14,14,10,14,10,14,13,16,14,13,14,14,14,14,16);
|
||||
$unicode_width = 21;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue