cppannotations/annotations/icmake/cuteoln

10 lines
155 B
Text
Raw Normal View History

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