RetroArch
Macros | Functions
stdstring.h File Reference
#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>
Include dependency graph for stdstring.h:

Go to the source code of this file.

Macros

#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)
 

Functions

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)
 

Macro Definition Documentation

◆ string_add_bracket_close

#define string_add_bracket_close (   s,
  size 
)    strlcat((s), "}", (size))

◆ string_add_bracket_open

#define string_add_bracket_open (   s,
  size 
)    strlcat((s), "{", (size))

◆ string_add_colon

#define string_add_colon (   s,
  size 
)    strlcat((s), ":", (size))

◆ string_add_glob_close

#define string_add_glob_close (   s,
  size 
)    strlcat((s), "*')", (size))

◆ string_add_glob_open

#define string_add_glob_open (   s,
  size 
)    strlcat((s), "glob('*", (size))

◆ string_add_pair_close

#define string_add_pair_close (   s,
  size 
)    strlcat((s), ")", (size))

◆ string_add_pair_open

#define string_add_pair_open (   s,
  size 
)    strlcat((s), " (", (size))

◆ string_add_quote

#define string_add_quote (   s,
  size 
)    strlcat((s), "\"", (size))

◆ string_add_single_quote

#define string_add_single_quote (   s,
  size 
)    strlcat((s), "'", (size))

◆ string_is_equal_fast

#define string_is_equal_fast (   a,
  b,
  size 
)    (memcmp(a, b, size) == 0)

◆ string_is_not_equal_fast

#define string_is_not_equal_fast (   a,
  b,
  size 
)    (memcmp(a, b, size) != 0)

Function Documentation

◆ string_add_between_pairs()

static INLINE void string_add_between_pairs ( char *  s,
const char *  str,
size_t  size 
)
static
Here is the caller graph for this function:

◆ string_is_empty()

static RETRO_BEGIN_DECLS INLINE bool string_is_empty ( const char *  data)
static

◆ string_is_equal()

static INLINE bool string_is_equal ( const char *  a,
const char *  b 
)
static

◆ string_is_equal_case_insensitive()

static INLINE bool string_is_equal_case_insensitive ( const char *  a,
const char *  b 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ string_is_equal_noncase()

static INLINE bool string_is_equal_noncase ( const char *  a,
const char *  b 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ string_is_not_equal()

static INLINE bool string_is_not_equal ( const char *  a,
const char *  b 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ string_replace_substring()

char* string_replace_substring ( const char *  in,
const char *  pattern,
const char *  by 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ string_to_lower()

char* string_to_lower ( char *  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ string_to_upper()

char* string_to_upper ( char *  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ string_trim_whitespace()

char* string_trim_whitespace ( char *const  s)
Here is the call graph for this function:

◆ string_trim_whitespace_left()

char* string_trim_whitespace_left ( char *const  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ string_trim_whitespace_right()

char* string_trim_whitespace_right ( char *const  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ string_ucwords()

char* string_ucwords ( char *  s)
Here is the call graph for this function:

◆ word_wrap()

char* word_wrap ( char *  buffer,
const char *  string,
int  line_width,
bool  unicode 
)
Here is the call graph for this function:
Here is the caller graph for this function: