1 Star 0 Fork 4.9K

wenjun / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fnmatch-h.md 8.03 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

fnmatch.h

Overview

Related Modules:

UTILS

Description:

Provides a function for checking whether a specified string matches a string that contains wildcards.

Since:

1.0

Version:

1.0

Summary

Macros

Macro Name and Value

Description

FNM_PATHNAME   0x1

If this flag is set, a slash (/) in string can be matched by a slash (/) in pattern, but not by an asterisk (*), or a question mark (?), or a bracket expression ([]) containing a slash.

FNM_NOESCAPE   0x2

If this flag is set, the backslash () is treated as an ordinary character, instead of an escape character.

FNM_PERIOD   0x4

If this flag is set, a leading period (.) in string can be exactly matched by the period (.) in pattern. A period is considered to be leading if it is the first character in string, or if both FNM_PATHNAME is set and the period immediately follows a slash.

FNM_LEADING_DIR   0x8

If this flag is set, a trailing sequence of characters starting with a slash (/) is ignored in string. For example, if this flag is set, either foo* or foobar as a pattern would match the string foobar/frobozz.

FNM_CASEFOLD   0x10

If this flag is set, the pattern is matched case-insensitively.

FNM_FILE_NAME   FNM_PATHNAME

The definition is similar to that of FNM_PATHNAME.

FNM_NOMATCH   1

The string parameter does not match the pattern parameter.

FNM_NOSYS   (-1)

The function does not support the operation.

Functions

Function Name

Description

fnmatch (const char *pattern, const char *string, int flags)

int 

Matches a file name or a path name.

1
https://gitee.com/wenjun_flyingfox/docs.git
git@gitee.com:wenjun_flyingfox/docs.git
wenjun_flyingfox
docs
docs
master

搜索帮助