/*
 * FreeAdhocUDF - copyright (c) 2004 adhoc dataservice GmbH Peter Mandrella
 * based on FreeUDFLibC - copyright (c) 1999 Gregory Deatz
 * altered 2001 by ADITO Software GmbH Robert Loipfinger
 *
 *  rl = added by / (c) 2000 Robert Loipfinger
 *  pm = added by Peter Mandrella
 *
 *   string_functions.h
 *     String routines declarations:
 *       character - return the character based on the passed integer code.
 *       crlf - return the carriage-return string
 *       encryptmd5 - hash the passed string using the md5 algorithm
 *       left - return the leftmost <n> characters of a string
 *       linewrap - based on lines <n> characters long, return the ith line
 *       ltrim - trim whitespace from the left side of the string
 *       lrtrim - trim whitespace from both sides of the string
 *       mid - return a substring of a string
 *       padleft - pad the left side of a string with some other string
 *       padright - pad the right side of a string with some other string
 *       propercase - proper case the passed string (every word capitalized)
 *       replace - replace character <a> with character <b> in the string
 *       right - return the rightmost <n> characters of a string
 *       rtrim - Trim the right side of a string of whitespace
 *       stringlength - How long is this string?
 *       stripstring - Strip a string of unwanted characters
 *  rl   stripstringhold - strips a string, hold the characters given
 *       substr - Find a substring within a string
 *       soundex - return the soundex of a string
 *  rl   gsoundex - return the soundex of a string (german)
 *  rl   lower - return the lowercase of a string
 *  rl   upper - return the uppercase of a string
 *  rl   telefonnr - returns the telephone number in a string
 *  rl   aif - if a, <>=, b, then, else
 *  rl   strcopy - returns <n> characters of the string, starting at <index>
 *  rl   strrm - deletes a character in a string
  */


char * character PROTO_LIST ((int *));
char * crlf PROTO_LIST (());
char * encryptmd5 PROTO_LIST ((char *));
char * left PROTO_LIST ((char *, int *));
char * linewrap PROTO_LIST ((char *, int *, int *));
char * ltrim PROTO_LIST ((char *));
char * lrtrim PROTO_LIST ((char *));
char * mid PROTO_LIST ((char *, int *, int *));
char * padleft PROTO_LIST ((char *, char *, int *));
char * padright PROTO_LIST ((char *, char *, int *));
char * propercase PROTO_LIST ((char *));
char * replace PROTO_LIST ((char *, char *, char *));
char * right PROTO_LIST ((char *, int *));
char * rtrim PROTO_LIST ((char *));
char * soundex PROTO_LIST ((char *));
char * gsoundex PROTO_LIST ((char *));
int stringlength PROTO_LIST ((char *));
char * stripstring PROTO_LIST ((char *, char *));
char * stripstringhold PROTO_LIST ((char *, char *));
int substr PROTO_LIST ((char *, char *));
char * lower PROTO_LIST ((char *));
char * upper PROTO_LIST ((char *));
char * telefonnr PROTO_LIST ((char *, int *));
char * aif PROTO_LIST ((char *, char *, char *, char *, char *));
char * strcopy PROTO_LIST ((char *, int *, int *));
char * strrm PROTO_LIST ((char *, int *));

// internal functions
int find_char PROTO_LIST ((char, char *));

