dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Got rid of the MagicWord indexing constants (MAG_xxx), replaced them by string indexi...
[lhc/web/wiklou.git]
/
includes
/
ZhClient.php
diff --git
a/includes/ZhClient.php
b/includes/ZhClient.php
index
4f1524f
..
0451ce8
100644
(file)
--- a/
includes/ZhClient.php
+++ b/
includes/ZhClient.php
@@
-1,10
+1,13
@@
<?php
<?php
+/**
+ * @package MediaWiki
+ */
+
/**
* Client for querying zhdaemon
*
* @package MediaWiki
*/
/**
* Client for querying zhdaemon
*
* @package MediaWiki
*/
-
class ZhClient {
var $mHost, $mPort, $mFP, $mConnected;
class ZhClient {
var $mHost, $mPort, $mFP, $mConnected;
@@
-93,12
+96,12
@@
class ZhClient {
}
/**
}
/**
- * Convert the input to all possible variants
+ * Convert the input to all possible variants
*
* @param string $text input text
* @return array langcode => converted_string
* @access public
*
* @param string $text input text
* @return array langcode => converted_string
* @access public
- */
+ */
function convertToAllVariants($text) {
$len = strlen($text);
$q = "CONV ALL $len\n$text";
function convertToAllVariants($text) {
$len = strlen($text);
$q = "CONV ALL $len\n$text";
@@
-116,7
+119,7
@@
class ZhClient {
$i+=$len;
}
return $ret;
$i+=$len;
}
return $ret;
- }
+
}
/**
* Perform word segmentation
*
/**
* Perform word segmentation
*
@@
-143,5
+146,4
@@
class ZhClient {
fclose($this->mFP);
}
}
fclose($this->mFP);
}
}
-
?>
\ No newline at end of file
?>
\ No newline at end of file