summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* ClearMatches: Only clear matches which were actually setBen Boeckel2014-04-291-38/+6
| | | | | | | ClearMatches was clearing many variables which were never set in the first place. Instead, store how many matches were made last time and only clear those. It is moved to the cmMakefile class since it is a common utility used by multiple commands.
* cmStringCommand: Add GENEX_STRIP subcommand.Stephen Kelly2014-03-311-0/+25
| | | | Strip out any generator expressions in the input string.
* Remove some c_str() calls.Stephen Kelly2014-03-111-38/+38
| | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* string: Add CONCAT sub-commandBrad King2013-10-211-0/+25
| | | | | | Add a string(CONCAT) command to simply concatenate input arguments together. This will be useful for combining strings from different quoting syntaxes. Add a RunCMake.string test covering these cases.
* Do not set CMAKE_MATCH_ variables when not neeededBill Hoffman2013-06-141-6/+14
| | | | | | | | | Each call to AddDefinition has overhead for variable watches and such. Avoid extra calls when not needed. This decreases the configure time for ParaView by 10 seconds on my machine. Without the change about 1,000,000 set-to-empty calls were being made. After the change it drops to about 100,000.
* string: Add MAKE_C_IDENTIFIER subcommandStephen Kelly2013-05-211-0/+22
|
* CMake: Fix dashboard warningsDavid Cole2012-12-051-1/+1
| | | | ...in the new file and string TIMESTAMP sub-commands
* CMake: Add TIMESTAMP subcommand to string and file commandsNils Gladitz2012-12-051-0/+54
|
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-36/+36
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Disable file() and string() hash commands during bootstrapBrad King2011-11-161-0/+7
| | | | | We do not compile support for the cryptographic hashes during bootstrap. Disable the APIs that use them.
* Add string(MD5) and string(SHA*) commands to compute hashesBrad King2011-11-161-0/+32
| | | | | Provide a CMake-language binding to these cryptographic hashes. Add a string() command API for MD5, SHA1, SHA224, SHA256, SHA384, and SHA512.
* CMake: Update documentation of STRING(SUBSTRING) for length -1 (#10740)Rolf Eike Beer2011-05-271-1/+1
|
* Fix forced-seed argument type in string(RANDOM)Brad King2011-05-231-2/+2
| | | | | | | | | Clang points out that local variable 'seed' needs to be "unsigned int": Source/cmStringCommand.cxx:828:21: warning: operands of ? are integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] srand(force_seed? seed : cmSystemTools::RandomSeed()); ^ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Improve string(RANDOM) default seedBrad King2011-05-171-2/+2
| | | | | | The naive time(0) seed is unique only within one second. Instead try to read a real source of entropy and otherwise fall back to a combination of the process id and high-resolution time.
* Avoid direct use of std::stringstreamBrad King2011-02-171-1/+1
| | | | | In method cmStringCommand::HandleFindCommand added by parent commit use the cmOStringStream compatibility wrapper instead of std::stringstream.
* Add a string(FIND) sub-command (#11795)Tim Hütz2011-02-151-1/+67
|
* Merge branch 'dev/add_test-working-directory' into dev/strict-modeBrad King2011-01-271-1/+1
|\ | | | | | | | | Conflicts: Tests/CMakeLists.txt
| * allow STRING(SUBSTRING) work with length -1 as "rest of the string"Rolf Eike Beer2010-12-081-1/+1
| | | | | | | | This fixes the first half of bug 10740.
* | Ignore CMAKE_MATCH_* variables for usageBen Boeckel2010-09-151-0/+2
|/
* Fix or cast integer conversions in cmakeBrad King2010-06-251-1/+1
| | | | | These were revealed by GCC's -Wconversion option. Fix types where it is easy to do so. Cast in cases we know the integer will not be truncated.
* Fix issue #9851 - only seed the random number generator on the first call to ↵David Cole2009-11-061-1/+16
| | | | STRING(RANDOM or if given the new RANDOM_SEED argument. Add test and documentation of new argument.
* Correct some typos in error messages in the string command. Add a test that ↵David Cole2009-10-021-4/+4
| | | | covers more of the code implemented in cmStringCommand.cxx, especially the error handlers.
* Fix warnings in CMake source code. Suppress warnings in Lexer and Parser ↵David Cole2009-09-301-1/+1
| | | | files that are 'too hard' to fix.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* BUG: Correct typo in error message.David Cole2008-08-261-1/+1
|
* ENH: add return and break support to cmake, also change basic command ↵Ken Martin2008-01-231-1/+2
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* BUG: fix STRING(STRIP ...) if no non-space is contained in the input string,Alexander Neundorf2007-12-161-2/+14
| | | | | | this should fix the dashboard Alex
* ENH: also store the group matches from IF( MATCHES) in CMAKE_MATCH_(0..9)Alexander Neundorf2007-08-291-10/+10
| | | | Alex
* ENH: store the matches for paren-delimited subexpression inAlexander Neundorf2007-08-211-0/+28
| | | | | | | CMAKE_MATCH_[0..9] variables, so to get multiple subexpressions from one string STRING(REGEX MATCH) has to be executed only once Alex
* ENH: Add STRING STRIP commandAndy Cedilnik2007-04-271-0/+41
|
* COMP: Added missing include for time.Brad King2007-04-231-0/+2
|
* ENH: Add command to generate random stringsKen Martin2007-04-231-0/+72
|
* STYLE: fix line lengthKen Martin2006-05-121-1/+2
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-13/+13
|
* STYLE: fix line lengthsBill Hoffman2006-03-101-16/+35
|
* BUG: end is not really end, but rather lengthBill Hoffman2005-10-201-1/+1
|
* COMP: Remove warningAndy Cedilnik2005-10-181-1/+1
|
* ENH: Add rudamentary mathematical expression supportAndy Cedilnik2005-10-171-1/+1
|
* ENH: Add String length and substringAndy Cedilnik2005-10-171-0/+64
|
* ENH: Add regular string replace (not regex), and relative path command. Also ↵Andy Cedilnik2005-10-171-0/+30
| | | | add tests
* ENH: Added STRING(CONFIGURE ...) command.Brad King2004-03-041-0/+51
|
* BUG#452: Fix to argument checking for TOUPPER and TOLOWER subcommands.Brad King2003-12-291-2/+2
|
* ERR: Remove unused variableAndy Cedilnik2003-07-101-2/+0
|
* ENH: Add upper and lower case support. Close Bug #79 - STRING TOUPPER and ↵Andy Cedilnik2003-07-101-1/+39
| | | | TOLOWER
* ENH: Merged use of the kwsys RegularExpression class instead of ↵Brad King2003-06-231-3/+5
| | | | cmRegularExpression.
* ENH: add some includes for borland 6Bill Hoffman2003-05-231-1/+1
|
* Add a way to convert ascii to stringAndy Cedilnik2003-01-011-1/+37
|
* ENH: Added COMPARE modes to STRING command.Brad King2002-12-041-0/+60
|
* fix compile warningKen Martin2002-12-021-3/+3
|
* ERR: Fixed signed/unsigned warnings.Brad King2002-11-071-5/+5
|