#ifndef SHARED_TOOLBOX_HELPERS_H #define SHARED_TOOLBOX_HELPERS_H #include namespace Shared { namespace ToolboxHelpers { int CursorIndexInCommandText(const char * text); /* Returns the index of the cursor position in a command, which is the smallest * index between : * - After the first open parenthesis * - The end of the text */ void TextToInsertForCommandMessage(I18n::Message message, char * buffer, int bufferSize, bool replaceArgsWithEmptyChar = false); void TextToInsertForCommandText(const char * command, char * buffer, int bufferSize, bool replaceArgsWithEmptyChar = false); /* Removes the arguments from a command: * - Removes text between parentheses or brackets, except commas */ } } #endif