diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-07-25 16:08:05 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-07-25 16:08:05 (GMT) |
commit | b379666b395622384e95d4eb39c59da6d40cd398 (patch) | |
tree | 72bcef9eed7605b7542ef526dda66f400b7dbf3c /Source/kwsys/SystemTools.cxx | |
parent | c3412def5d4456291eb2afad0404d984e2d32fa5 (diff) | |
download | CMake-b379666b395622384e95d4eb39c59da6d40cd398.zip CMake-b379666b395622384e95d4eb39c59da6d40cd398.tar.gz CMake-b379666b395622384e95d4eb39c59da6d40cd398.tar.bz2 |
BUG: some bug fixes, better docs, and more coverage
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 172ce49..291024e 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -886,6 +886,7 @@ kwsys_stl::string SystemTools::UnCapitalizedWords(const kwsys_stl::string& s) return n; } +// only works for words with at least two letters kwsys_stl::string SystemTools::AddSpaceBetweenCapitalizedWords( const kwsys_stl::string& s) { @@ -1035,7 +1036,7 @@ char* SystemTools::RemoveCharsButUpperHex(const char* str) char *ptr = clean_str; while (*str) { - if ((*str >= '0' && *str <= '9') || (*str >= 'A' && *str <= 'H')) + if ((*str >= '0' && *str <= '9') || (*str >= 'A' && *str <= 'F')) { *ptr++ = *str; } |