NAME
uri.h - Bark deep-link launch URI parsing helpers.
SYNOPSIS
Functions
int bark_copy_uri_segment (const char *src, char *out, size_t cap, int stop_slash)
Copy a sanitized URI path or query segment into out.
int bark_strip_launch_uri (const char *uri, const char *scheme, const char **rest_out)
Validate a launch URI and strip its app scheme prefix.
Detailed Description
Bark deep-link launch URI parsing helpers.
Function Documentation
int bark_copy_uri_segment (const char * src, char * out, size_t cap, int stop_slash)
Copy a sanitized URI path or query segment into out.
Parameters
src Source URI pointer.
out Destination buffer.
cap Destination buffer capacity.
stop_slash Non-zero to stop at the next '/' delimiter.
Returns
Length copied, or negative on invalid characters.
int bark_strip_launch_uri (const char * uri, const char * scheme, const char ** rest_out)
Validate a launch URI and strip its app scheme prefix. Accepts custom "<scheme>://" URIs as well as "bark://launch/<id>/" generic launch URIs.
Returns
1 if valid and stripped, 0 otherwise.
Author
Generated automatically by Doxygen for Bark from the source code.