diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 17:13:17 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 17:13:17 +0300 |
| commit | 043781575d90d84eb336ed32749e0ab8588a684c (patch) | |
| tree | 5dc47f9e4b94343bbcf5d3dec3d7fb43893bc253 /tests/cocoa/test_ownership.m | |
| parent | b7944e4bbfa64a6bb1a1d9e1f172827dde53aed2 (diff) | |
Decode local paths from drop payloads
Drops arrive as a CRLF-separated text/uri-list of file URLs, so every
consumer percent-decodes them; wsap_term does it in its own drop code.
yasl_drop_next_path() walks the list and returns one decoded local path
at a time. It accepts file:///, file:/, and file://localhost or this
machine's name, ends the path at '?' or '#', and skips comments, other
schemes, remote hosts, malformed escapes, and escaped NUL bytes. A buffer
that is too small leaves the cursor in place, like the other functions
that fill a buffer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/cocoa/test_ownership.m')
0 files changed, 0 insertions, 0 deletions
