Welcome to mirror list, hosted at ThFree Co, Russian Federation.

GHOST_PathUtils.h « intern « ghost « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 26a31d1f5c623a74334d34e4a6db5e77daca3782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright 2010 Blender Foundation. All rights reserved. */

/** \file
 * \ingroup GHOST
 */

#pragma once

/**
 * Decode URL (i.e. converts `file:///a%20b/test` to `file:///a b/test`)
 *
 * \param buf_dst: Buffer for decoded URL.
 * \param buf_dst_maxlen: Size of output buffer.
 * \param buf_src: Input encoded buffer to be decoded.
 */
void GHOST_URL_decode(char *buf_dst, int buf_dst_size, const char *buf_src);
/**
 * A version of #GHOST_URL_decode that allocates the string & returns it.
 *
 * \param buf_src: Input encoded buffer to be decoded.
 * \return The decoded output buffer.
 */
char *GHOST_URL_decode_alloc(const char *buf_src);