Lines Matching refs:str
204 * @param string $str Input string, first CSV line will be removed
211 public static function csvExplodeRow(&$str, $delim = ',', $enc = '"', $esc = '\\') argument
213 $len = strlen($str);
223 if ($str[$i] == "\015") {
224 if ($str[($i + 1)] != "\012") {
225 $str[$i] = "\012";
233 if ($str[$i] == $esc && $esc != $enc) {
235 $word .= $str[$i];
245 if ($str[$i] == $delim) {
254 if ($str[$i] == "\n") {
268 if ($str[$i] === ' ') {
273 if ($str[$i] == $enc) {
281 $word .= $str[$i];
286 … if ($str[$i] == $esc && $esc == $enc && isset($str[$i + 1]) && $str[$i + 1] == $esc) {
288 $word .= $str[$i];
293 if ($str[$i] == $enc) {
301 $word .= $str[$i];
304 if ($str[$i] == $delim) {
313 if ($str[$i] == "\n") {
326 $word .= $str[$i];
336 $str = substr($str, $i + 1);