diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2005-06-13 22:03:53 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2005-06-13 22:03:53 (GMT) |
commit | 7f2c1e434c0e629d0d851e047df42ce9ad71d860 (patch) | |
tree | fe1d60c677156f29632e17a943ddfda0568aeb6b /Source/kwsys/SystemTools.hxx.in | |
parent | 6037d1ae66f82bc650fba5ec2a53370199fac380 (diff) | |
download | CMake-7f2c1e434c0e629d0d851e047df42ce9ad71d860.zip CMake-7f2c1e434c0e629d0d851e047df42ce9ad71d860.tar.gz CMake-7f2c1e434c0e629d0d851e047df42ce9ad71d860.tar.bz2 |
ENH: add method to escape some chars in a string
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r-- | Source/kwsys/SystemTools.hxx.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in index ba57618..8f22165 100644 --- a/Source/kwsys/SystemTools.hxx.in +++ b/Source/kwsys/SystemTools.hxx.in @@ -220,6 +220,12 @@ public: */ static int EstimateFormatLength(const char *format, va_list ap); + /** + * Escape specific characters in 'str'. + */ + static kwsys_stl::string EscapeChars( + const char *str, const char *chars_to_escape, char escape_char = '\\'); + /** ----------------------------------------------------------------- * Filename Manipulation Routines * ----------------------------------------------------------------- |