omniClientBreakUrl

Defined in OmniClient.h

struct OmniClientUrl *omniClientBreakUrl(char const *url)

Break a URL into components.

This assumes the URL is either a full URL (starting with a scheme such as “http:”) or a raw local file path such as “C:\path” (Windows) or “/path” (Linux).

This affects percent-encoding and handling of ? and # for paths such as “/test%20test?”, which will be decoded to “/test test” by omniClientBreakUrlReference, but left as-is by omniClientBreakUrl

If the return value has “isRaw” set to true then “urlAbsolute” was determined to be a raw path, and only the “path” value is set.