daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Mar 18th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top