Add string utility functions for suffix handling.
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 14 Jun 2012 04:27:13 +0000 (07:27 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 20 Jun 2012 17:52:53 +0000 (20:52 +0300)
commitbe86c0ec9c246dcd1fc59ad11ebc3223c9234273
treed94b1a0c06f7d28a1f123123180ec51b1e795591
parentee1ee0c17521d1f70c660c5502881febf3b38e3b
Add string utility functions for suffix handling.

Added endsWith() and stripSuffixIfPresent() functions to stringutil.h.
Allows for much clearer and easier-to-write string manipulation code
where this kind of functionality is needed.

Change-Id: I853234ce3d8a11b88ee50225a66e061302e10de7
src/gromacs/utility/programinfo.cpp
src/gromacs/utility/stringutil.cpp
src/gromacs/utility/stringutil.h
src/gromacs/utility/tests/stringutil.cpp