Lines Matching refs:str
200 * @param string $str Input string, first CSV line will be removed
207 public static function csv_explode_row(&$str, $delim = ',', $enc = '"', $esc = '\\') argument
209 $len = strlen($str);
219 if ($str[$i] == "\015") {
220 if ($str[($i + 1)] != "\012") {
221 $str[$i] = "\012";
229 if ($str[$i] == $esc && $esc != $enc) {
231 $word .= $str[$i];
242 if ($str[$i] == $delim) {
251 if ($str[$i] == "\n") {
265 if ($str[$i] === ' ') {
270 if ($str[$i] == $enc) {
278 $word .= $str[$i];
285 … if ($str[$i] == $esc && $esc == $enc && isset($str[$i + 1]) && $str[$i + 1] == $esc) {
287 $word .= $str[$i];
292 if ($str[$i] == $enc) {
300 $word .= $str[$i];
305 if ($str[$i] == $delim) {
314 if ($str[$i] == "\n") {
327 $word .= $str[$i];
337 $str = substr($str, $i + 1);