[#BloombergLP-ball-PatternUtil-isValidPattern] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/PatternUtil.adoc[PatternUtil]::isValidPattern :relfileprefix: ../../../ :mrdocs: Return `true` if `pattern` is a valid pattern string. == Synopsis Declared in `<ball_patternutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool isValidPattern(char const* pattern); ---- == Description Return `true` if the specified `pattern` does not contain a '' not followed by either '' or `*`, or an unescaped `*` at locations other than at the end, and `false` otherwise. Note that an unescaped `*` not at the end may someday be considered a valid pattern. == Return Value `true` if `pattern` is a valid pattern string, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *pattern* | null‐terminated pattern string to validate |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#