home *** CD-ROM | disk | FTP | other *** search
- Routine : FNstrip_trailing(string$,char$)
- Library : StringLib
- Purpose : Strips any number of the specified
- character from the right hand end of
- the given string.
- Source : User
- Author : Paul Hobbs
- Parameters:
- string$ = the string to operate on
- char$ = the character to strip off
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- None
- Routine : FNstrip_leading(string$,char$)
- Library : StringLib
- Purpose : Strips any number of the specified
- character from the left hand end of
- the given string.
- Source : User
- Author : Paul Hobbs
- Parameters:
- string$ = the string to operate on
- char$ = the character to strip off
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- None
- Routine : FNpad_trailing(string$,char$,
- length%)
- Library : StringLib
- Purpose : Pads the right hand end of the given
- string with the character specified to
- the required length.
- Source : User
- Author : Paul Hobbs
- Parameters:
- string$ = the string to operate on
- char$ = the character to use to pad the
- string
- length% = the length of the resultant string
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- None
- Routine : FNpad_leading(string$,char$,
- length%)
- Library : StringLib
- Purpose : Pads the left hand end of the given
- string with the character specified to
- the required length.
- Source : User
- Author : Paul Hobbs
- Parameters:
- string$ = the string to operate on
- char$ = the character to use to pad the
- string
- length% = the length of the resultant string
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- None
- Routine : FNupper_case(string$)
- Library : StringLib
- Purpose : Converts the specified string to
- upper case.
- Source : User
- Author : Paul Hobbs
- Parameters:
- string$ = the string to operate on
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- None
- Routine : FNlongest(array$(),nr%)
- Library : StringLib
- Purpose : Returns the length of the longest
- element of the specified string array.
- Source : User
- Author : Paul Hobbs
- Parameters:
- array$() = the string array to operate on
- nr% = the highest numbered element of the
- array to consider
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- None
- Routine : FNmem_to_string(block%,offset%,
- term%)
- Library : StringLib
- Purpose : Reads a string from a block of memory
- terminated by the character term%.
- Source : User
- Author : Paul Hobbs
- Parameters:
- block% = the start address of the
- memory block
- offset% = the pointer offset within the
- block
- term% = the ASCII code of the terminating
- character
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- The routine returns a string which has been
- extracted from the memory block + the pointer
- offset terminated by the term% character. Note
- that in the main program it may be necessary to
- update the pointer position with ptr% +=
- LEN(string$)+1 if the routine is used
- repeatedly.
- Routine : FNstring_exchange(string$,target$,
- sub$)
- Library : StringLib
- Purpose : Searches the string and replaces any
- occurrence of target$ with sub$
- Source : User
- Author : Paul Hobbs
- Parameters:
- string$ = the string to operate on
- target$ = the string to be replaced
- sub$ = the replacing string
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- The target and replacing strings do not have to
- be the same length - but no check is made to
- see if a string would be created which is
- longer than 255 characters. The case of the
- target string is taken into consideration when
- matching. If the target string is not found
- then no action is taken.
- Routine : FNstrip_all(string$,char$)
- Library : StringLib
- Purpose : Strips any number of the specified
- character from anywhere within the
- given string
- Source : User
- Author : Paul Hobbs
- Parameters:
- string$ = the string to operate on
- char$ = the character to strip off
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- None
-