Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
string.h File Reference
#include "salad/types.h"

Go to the source code of this file.

Functions

char * sld_string_allocate (char *string)
 Allocates enough memory to store the specified string. You can then call strcpy() using the returned heap space as a destination. More...
 
char * sld_string_chomp (char *string)
 Removes trailing "\r\n" characters on a passed string. More...
 
char * sld_string_chop (char *string)
 Removes trailing "\r\n" characters on a passed string or the last character if "\r\n" does not exist. More...
 
char * sld_string_trim_leading (char *string)
 Removes leading whitespace from the passed string. More...
 
char * sld_string_trim_trailing (char *string)
 Removes trailing whitespace from the passed string. More...
 
char * sld_string_trim (char *string)
 Removes leading and trailing whitespace from the passed string. More...
 
SLD_BOOL sld_string_contains_character (char *string, char character)
 Checks whether or not a string contains a specified character. More...
 
char * sld_string_capitalize (char *string)
 Capitalizes the specified string. More...
 
char * sld_string_uncapitalize (char *string)
 Uncapitalizes the specified string. More...
 
SLD_BOOL sld_string_casecmp (char *string1, char *string2)
 Compares two strings for equality regardless of capitalization. More...
 
char * sld_string_multiply (char *string, int factor, char separator)
 Multiplies a passed string by the specified factor and separated by the specified character. More...
 
char * sld_string_reverse (char *string)
 Reverses the passed string. More...