Bugzilla – Bug 1919
Strip trailing semi-colons from mobility trace files
Last modified: 2014-06-06 17:34:20 EDT
I propose the following simple patch for src/mobility/helper/ns2-mobilty-helper.cc 510c510,511 < while (ret.size () > 0 && isblank (ret[ret.size () - 1])) --- > // trim trailing blanks or semi-colon (;) > while (ret.size () > 0 && (isblank (ret[ret.size () - 1]) || (ret[ret.size () - 1] == ';'))) Issue: In VANET simulation using realistic vehicular traces (http://www.lst.inf.ethz.ch/research/ad-hoc/car-traces/), it is noted that some of the prepared trace files contain a semi-colon (;) at the end of the line, which the ns2-mobility-helper was not trimming. We simply extend the existing logic to trim trailing spaces OR trailing semi-colon.
changeset 10802 779b67cc3a46