|
Blender V5.0
|
Go to the source code of this file.
Functions | |
| bool | url_encode (const char *str, char *dst, size_t dst_size) |
| Encodes a string into URL format by converting special characters into percent-encoded sequences. | |
| bool url_encode | ( | const char * | str, |
| char * | dst, | ||
| size_t | dst_size ) |
Encodes a string into URL format by converting special characters into percent-encoded sequences.
This function iterates over the provided C-string and replaces non-alphanumeric characters (except for '-', '_', '.', '~') with their hexadecimal representations prefixed with ''. Spaces are converted into '+', following the conventions of URL encoding for forms (application/x-www-form-urlencoded).
| str | The input C-string to be URL-encoded. |
| dst | The output buffer where the URL-encoded string will be stored. |
| dst_size | The size of the output buffer dst. |
Definition at line 10 of file uri_convert.cc.
Referenced by url_encode_wstring().