mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
The cursor now goes either after the first open parenthesis or at the end of the command. Fixed z.real and z.imag. Change-Id: I46ca3be0415832fd91273ca7fed12ed3d6f125dc
24 lines
549 B
C++
24 lines
549 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
|
|
* - The end of the text */
|
|
|
|
|
|
void TextToInsertForCommandMessage(I18n::Message message, char * buffer);
|
|
/* Removes the arguments from a command message:
|
|
* - Removes text between parentheses, except commas */
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|