aboutsummaryrefslogtreecommitdiffstats
path: root/library/ajaxchat/chat/lib/class/AJAXChatString.php
diff options
context:
space:
mode:
authorMichael Meer <michael@meer.name>2014-01-28 09:49:09 +0100
committerMichael Meer <michael@meer.name>2014-01-28 09:49:09 +0100
commit8ddee71c2b0f384470965dd46a2e594a4f98f8e0 (patch)
tree84bcf6e0f94365b186b4613b43d7a72f5f22f525 /library/ajaxchat/chat/lib/class/AJAXChatString.php
parent904db593df914d2932d9c2f018b00987052461d7 (diff)
parentf104b4dc275891785ec03abd779d8aafe5163815 (diff)
downloadvolse-hubzilla-8ddee71c2b0f384470965dd46a2e594a4f98f8e0.tar.gz
volse-hubzilla-8ddee71c2b0f384470965dd46a2e594a4f98f8e0.tar.bz2
volse-hubzilla-8ddee71c2b0f384470965dd46a2e594a4f98f8e0.zip
Merge branch 'master' of https://github.com/friendica/red
to be in sync with main repro
Diffstat (limited to 'library/ajaxchat/chat/lib/class/AJAXChatString.php')
-rw-r--r--library/ajaxchat/chat/lib/class/AJAXChatString.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/library/ajaxchat/chat/lib/class/AJAXChatString.php b/library/ajaxchat/chat/lib/class/AJAXChatString.php
deleted file mode 100644
index 8997da5ea..000000000
--- a/library/ajaxchat/chat/lib/class/AJAXChatString.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/*
- * @package AJAX_Chat
- * @author Sebastian Tschan
- * @copyright (c) Sebastian Tschan
- * @license Modified MIT License
- * @link https://blueimp.net/ajax/
- */
-
-// Class to provide multibyte enabled string methods
-class AJAXChatString {
-
- public static function subString($str, $start=0, $length=null, $encoding='UTF-8') {
- if($length === null) {
- $length = AJAXChatString::stringLength($str);
- }
- if(function_exists('mb_substr')) {
- return mb_substr($str, $start, $length, $encoding);
- } else if(function_exists('iconv_substr')) {
- return iconv_substr($str, $start, $length, $encoding);
- } else {
- return substr($str, $start, $length);
- }
- }
-
- public static function stringLength($str, $encoding='UTF-8') {
- if(function_exists('mb_strlen')) {
- return mb_strlen($str, $encoding);
- } else if(function_exists('iconv_strlen')) {
- return iconv_strlen($str, $encoding);
- } else {
- return strlen($str);
- }
- }
-
-}
-?> \ No newline at end of file