Lines Matching refs:genrestring
447 function ParseID3v2GenreString($genrestring) { argument
452 $genrestring = trim($genrestring);
454 if (strpos($genrestring, "\x00") !== false) {
455 $unprocessed = trim($genrestring); // trailing nulls will cause an infinite loop.
456 $genrestring = '';
460 $genrestring .= '('.substr($unprocessed, 0, $endpos).')';
465 if (getid3_id3v1::LookupGenreID($genrestring)) {
467 $returnarray['genre'][] = $genrestring;
471 while (strpos($genrestring, '(') !== false) {
473 $startpos = strpos($genrestring, '(');
474 $endpos = strpos($genrestring, ')');
475 if (substr($genrestring, $startpos + 1, 1) == '(') {
476 $genrestring = substr($genrestring, 0, $startpos).substr($genrestring, $startpos + 1);
479 $element = substr($genrestring, $startpos + 1, $endpos - ($startpos + 1));
480 $genrestring = substr($genrestring, 0, $startpos).substr($genrestring, $endpos + 1);
496 if ($genrestring) {
497 …if (empty($returnarray['genre']) || !in_array($genrestring, $returnarray['genre'])) { // avoid dup…
498 $returnarray['genre'][] = $genrestring;