Class Templates


  • class Templates
    extends Object
    • Field Detail

      • templatePattern

        static final Pattern templatePattern
    • Constructor Detail

      • Templates

        Templates()
    • Method Detail

      • 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.