зеркало из https://github.com/github/ruby.git
[DOC] Added File::FNM_SYSCASE example [Bug #16391] [ci skip]
This commit is contained in:
Родитель
dbfd4b780e
Коммит
fb11e6089d
1
dir.c
1
dir.c
|
@ -3176,6 +3176,7 @@ fnmatch_brace(const char *pattern, VALUE val, void *enc)
|
|||
*
|
||||
* File.fnmatch('cat', 'CAT') #=> false # case sensitive
|
||||
* File.fnmatch('cat', 'CAT', File::FNM_CASEFOLD) #=> true # case insensitive
|
||||
* File.fnmatch('cat', 'CAT', File::FNM_SYSCASE) #=> true or false # depends on the system default
|
||||
*
|
||||
* File.fnmatch('?', '/', File::FNM_PATHNAME) #=> false # wildcard doesn't match '/' on FNM_PATHNAME
|
||||
* File.fnmatch('*', '/', File::FNM_PATHNAME) #=> false # ditto
|
||||
|
|
Загрузка…
Ссылка в новой задаче