XMMS2
val.c File Reference
#include "s4_priv.h"
#include <string.h>
#include <stdlib.h>
#include <ctype.h>

Enumerations

enum  s4_val_type_t { S4_VAL_STR , S4_VAL_STR_INTERNAL , S4_VAL_INT }
 

Functions

s4_val_ts4_val_new_string (const char *str)
 Creates a new string value.
 
s4_val_ts4_val_new_int (int32_t i)
 Creates a new integer value.
 
s4_val_ts4_val_copy (const s4_val_t *val)
 Copies a value.
 
void s4_val_free (s4_val_t *val)
 Frees a value.
 
int s4_val_is_str (const s4_val_t *val)
 Checks is a value is a string value.
 
int s4_val_is_int (const s4_val_t *val)
 Checks is a value is an integer value.
 
int s4_val_get_str (const s4_val_t *val, const char **str)
 Tries to get the string in a string value.
 
int s4_val_get_collated_str (const s4_val_t *val, const char **str)
 Tries to get the normalized string in a string value.
 
int s4_val_get_casefolded_str (const s4_val_t *val, const char **str)
 Tries to get the normalized string in a string value.
 
int s4_val_get_int (const s4_val_t *val, int32_t *i)
 Tries to get the integer in an integer value.
 
int s4_val_cmp (const s4_val_t *v1, const s4_val_t *v2, s4_cmp_mode_t mode)
 Compares two values.
 
s4_val_ts4_val_new_internal_string (const char *str, s4_t *s4)
 Creates a new internal string value.
 

Enumeration Type Documentation

◆ s4_val_type_t

Enumerator
S4_VAL_STR 
S4_VAL_STR_INTERNAL 
S4_VAL_INT