↑ Software ↑

GEONius.com
30-Jun-2024
 E-mail 

str_util - String Manipulation Functions

These are a collection of string manipulation functions. Also, see the GET_UTIL functions.


Public Procedures

memdup2() - duplicates a memory block (2+ arguments; returns duplicate in argument).
memncpym() - copies a length-limited memory block to a sized buffer.
strdup2() - duplicates a string (2 arguments; returns duplicate in argument).
strncatm() - concatenates length-limited strings in a sized buffer.
strncpym() - copies a length-limited string to a sized buffer.
strndup2() - duplicates a length-limited string (2+ arguments; returns duplicate in argument).
strConvert() - scans a text string, converting "\<num>" sequences to the appropriate binary bytes.
strDesmart() - replaces smart characters in a string.
strDestring() - resolves quote-delimited elements in a string.
strDetab() - converts tabs in a string to blanks.
strDupCat() - duplicates the concatenation of multiple strings.
strEnv() - translates environment variable references in a string.
strEtoA() - converts a string of EBCDIC characters to ASCII.
strInsert() - inserts a substring in a string.
strMatch() - a string compare function that handles abbreviations.
strRemove() - removes a substring from a string.
strReplace() - replaces a substring in a string.
strTrim() - trims trailing tabs and spaces from a string.
strTrimNL() - trims trailing line endings from a string.
memdup() - duplicates a memory block.
stpcpy() - copies a string, points to the end.
strcasecmp() - compares two strings, ignoring case.
strcasestr() - finds a substring in a string, ignoring case.
strcspn() - skips characters not in a set of characters.
strdup() - duplicates a NUL-terminated string.
strlcat() - concatenates two strings, limited by length.
strlcpy() - copies a string, limited by length.
strlwr() - converts a string to all lower-case.
strncasecmp() - compares two strings for a specified length, ignoring case.
strncasestr() - finds a substring in a length-limited string, ignoring case.
strnchr() - finds the first occurrence of a character in a length-limited string.
strndup() - duplicates a string of a specified length.
strnlen() - determines the length of a fixed-size string.
strnlwr() - converts a length-limited string to all lower-case.
strnstr() - finds a substring in a length-limited string.
strnupr() - converts a length-limited string to all upper-case.
strrchr() - finds the last occurrence of a character in a string.
strspn() - skips characters in a set of characters.
strtok() - extracts tokens from a string.
strtok_r() - extracts tokens from a string (reentrant).
strupr() - converts a string to all upper-case.

Source Files

str_util.c
str_util.h

(See libgpl for the complete source, including support routines and build files.)


Alex Measday  /  E-mail