#include <stdlib.h>
#include <stddef.h>
#include <ctype.h>
#include <string.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <retro_inline.h>
#include <compat/strl.h>
Go to the source code of this file.
|
#define | string_add_pair_open(s, size) strlcat((s), " (", (size)) |
|
#define | string_add_pair_close(s, size) strlcat((s), ")", (size)) |
|
#define | string_add_bracket_open(s, size) strlcat((s), "{", (size)) |
|
#define | string_add_bracket_close(s, size) strlcat((s), "}", (size)) |
|
#define | string_add_single_quote(s, size) strlcat((s), "'", (size)) |
|
#define | string_add_quote(s, size) strlcat((s), "\"", (size)) |
|
#define | string_add_colon(s, size) strlcat((s), ":", (size)) |
|
#define | string_add_glob_open(s, size) strlcat((s), "glob('*", (size)) |
|
#define | string_add_glob_close(s, size) strlcat((s), "*')", (size)) |
|
#define | string_is_not_equal_fast(a, b, size) (memcmp(a, b, size) != 0) |
|
#define | string_is_equal_fast(a, b, size) (memcmp(a, b, size) == 0) |
|
|
static RETRO_BEGIN_DECLS INLINE bool | string_is_empty (const char *data) |
|
static INLINE bool | string_is_equal (const char *a, const char *b) |
|
static INLINE bool | string_is_not_equal (const char *a, const char *b) |
|
static INLINE void | string_add_between_pairs (char *s, const char *str, size_t size) |
|
static INLINE bool | string_is_equal_case_insensitive (const char *a, const char *b) |
|
static INLINE bool | string_is_equal_noncase (const char *a, const char *b) |
|
char * | string_to_upper (char *s) |
|
char * | string_to_lower (char *s) |
|
char * | string_ucwords (char *s) |
|
char * | string_replace_substring (const char *in, const char *pattern, const char *by) |
|
char * | string_trim_whitespace_left (char *const s) |
|
char * | string_trim_whitespace_right (char *const s) |
|
char * | string_trim_whitespace (char *const s) |
|
char * | word_wrap (char *buffer, const char *string, int line_width, bool unicode) |
|
◆ string_add_bracket_close
◆ string_add_bracket_open
◆ string_add_colon
◆ string_add_glob_close
◆ string_add_glob_open
#define string_add_glob_open |
( |
|
s, |
|
|
|
size |
|
) |
| strlcat((s), "glob('*", (size)) |
◆ string_add_pair_close
◆ string_add_pair_open
◆ string_add_quote
◆ string_add_single_quote
◆ string_is_equal_fast
◆ string_is_not_equal_fast
◆ string_add_between_pairs()
static INLINE void string_add_between_pairs |
( |
char * |
s, |
|
|
const char * |
str, |
|
|
size_t |
size |
|
) |
| |
|
static |
◆ string_is_empty()
◆ string_is_equal()
◆ string_is_equal_case_insensitive()
◆ string_is_equal_noncase()
◆ string_is_not_equal()
◆ string_replace_substring()
char* string_replace_substring |
( |
const char * |
in, |
|
|
const char * |
pattern, |
|
|
const char * |
by |
|
) |
| |
◆ string_to_lower()
char* string_to_lower |
( |
char * |
s | ) |
|
◆ string_to_upper()
char* string_to_upper |
( |
char * |
s | ) |
|
◆ string_trim_whitespace()
char* string_trim_whitespace |
( |
char *const |
s | ) |
|
◆ string_trim_whitespace_left()
char* string_trim_whitespace_left |
( |
char *const |
s | ) |
|
◆ string_trim_whitespace_right()
char* string_trim_whitespace_right |
( |
char *const |
s | ) |
|
◆ string_ucwords()
char* string_ucwords |
( |
char * |
s | ) |
|
◆ word_wrap()
char* word_wrap |
( |
char * |
buffer, |
|
|
const char * |
string, |
|
|
int |
line_width, |
|
|
bool |
unicode |
|
) |
| |