aboutsummaryrefslogtreecommitdiffstats
path: root/library/ajaxchat/chat/lib/class/AJAXChatString.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-27 18:37:06 -0800
committerfriendica <info@friendica.com>2014-01-27 18:37:06 -0800
commiteb21bbdd550e4d1efc9a4c6e506eb64ba2cf9842 (patch)
tree887fbfc6ba78c4c2e12d0361003b33c6e76926ac /library/ajaxchat/chat/lib/class/AJAXChatString.php
parent3100b5d93e9f440a17b99d2856ee022b29d73f80 (diff)
downloadvolse-hubzilla-eb21bbdd550e4d1efc9a4c6e506eb64ba2cf9842.tar.gz
volse-hubzilla-eb21bbdd550e4d1efc9a4c6e506eb64ba2cf9842.tar.bz2
volse-hubzilla-eb21bbdd550e4d1efc9a4c6e506eb64ba2cf9842.zip
Ajaxchat package has way too many incompatible assumptions - after a lot of review, we can't work with it without re-writing huge chunks. Think I'll just start fresh. Ajax chat isn't that hard and we can do stuff with it that you just can't do with other chat clients because - well we've got zot.
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