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

Peter Collingbourne peter at pcc.me.uk
Tue Nov 22 14:49:38 EST 2011


On Sun, Nov 13, 2011 at 01:04:24PM -0500, Brad King wrote:
> 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.

Will do.

Thanks,
-- 
Peter



More information about the cmake-developers mailing list