Lines Matching refs:string
86 * @var null|string $type Data type. Tries to detect if omitted
338 * @return string|false
342 $input = (string) $input;
375 // The shortest possible WKB string (LINESTRING EMPTY) is 18 hex-chars (9 encoded bytes) long
403 $string = substr($input, 0, 1024);
404 if (strpos($string, '<kml') !== false) {
407 if (strpos($string, '<coordinate') !== false) {
410 if (strpos($string, '<gpx') !== false) {
413 if (strpos($string, '<osm ') !== false) {
416 if (preg_match('/<[a-z]{3,20}>/', $string) !== false) {
421 // We need an 8 byte string for geohash and unpacked WKB / WKT
423 $string = trim(fread($mem, 8));
426 preg_match('/[' . GeoHash::$characterTable . ']+/', $string, $matches);
427 if (isset($matches[0]) && $matches[0] == $string && strlen($input) <= 13) {
431 preg_match('/^[a-f0-9]+$/', $string, $matches);