.TH "uri.h" 3 "Bark" \" -*- nroff -*- .ad l .nh .SH NAME uri.h \- Bark deep-link launch URI parsing helpers\&. .SH SYNOPSIS .br .PP .SS "Functions" .in +1c .ti -1c .RI "int \fBbark_copy_uri_segment\fP (const char *src, char *out, size_t cap, int stop_slash)" .br .RI "Copy a sanitized URI path or query segment into \fRout\fP\&. " .ti -1c .RI "int \fBbark_strip_launch_uri\fP (const char *uri, const char *scheme, const char **rest_out)" .br .RI "Validate a launch URI and strip its app scheme prefix\&. " .in -1c .SH "Detailed Description" .PP Bark deep-link launch URI parsing helpers\&. .SH "Function Documentation" .PP .SS "int bark_copy_uri_segment (const char * src, char * out, size_t cap, int stop_slash)" .PP Copy a sanitized URI path or query segment into \fRout\fP\&. .PP \fBParameters\fP .RS 4 \fIsrc\fP Source URI pointer\&. .br \fIout\fP Destination buffer\&. .br \fIcap\fP Destination buffer capacity\&. .br \fIstop_slash\fP Non-zero to stop at the next '/' delimiter\&. .RE .PP \fBReturns\fP .RS 4 Length copied, or negative on invalid characters\&. .RE .PP .SS "int bark_strip_launch_uri (const char * uri, const char * scheme, const char ** rest_out)" .PP Validate a launch URI and strip its app scheme prefix\&. Accepts custom \fR"://"\fP URIs as well as \fR"bark://launch//"\fP generic launch URIs\&. .PP \fBReturns\fP .RS 4 1 if valid and stripped, 0 otherwise\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Bark from the source code\&.