Files
Upsilon/apps/shared/toolbox_helpers.h
Léa Saviot 13bf8c2d62 [code] Python toolbox.
Change-Id: I4028b05c662cae04a5ac3af5021f3438bb22dcd0
2017-11-17 11:59:50 +01:00

26 lines
625 B
C++

#ifndef SHARED_TOOLBOX_HELPERS_H
#define SHARED_TOOLBOX_HELPERS_H
#include <escher/i18n.h>
namespace Shared {
namespace ToolboxHelpers {
int CursorIndexInCommand(const char * text);
/* Returns the index of the cursor position in a Command, which is the smallest
* index between :
* - After the first open parenthesis
* - Before the first point
* - The end of the text */
void TextToInsertForCommandMessage(I18n::Message message, char * buffer);
/* Removes the arguments from a command message in two ways:
* - Removes text between parentheses, except commas
* - Removes text before a point */
}
}
#endif