Function

RBuri_get_short_path_name

Declaration [src]

char*
rb_uri_get_short_path_name (
  const char* uri
)

Description [src]

Returns the filename component of uri, that is, everything after the final slash and before the start of the query string or fragment.

Parameters

uri

Type: const char*

A URI.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: char*

Filename component of uri, must be freed by caller.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.