Langium - v4.0.0
    Preparing search index...

    Variable basenameConst

    basename: (uri: URI) => string = Utils.basename

    Type declaration

      • (uri: URI): string
      • Returns the last segment of the path of a URI, similar to the Unix basename command. In the path, '/' is recognized as the directory separation character. Trailing directory separators are ignored. The empty string is returned if the URIs path is empty or does not contain any path segments.

        Parameters

        • uri: URI

          The input URI.

        Returns string

        The base name of the URIs path.