PHP 클래스 libphonenumber\Matcher

Note that this is NOT the same as google's java PhoneNumberMatcher class. This class is a minimal port of java's built-in matcher class, whereas PhoneNumberMatcher is designed to recognize phone numbers embedded in any text.
파일 보기 프로젝트 열기: giggsey/libphonenumber-for-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$groups array
$pattern string
$subject string

공개 메소드들

메소드 설명
__construct ( string $pattern, string $subject )
end ( integer | null $group = null ) : integer
find ( ) : boolean
group ( integer $group = null ) : string
groupCount ( ) : integer
lookingAt ( ) : boolean
matches ( ) : boolean
replaceAll ( string $replacement ) : string
replaceFirst ( string $replacement ) : string
reset ( string $input = "" ) : Matcher
start ( $group = null )

보호된 메소드들

메소드 설명
doMatch ( $type = 'find' )

메소드 상세

__construct() 공개 메소드

public __construct ( string $pattern, string $subject )
$pattern string
$subject string

doMatch() 보호된 메소드

protected doMatch ( $type = 'find' )

end() 공개 메소드

public end ( integer | null $group = null ) : integer
$group integer | null
리턴 integer

find() 공개 메소드

public find ( ) : boolean
리턴 boolean

group() 공개 메소드

public group ( integer $group = null ) : string
$group integer
리턴 string

groupCount() 공개 메소드

public groupCount ( ) : integer
리턴 integer

lookingAt() 공개 메소드

public lookingAt ( ) : boolean
리턴 boolean

matches() 공개 메소드

public matches ( ) : boolean
리턴 boolean

replaceAll() 공개 메소드

public replaceAll ( string $replacement ) : string
$replacement string
리턴 string

replaceFirst() 공개 메소드

public replaceFirst ( string $replacement ) : string
$replacement string
리턴 string

reset() 공개 메소드

public reset ( string $input = "" ) : Matcher
$input string
리턴 Matcher

start() 공개 메소드

public start ( $group = null )

프로퍼티 상세

$groups 보호되어 있는 프로퍼티

protected array $groups
리턴 array

$pattern 보호되어 있는 프로퍼티

protected string $pattern
리턴 string

$subject 보호되어 있는 프로퍼티

protected string $subject
리턴 string