@@ -454,6 +454,31 @@ temp_vstring left(const char *sin, long n);
454
454
* \bug a stack overflow of \a tempAllocStack is not handled correctly.
455
455
*/
456
456
temp_vstring right (const char * sin , long n );
457
+ /*!
458
+ * \fn temp_vstring edit(const char *sin, long control)
459
+ * perform a combination of transformations on \p sin based on the set bits in
460
+ * \p control.
461
+ * Bit Effect
462
+ * 1 Clear parity bits
463
+ * 2 Discard all spaces and tabs
464
+ * 4 Discard characters: CR, LF, FF, ESC, RUBOUT, and NULL
465
+ * 8 Discard leading spaces and tabs
466
+ * 16 Reduce spaces and tabs to one space
467
+ * 32 Convert lowercase to uppercase
468
+ * 64 Convert [ to ( and ] to )
469
+ * 128 Discard trailing spaces and tabs
470
+ * 256 Do not alter characters inside quotes
471
+ * 512 Convert uppercase to lowercase
472
+ * 1024 Tab the line (convert spaces to equivalent tabs)
473
+ * 2048 Untab the line (convert tabs to equivalent spaces)
474
+ * 4096 Convert VT220 screen print frame graphics to -,|,+ characters
475
+ * 8192 Discard CR only (to assist DOS-to-Unix conversion)
476
+ * 16384 Discard trailing spaces, tabs, and LFs
477
+ * \param[in] sin (not null) NUL terminated string to convert
478
+ * \param[in] control a combination of set bit requesting the desired
479
+ * transformation(s)
480
+ * \return the transformed \p sin ready for pushing on \ref tempAllocStack.
481
+ */
457
482
temp_vstring edit (const char * sin , long control );
458
483
/*!
459
484
* \fn temp_vstring space(long n)
0 commit comments