Misc function
Files
- misc.cpp (source code)
- misc.h (header)
This file contains everything, that was too small to have its own file. There are mostly just functions.
Functions
-
std::string filter_line(const char *)
This function just converts the given text from NUL-terminated c string to std::string, ommiting all /n's and /r's. The use of this function is simple: if you get some imput, it may contain or may not theese chars, witch are usually useless, when you have it already parsed into lines. I use it, when I'm sure, that I'm talking by a line socket with someone, that won't some non-text data.