Is the pattern matching logic used by this API to be reused somewhere in the .Net Framework?
Something like form FilePatternMatch( string searchPattern, stringfileNameToTest )is what I'm looking for.
I am using a temporary workaround for WP7 without filtering the results for this overload, and I would like this solution to provide a consistent experience and avoid reusing this function if it was detected.
If the behavior will not be used for reuse, a regular expression is sufficient (for example, matching glob patterns in .NET ), and I would spend time testing small details of the behavior.
Perhaps one of the answers posted in the stream above is correct. Since I have not yet confirmed the exact behavior, I could not determine this at a glance. Feel free to give me one of these answers if you know that this behavior matches the exact API indicated in the question header.
I could suggest that pattern matching is consistent with how DOS * and? in 8.3 file names (I am familiar with the behavioral nuances of this implementation), but itβs reasonable to assume that Microsoft has changed the pattern matching behavior for file names over a decade +, since I thought I'd check before proceeding with this assumption.
source
share