cppannotations/annotations/icmake/cuteoln
2015-09-05 16:01:43 +02:00

9 lines
155 B
Text

string cutEoln(string text)
{
int len;
len = strlen(text) - 1;
if (text[len] == "\n")
text = substr(text, 0, len);
return text;
}