String Utilities

  #include <vv_sys.h>
   
void st_delch (UCHAR *stp, UINT location)

Deletes a character from a string

void st_delembwh (UCHAR *stp)

Deletes the embedded blanks in the string

void st_delendwh (UCHAR *stp)

Strips the trailing blanks from the string

int st_extract (UCHAR *dest_stp, UCHAR *src_stp, UINT location, UINT chq)

Extracts the sub-string from the source string

UINT st_frint (int int_value, UCHAR *stp)

Converts the integer into its string representation

UINT st_frlong (long long_value, UCHAR *stp)

Converts the long integer into its string representation

UNIT st_frshort (short short_value, UCHAR *stp)

Converts the short integer into its string representation

void st_ins (UCHAR *stp, UCHAR *dest_stp, UINT location)

Inserts the string into the destination at the specified location

void st_insch (UCHAR ch, int q, UCHAR *stp, UINT location)

Inserts the specified number of characters into the string at the specified location

int st_isblank (UCHAR *stp)

Checks if the string is blank

void st_lft (UCHAR *stp, UINT location, UINT posq)

Shifts the string left by the specified number of positions

void st_lftadj (UCHAR *stp)

Left justifies a string by removing its leading blanks

void st_padblank (UCHAR *stp, UINT len)

Pads the string with blanks to extend it to the specified length

int st_rd (FILE *filep, UCHAR *stp, int q, UCHAR break_ch, int tabq)

Reads a string from an ASCII file

UINT st_rev (UCHAR *stp)

Reverses the order of the characters in the string

void st_rt (UCHAR *stp, UINT location, UINT posq)

Shifts a string right by the specified number of positions

void st_rtadj (UCHAR *stp)

Right justifies a string by adding leading blanks, if necessary

void st_tolower (UCHAR *stp)

Converts each character in the string to lowercase

short st_toshort (UCHAR *stp)

Converts the string representation of a short integer into a short integer value

void st_toupper (UCHAR *stp)

Converts each character in the string to uppercase

int st_wr (FILE *filep, UCHAR *stp)

Writes a string to an ASCII file

UCHAR * stp_begtxt (UCHAR *stp)

Finds the first non-blank character in the string

UCHAR * stp_endtxt (UCHAR *stp)

Finds the last non-blank character in the string

UCHAR * stp_find (UCHAR *stp, UCHAR *sub_stp)

Searches for the sub-string within the string



Home Contents Previous Next