BRL-CAD
#include "common.h"
#include "bu/defines.h"
Include dependency graph for str.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define bu_strlcat(dst, src, size)   bu_strlcatm(dst, src, size, CPP_FILELINE)
 
#define bu_strlcpy(dst, src, size)   bu_strlcpym(dst, src, size, CPP_FILELINE)
 
#define bu_strdup(s)   bu_strdupm(s, CPP_FILELINE)
 
#define BU_STR_EMPTY(s)   (bu_strcmp((s), "") == 0)
 
#define BU_STR_EQUAL(s1, s2)   (bu_strcmp((s1), (s2)) == 0)
 
#define BU_STR_EQUIV(s1, s2)   (bu_strcasecmp((s1), (s2)) == 0)
 

Functions

size_t bu_strlcatm (char *dst, const char *src, size_t size, const char *label)
 
size_t bu_strlcpym (char *dst, const char *src, size_t size, const char *label)
 
char * bu_strdupm (const char *cp, const char *label)
 
int bu_strcmp (const char *string1, const char *string2)
 
int bu_strncmp (const char *string1, const char *string2, size_t n)
 
int bu_strcasecmp (const char *string1, const char *string2)
 
int bu_strncasecmp (const char *string1, const char *string2, size_t n)
 
char * bu_str_escape (const char *input, const char *expression, char *output, size_t size)
 These routines implement support for escaping and unescaping generalized strings that may represent filesystem paths, URLs, object lists, and more. More...
 
char * bu_str_unescape (const char *input, char *output, size_t size)
 
int bu_str_isprint (const char *cp)
 Routines for checking ctypes. More...
 
int bu_str_true (const char *str)
 routines for parsing boolean values from strings More...
 
int bu_str_false (const char *str)
 
size_t bu_argv_from_string (char *argv[], size_t lim, char *lp)
 Functions related to argv processing. More...
 
int bu_argv_from_tcl_list (const char *list_str, int *argc, const char ***argv)
 
void bu_argv_free (size_t argc, char *argv[])
 
void bu_free_args (size_t argc, char *argv[], const char *str)
 
char ** bu_argv_dup (size_t argc, const char *argv[])
 
char ** bu_argv_dupinsert (int insert, size_t insertArgc, const char *insertArgv[], size_t argc, const char *argv[])
 
size_t bu_editdist (const char *s1, const char *s2)