本文整理汇总了C++中FindTypeInArray函数的典型用法代码示例。如果您正苦于以下问题:C++ FindTypeInArray函数的具体用法?C++ FindTypeInArray怎么用?C++ FindTypeInArray使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了FindTypeInArray函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AclDefaultFromString
AclDefault AclDefaultFromString(const char *string)
{
static const char *const ACL_DEFAULT_TYPES[5] =
{ "nochange", "specify", "access", "clear", NULL };
return FindTypeInArray(ACL_DEFAULT_TYPES, string, ACL_DEFAULT_NONE, ACL_DEFAULT_NONE);
}
示例2: SyslogPriorityFromString
int SyslogPriorityFromString(const char *s)
{
static const char *SYSLOG_PRIORITY_TYPES[] =
{ "emergency", "alert", "critical", "error", "warning", "notice", "info", "debug", NULL };
return FindTypeInArray(SYSLOG_PRIORITY_TYPES, s, 3, 3);
}
示例3: AclInheritanceFromString
/* For the deprecated attribute acl_directory_inherit. */
AclDefault AclInheritanceFromString(const char *string)
{
static const char *const ACL_INHERIT_TYPES[5] =
{ "nochange", "specify", "parent", "clear", NULL };
return FindTypeInArray(ACL_INHERIT_TYPES, string, ACL_DEFAULT_NONE, ACL_DEFAULT_NONE);
}
示例4: AclMethodFromString
AclMethod AclMethodFromString(const char *string)
{
static const char *const ACL_METHOD_TYPES[] =
{ "append", "overwrite", NULL };
return FindTypeInArray(ACL_METHOD_TYPES, string, ACL_METHOD_NONE, ACL_METHOD_NONE);
}
示例5: AclTypeFromString
AclType AclTypeFromString(const char *string)
{
static const char *const ACL_TYPES[]=
{ "generic", "posix", "ntfs", NULL };
return FindTypeInArray(ACL_TYPES, string, ACL_TYPE_NONE, ACL_TYPE_NONE);
}
示例6: FileLinkTypeFromString
FileLinkType FileLinkTypeFromString(const char *s)
{
static const char *const LINK_TYPES[] =
{ "symlink", "hardlink", "relative", "absolute", NULL };
return FindTypeInArray(LINK_TYPES, s, FILE_LINK_TYPE_SYMLINK, FILE_LINK_TYPE_SYMLINK);
}
示例7: PackageActionPolicyFromString
PackageActionPolicy PackageActionPolicyFromString(const char *s)
{
static const char *const ACTION_POLICY_TYPES[] =
{ "individual", "bulk", NULL };
return FindTypeInArray(ACTION_POLICY_TYPES, s, PACKAGE_ACTION_POLICY_NONE, PACKAGE_ACTION_POLICY_NONE);
}
示例8: PackageVersionComparatorFromString
PackageVersionComparator PackageVersionComparatorFromString(const char *s)
{
static const char *const PACKAGE_SELECT_TYPES[] =
{ "==", "!=", ">", "<", ">=", "<=", NULL };
return FindTypeInArray(PACKAGE_SELECT_TYPES, s, PACKAGE_VERSION_COMPARATOR_NONE, PACKAGE_VERSION_COMPARATOR_NONE);
}
示例9: InsertMatchTypeFromString
InsertMatchType InsertMatchTypeFromString(const char *s)
{
static const char *INSERT_MATCH_TYPES[] = { "ignore_leading", "ignore_trailing", "ignore_embedded",
"exact_match", NULL };
return FindTypeInArray(INSERT_MATCH_TYPES, s, INSERT_MATCH_TYPE_EXACT, INSERT_MATCH_TYPE_EXACT);
}
示例10: UserStateFromString
UserState UserStateFromString(const char *s)
{
static const char *const U_TYPES[] =
{ "present", "absent", "locked", NULL };
return FindTypeInArray(U_TYPES, s, USER_STATE_NONE, USER_STATE_NONE);
}
示例11: ServicePolicyFromString
ServicePolicy ServicePolicyFromString(const char *string)
{
static const char *const SERVICE_POLICY_TYPES[] =
{ "start", "stop", "disable", "restart", "reload", NULL };
return FindTypeInArray(SERVICE_POLICY_TYPES, string, SERVICE_POLICY_START, SERVICE_POLICY_START);
}
示例12: PackageActionFromString
PackageAction PackageActionFromString(const char *s)
{
static const char *PACKAGE_ACTION_TYPES[] =
{ "add", "delete", "reinstall", "update", "addupdate", "patch", "verify", NULL };
return FindTypeInArray(PACKAGE_ACTION_TYPES, s, PACKAGE_ACTION_NONE, PACKAGE_ACTION_NONE);
}
示例13: FileComparatorFromString
FileComparator FileComparatorFromString(const char *s)
{
static const char *FILE_COMPARISON_TYPES[] =
{ "atime", "mtime", "ctime", "digest", "hash", "binary", "exists", NULL };
return FindTypeInArray(FILE_COMPARISON_TYPES, s, FILE_COMPARATOR_NONE, FILE_COMPARATOR_NONE);
}
示例14: EnvironmentStateFromString
EnvironmentState EnvironmentStateFromString(const char *s)
{
static const char *const ENV_STATE_TYPES[] =
{ "create", "delete", "running", "suspended", "down", NULL };
return FindTypeInArray(ENV_STATE_TYPES, s, ENVIRONMENT_STATE_NONE, ENVIRONMENT_STATE_CREATE);
}
示例15: MeasurePolicyFromString
MeasurePolicy MeasurePolicyFromString(const char *s)
{
static const char *const MEASURE_POLICY_TYPES[] =
{ "average", "sum", "first", "last", NULL };
return FindTypeInArray(MEASURE_POLICY_TYPES, s, MEASURE_POLICY_AVERAGE, MEASURE_POLICY_NONE);
}