Class Templates

java.lang.Object
org.bytedeco.javacpp.tools.Templates

class Templates extends Object
  • Field Details

    • templatePattern

      static final Pattern templatePattern
  • Constructor Details

    • Templates

      Templates()
  • Method Details

    • strip

      static String strip(String s)
      Remove template arguments from s, taking care of nested templates, default arguments (xxx<>), operator <=>, ->, etc
    • notExists

      static boolean notExists(String s)
      Returns strip(s).length() == s.length().
    • splitNamespace

      static List<String> splitNamespace(String s)
      Returns splitNamespace(s, false).
    • splitNamespace

      static List<String> splitNamespace(String s, boolean returnParams)
      Split s at ::, but taking care of qualified template arguments and qualified function parameters. If returnParams is true, returned list contains an extra element with function parameters, or the empty string if none are present.