| T X T _ F I X Q U O T E S ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English INDEP - TXT_#?
----------------------------------------------------------------------------
NAME
txt_fixquotes() - Unescapes quotes in an array of args.
SYNOPSIS
txt_fixquotes(array, arlen, flags);
void txt_fixquotes(LONG **, LONG, LONG);
FUNCTION
Allows to unescape and/or rem. escaped quotes from NULL
terminated strings attached to the array of addresses.
INPUTS
array - Array of pointers to NULL terminated strings.
arlen - Length of the array expressed in LONGs (number
of elements).
flags - Prefixation type and removal control. Up to 3
prefixes can be specified.
RETURNS
No output.
BASES
None.
NOTES
Warning! This f. changes contents of the input strings!
It is possible to stuff own prefixes in flags argument
as first three bytes are designated to carry them.
This function should be used it two passes. In the first
pass you will be given number of actual arguments, so you
know how big array is required. In the second pass you
parse the string. It is wise to allocate the count + 1 so
you can NULL terminate it.
Escaped quotes are not unescaped! This routine handles 3
types of escaped quotes (double quotes specifically). The
Amiga syntax: *" - asterisk+quote, regular syntax: \" -
backslash+quote or: '" - single quote+quote.
SEE ALSO
txt_parseline()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |