:orphan: # PetscEnumFind searches enum list of strings for given string, using case insensitive matching ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscEnumFind(const char *const *enumlist, const char *str, PetscEnum *value, PetscBool *found) ``` Not Collective; No Fortran Support ## Input Parameters - ***enumlist -*** list of strings to search, followed by enum name, then enum prefix, then `NULL` - ***str -*** string to look for ## Output Parameters - ***value -*** index of matching string (if found) - ***found -*** boolean indicating whether string was found (can be `NULL`) ## See Also `PetscEListFind()` ## Level advanced ## Location src/sys/utils/str.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/str.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)