#include <halcyon.h>
Public Member Functions | |
void | trimstringstart (string *) |
void | trimstringend (string *) |
void | trimstring (string *) |
void halcyon::trimstringstart | ( | string * | istr | ) |
Trim a string, generally used in reading data from config files. Remove the whitespace and quotation marks (single and double) from the start of a string.
istr | pointer to the string to be trimmed. |
void halcyon::trimstringend | ( | string * | istr | ) |
Trim a string, generally used in reading data from config files. Remove the whitespace and quotation marks (single and double) from the end of a string.
istr | pointer to the string to be trimmed. |
void halcyon::trimstring | ( | string * | istr | ) |
Short cut to call both trimstringstart() and trimstringend() to trim off the whitespace and quotation marks (both single and double) from the beginning and end of a string.