[cmake-developers] [PATCH 1/3] Add SystemTools::TrimWhitespace function

Brad King brad.king at kitware.com
Sun Nov 13 13:04:24 EST 2011


On 11/11/2011 9:36 PM, Peter Collingbourne wrote:
> ---
>   Source/kwsys/SystemTools.cxx    |   15 +++++++++++++++
>   Source/kwsys/SystemTools.hxx.in |    5 +++++
>   2 files changed, 20 insertions(+), 0 deletions(-)
>
> diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
> index 1bf19c0..c14eb38 100644
> --- a/Source/kwsys/SystemTools.cxx
> +++ b/Source/kwsys/SystemTools.cxx
> @@ -1195,6 +1195,21 @@ kwsys_stl::string SystemTools::UpperCase(const kwsys_stl::string&  s)
>     return n;
>   }
>
> +// Returns a string that has whitespace removed from the start and the end.
> +kwsys_stl::string SystemTools::TrimWhitespace(const kwsys_stl::string&  s)

Please add this to Source/cmSystemTools instead.

Thanks,
-Brad



More information about the cmake-developers mailing list