PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
int stringbuffer_trim_trailing_zeroes | ( | stringbuffer_t * | s | ) |
Trims zeroes off the end of the last number in the stringbuffer.
The number has to be the very last thing in the buffer. Only the last number will be trimmed. Returns the number of characters trimmed.
eg: 1.22000 -> 1.22 1.0 -> 1 0.0 -> 0
Definition at line 304 of file stringbuffer.c.
References stringbuffer_t::str_end, and stringbuffer_t::str_start.
Referenced by ptarray_to_kml2_sb().