Changeset 7276 for code/branches/consolecommands3/src/libraries/core
- Timestamp:
- Aug 31, 2010, 1:00:20 AM (14 years ago)
- Location:
- code/branches/consolecommands3/src/libraries/core
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/CommandLineParser.h
r6021 r7276 64 64 Note the difference between "-" and "--"! 65 65 Also, there is no restriction to the number of strings you add after --name. 66 So "--startVector (2, 4, 5)" is perfectly legal.66 So "--startVector {2, 4, 5}" is perfectly legal. 67 67 68 68 Retrieving an argument is possible with the getCommandLineArgument function of the -
code/branches/consolecommands3/src/libraries/core/ConfigValueContainer.cc
r6536 r7276 302 302 bool ConfigValueContainer::callFunctionWithIndex(bool (ConfigValueContainer::* function) (unsigned int, const MultiType&), const std::string& input) 303 303 { 304 SubString token(input, " ", SubString::WhiteSpaces, true, '\\', false, '"', false, ' (', ')', false, '\0');304 SubString token(input, " ", SubString::WhiteSpaces, true, '\\', false, '"', false, '\0', '\0', false, '\0'); 305 305 int index = -1; 306 306 bool success = false; -
code/branches/consolecommands3/src/libraries/core/GraphicsManager.cc
r7236 r7276 293 293 boost::filesystem::path folder(ogrePluginsDirectory_); 294 294 // Do some SubString magic to get the comma separated list of plugins 295 SubString plugins(ogrePlugins_, ",", " ", false, '\\', false, '"', false, ' (', ')', false, '\0');295 SubString plugins(ogrePlugins_, ",", " ", false, '\\', false, '"', false, '{', '}', false, '\0'); 296 296 // Use backslash paths on Windows! file_string() already does that though. 297 297 for (unsigned int i = 0; i < plugins.size(); ++i) -
code/branches/consolecommands3/src/libraries/core/command/ArgumentCompletionFunctions.cc
r7236 r7276 147 147 ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_MULTI(hiddencommand)(const std::string& fragment) 148 148 { 149 SubString tokens(fragment, " ", SubString::WhiteSpaces, false, '\\', true, '"', true, ' (', ')', true, '\0');149 SubString tokens(fragment, " ", SubString::WhiteSpaces, false, '\\', true, '"', true, '{', '}', true, '\0'); 150 150 151 151 if (tokens.size() == 0) -
code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.cc
r7238 r7276 53 53 this->numberOfEvaluatedParams_ = 0; 54 54 55 this->tokens_.split(command, " ", SubString::WhiteSpaces, false, '\\', true, '"', true, ' (', ')', true, '\0');55 this->tokens_.split(command, " ", SubString::WhiteSpaces, false, '\\', true, '"', true, '{', '}', true, '\0'); 56 56 } 57 57 -
code/branches/consolecommands3/src/libraries/core/command/Executor.cc
r7274 r7276 59 59 MultiType Executor::parse(const std::string& arguments, int* error, const std::string& delimiter, bool bPrintError) const 60 60 { 61 return this->parse(SubString(arguments, delimiter, SubString::WhiteSpaces, false, '\\', true, '"', true, ' (', ')', true, '\0'), error, delimiter, bPrintError);61 return this->parse(SubString(arguments, delimiter, SubString::WhiteSpaces, false, '\\', true, '"', true, '{', '}', true, '\0'), error, delimiter, bPrintError); 62 62 } 63 63 -
code/branches/consolecommands3/src/libraries/core/input/Button.cc
r7230 r7276 117 117 // separate the commands 118 118 SubString commandStrings(bindingString_, "|", SubString::WhiteSpaces, false, 119 '\\', false, '"', false, ' (', ')', false, '\0');119 '\\', false, '"', false, '{', '}', false, '\0'); 120 120 121 121 for (unsigned int iCommand = 0; iCommand < commandStrings.size(); iCommand++) … … 124 124 { 125 125 SubString tokens(commandStrings[iCommand], " ", SubString::WhiteSpaces, false, 126 '\\', false, '"', false, ' (', ')', false, '\0');126 '\\', false, '"', false, '{', '}', false, '\0'); 127 127 128 128 KeybindMode::Value mode = KeybindMode::None;
Note: See TracChangeset
for help on using the changeset viewer.