fix strlennocol/strdecolorize on unusual strings like "foo^";
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 25 Apr 2007 07:18:16 +0000 (07:18 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 25 Apr 2007 07:18:16 +0000 (07:18 +0000)
commite12d5b6c194a92ddd0a71cc8d854559130eb44a4
treecf1277557e969fad9eac823d19df02dc11c4d534
parent57d978aa0a0c0a2bf4e89e74760c5855b03b01c1
fix strlennocol/strdecolorize on unusual strings like "foo^";
now strlennocol returns the visible width (like before) and strdecolorize
returns a string that can be safely printed and that looks like the original,
just without the colors.

Moved decolorizing and counting to common.c.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7189 d7cf8633-e32d-0410-b094-e92efae38249
common.c
common.h
prvm_cmds.c