pacemaker  1.1.16-94ff4df
Scalable High-Availability cluster resource manager
Macros | Functions
strings.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <bzlib.h>
#include <sys/types.h>
Include dependency graph for strings.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

char * crm_concat (const char *prefix, const char *suffix, char join)
 
char * crm_itoa_stack (int an_int, char *buffer, size_t len)
 
char * crm_itoa (int an_int)
 
void g_hash_destroy_str (gpointer data)
 
long long crm_int_helper (const char *text, char **end_text)
 
int crm_parse_int (const char *text, const char *default_text)
 
gboolean safe_str_neq (const char *a, const char *b)
 
gboolean crm_is_true (const char *s)
 
int crm_str_to_boolean (const char *s, int *ret)
 
char * crm_strip_trailing_newline (char *str)
 
gboolean crm_str_eq (const char *a, const char *b, gboolean use_case)
 
gboolean crm_ends_with (const char *s, const char *match)
 
guint g_str_hash_traditional (gconstpointer v)
 
guint crm_strcase_hash (gconstpointer v)
 
char * add_list_element (char *list, const char *value)
 
bool crm_compress_string (const char *data, int length, int max, char **result, unsigned int *result_len)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 22 of file strings.c.

Function Documentation

◆ add_list_element()

char* add_list_element ( char *  list,
const char *  value 
)

Definition at line 292 of file strings.c.

◆ crm_compress_string()

bool crm_compress_string ( const char *  data,
int  length,
int  max,
char **  result,
unsigned int *  result_len 
)

Definition at line 311 of file strings.c.

◆ crm_concat()

char* crm_concat ( const char *  prefix,
const char *  suffix,
char  join 
)

Definition at line 32 of file strings.c.

◆ crm_ends_with()

gboolean crm_ends_with ( const char *  s,
const char *  match 
)

Definition at line 242 of file strings.c.

◆ crm_int_helper()

long long crm_int_helper ( const char *  text,
char **  end_text 
)

Definition at line 80 of file strings.c.

◆ crm_is_true()

gboolean crm_is_true ( const char *  s)

Definition at line 165 of file strings.c.

◆ crm_itoa()

char* crm_itoa ( int  an_int)

Definition at line 60 of file strings.c.

◆ crm_itoa_stack()

char* crm_itoa_stack ( int  an_int,
char *  buffer,
size_t  len 
)

Definition at line 50 of file strings.c.

◆ crm_parse_int()

int crm_parse_int ( const char *  text,
const char *  default_text 
)

Definition at line 125 of file strings.c.

◆ crm_str_eq()

gboolean crm_str_eq ( const char *  a,
const char *  b,
gboolean  use_case 
)

Definition at line 213 of file strings.c.

◆ crm_str_to_boolean()

int crm_str_to_boolean ( const char *  s,
int *  ret 
)

Definition at line 176 of file strings.c.

◆ crm_strcase_hash()

guint crm_strcase_hash ( gconstpointer  v)

Definition at line 280 of file strings.c.

◆ crm_strip_trailing_newline()

char* crm_strip_trailing_newline ( char *  str)

Definition at line 197 of file strings.c.

◆ g_hash_destroy_str()

void g_hash_destroy_str ( gpointer  data)

Definition at line 74 of file strings.c.

◆ g_str_hash_traditional()

guint g_str_hash_traditional ( gconstpointer  v)

Definition at line 268 of file strings.c.

◆ safe_str_neq()

gboolean safe_str_neq ( const char *  a,
const char *  b 
)

Definition at line 150 of file strings.c.