Class Glob

java.lang.Object
org.casbin.jcasbin.util.Glob

public class Glob extends Object
Since:
2021/1/13
  • Field Details

  • Constructor Details

    • Glob

      public Glob()
  • Method Details

    • toRegexPattern

      public static String toRegexPattern(String globPattern)
      Creates a regex pattern from the given glob expression.
      Parameters:
      globPattern - the given glob expression
      Returns:
      the regex pattern
    • isRegexMeta

      private static boolean isRegexMeta(char c)
    • isGlobMeta

      private static boolean isGlobMeta(char c)
    • next

      private static char next(String glob, int i)