26 if ($oStr->strstr($sInField,
'"')) {
27 return '"' . str_replace(
'"',
'""', $sInField) .
'"';
28 } elseif ($oStr->strstr($sInField,
';')) {
29 return '"' . $sInField .
'"';
48 $sString = trim($sString);
52 $sString = $oStr->preg_replace(
"/[ \t\n\r]+/",
" ", $sString);
53 if ($oStr->strlen($sString) > $iLength && $iLength != -1) {
54 $sString = $oStr->substr($sString, 0, $iLength);
57 $sString = $oStr->preg_replace(
"/,+$/",
"", $sString);
72 if ($oStr->hasSpecialChars($sSearchStr)) {
73 return $oStr->recodeEntities($sSearchStr,
true, array(
'&'), array(
'&'));