mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
string: Add MAKE_C_IDENTIFIER subcommand
This commit is contained in:
@@ -94,6 +94,7 @@ public:
|
||||
" [RANDOM_SEED <seed>] <output variable>)\n"
|
||||
" string(FIND <string> <substring> <output variable> [REVERSE])\n"
|
||||
" string(TIMESTAMP <output variable> [<format string>] [UTC])\n"
|
||||
" string(MAKE_C_IDENTIFIER <input string> <output variable>)\n"
|
||||
"REGEX MATCH will match the regular expression once and store the "
|
||||
"match in the output variable.\n"
|
||||
"REGEX MATCHALL will match the regular expression as many times as "
|
||||
@@ -176,7 +177,9 @@ public:
|
||||
"and copied to the output as-is.\n"
|
||||
"If no explicit <format string> is given it will default to:\n"
|
||||
" %Y-%m-%dT%H:%M:%S for local time.\n"
|
||||
" %Y-%m-%dT%H:%M:%SZ for UTC.";
|
||||
" %Y-%m-%dT%H:%M:%SZ for UTC.\n"
|
||||
"MAKE_C_IDENTIFIER will write a string which can be used as an "
|
||||
"identifier in C.";
|
||||
}
|
||||
|
||||
cmTypeMacro(cmStringCommand, cmCommand);
|
||||
@@ -200,6 +203,7 @@ protected:
|
||||
bool HandleRandomCommand(std::vector<std::string> const& args);
|
||||
bool HandleFindCommand(std::vector<std::string> const& args);
|
||||
bool HandleTimestampCommand(std::vector<std::string> const& args);
|
||||
bool HandleMakeCIdentifierCommand(std::vector<std::string> const& args);
|
||||
|
||||
class RegexReplacement
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user