#include <stdlib.h>
#include <stdint.h>
#include <yyast/types.h>
#include <yyast/config.h>
Go to the source code of this file.
Data Structures | |
| union | bswap128_t |
Defines | |
| #define | _GNU_SOURCE |
Functions | |
| size_t | ya_string_escape (uint8_t *string, size_t string_size, int raw) |
| Escape characters in a string. | |
| char * | ya_new_extension (char *filename, char *new_extension) |
| Strip extension from filename and replace with new extension. | |
| char* ya_new_extension | ( | char * | filename, | |
| char * | new_extension | |||
| ) |
Strip extension from filename and replace with new extension.
| filename | The original filename. | |
| new_extension | The new extension to append. |
Definition at line 142 of file utils.c.
Referenced by ya_parse_options().
| size_t ya_string_escape | ( | uint8_t * | string, | |
| size_t | string_size, | |||
| int | raw | |||
| ) |
Escape characters in a string.
The original string is modified by this function.
| string | The UTF-8 string with escape characters. | |
| string_size | The number of bytes in the UTF-8 string. | |
| raw | When 0 standard escape sequence is decoded. When 1 only the double quote escape \" is decoded. When 2 only the double quote slash \/ is decoded. |
Definition at line 37 of file utils.c.
References ya_error().
1.5.6