Guest User

Untitled

a guest
Mar 18th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. namespace System.IO.Enumeration
  2. {
  3. public static class FileSystemName
  4. {
  5. // Change '*' and '?' to '<', '>', and '"' to match Win32 behavior
  6. public static string TranslateWin32Expression(string expression);
  7.  
  8. // This matches '*', '?', '<', '>', and '"' wildcards
  9. public static bool MatchesWin32Expression(ReadOnlySpan<char> expression, ReadOnlySpan<char> name, bool ignoreCase = true);
  10.  
  11. // This matches just '*' and '?' wildcards
  12. public static bool MatchesSimpleExpression(ReadOnlySpan<char> expression, ReadOnlySpan<char> name, bool ignoreCase = true);
  13. }
  14. }
Add Comment
Please, Sign In to add comment