You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

replxx.h 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. /* linenoise.h -- guerrilla line editing library against the idea that a
  2. * line editing lib needs to be 20,000 lines of C code.
  3. *
  4. * See linenoise.c for more information.
  5. *
  6. * Copyright (c) 2010, Salvatore Sanfilippo <antirez at gmail dot com>
  7. * Copyright (c) 2010, Pieter Noordhuis <pcnoordhuis at gmail dot com>
  8. *
  9. * All rights reserved.
  10. *
  11. * Redistribution and use in source and binary forms, with or without
  12. * modification, are permitted provided that the following conditions are met:
  13. *
  14. * * Redistributions of source code must retain the above copyright notice,
  15. * this list of conditions and the following disclaimer.
  16. * * Redistributions in binary form must reproduce the above copyright
  17. * notice, this list of conditions and the following disclaimer in the
  18. * documentation and/or other materials provided with the distribution.
  19. * * Neither the name of Redis nor the names of its contributors may be used
  20. * to endorse or promote products derived from this software without
  21. * specific prior written permission.
  22. *
  23. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  24. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  25. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  26. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  27. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  28. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  29. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  30. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  31. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  32. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  33. * POSSIBILITY OF SUCH DAMAGE.
  34. */
  35. #ifndef __REPLXX_H
  36. #define __REPLXX_H
  37. #define REPLXX_VERSION "0.0.2"
  38. #define REPLXX_VERSION_MAJOR 0
  39. #define REPLXX_VERSION_MINOR 0
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. /*
  44. * For use in Windows DLLs:
  45. *
  46. * If you are building replxx into a DLL,
  47. * unless you are using supplied CMake based build,
  48. * ensure that 'REPLXX_BUILDING_DLL' is defined when
  49. * building the DLL so that proper symbols are exported.
  50. */
  51. #if defined( _WIN32 ) && ! defined( REPLXX_STATIC )
  52. # ifdef REPLXX_BUILDING_DLL
  53. # define REPLXX_IMPEXP __declspec( dllexport )
  54. # else
  55. # define REPLXX_IMPEXP __declspec( dllimport )
  56. # endif
  57. #else
  58. # define REPLXX_IMPEXP /**/
  59. #endif
  60. /*! \brief Color definitions to use in highlighter callbacks.
  61. */
  62. typedef enum {
  63. REPLXX_COLOR_BLACK = 0,
  64. REPLXX_COLOR_RED = 1,
  65. REPLXX_COLOR_GREEN = 2,
  66. REPLXX_COLOR_BROWN = 3,
  67. REPLXX_COLOR_BLUE = 4,
  68. REPLXX_COLOR_MAGENTA = 5,
  69. REPLXX_COLOR_CYAN = 6,
  70. REPLXX_COLOR_LIGHTGRAY = 7,
  71. REPLXX_COLOR_GRAY = 8,
  72. REPLXX_COLOR_BRIGHTRED = 9,
  73. REPLXX_COLOR_BRIGHTGREEN = 10,
  74. REPLXX_COLOR_YELLOW = 11,
  75. REPLXX_COLOR_BRIGHTBLUE = 12,
  76. REPLXX_COLOR_BRIGHTMAGENTA = 13,
  77. REPLXX_COLOR_BRIGHTCYAN = 14,
  78. REPLXX_COLOR_WHITE = 15,
  79. REPLXX_COLOR_NORMAL = REPLXX_COLOR_LIGHTGRAY,
  80. REPLXX_COLOR_DEFAULT = -1,
  81. REPLXX_COLOR_ERROR = -2
  82. } ReplxxColor;
  83. enum { REPLXX_KEY_BASE = 0x0010ffff + 1 };
  84. enum { REPLXX_KEY_BASE_SHIFT = 0x01000000 };
  85. enum { REPLXX_KEY_BASE_CONTROL = 0x02000000 };
  86. enum { REPLXX_KEY_BASE_META = 0x04000000 };
  87. enum { REPLXX_KEY_ESCAPE = 27 };
  88. enum { REPLXX_KEY_PAGE_UP = REPLXX_KEY_BASE + 1 };
  89. enum { REPLXX_KEY_PAGE_DOWN = REPLXX_KEY_PAGE_UP + 1 };
  90. enum { REPLXX_KEY_DOWN = REPLXX_KEY_PAGE_DOWN + 1 };
  91. enum { REPLXX_KEY_UP = REPLXX_KEY_DOWN + 1 };
  92. enum { REPLXX_KEY_LEFT = REPLXX_KEY_UP + 1 };
  93. enum { REPLXX_KEY_RIGHT = REPLXX_KEY_LEFT + 1 };
  94. enum { REPLXX_KEY_HOME = REPLXX_KEY_RIGHT + 1 };
  95. enum { REPLXX_KEY_END = REPLXX_KEY_HOME + 1 };
  96. enum { REPLXX_KEY_DELETE = REPLXX_KEY_END + 1 };
  97. enum { REPLXX_KEY_INSERT = REPLXX_KEY_DELETE + 1 };
  98. enum { REPLXX_KEY_F1 = REPLXX_KEY_INSERT + 1 };
  99. enum { REPLXX_KEY_F2 = REPLXX_KEY_F1 + 1 };
  100. enum { REPLXX_KEY_F3 = REPLXX_KEY_F2 + 1 };
  101. enum { REPLXX_KEY_F4 = REPLXX_KEY_F3 + 1 };
  102. enum { REPLXX_KEY_F5 = REPLXX_KEY_F4 + 1 };
  103. enum { REPLXX_KEY_F6 = REPLXX_KEY_F5 + 1 };
  104. enum { REPLXX_KEY_F7 = REPLXX_KEY_F6 + 1 };
  105. enum { REPLXX_KEY_F8 = REPLXX_KEY_F7 + 1 };
  106. enum { REPLXX_KEY_F9 = REPLXX_KEY_F8 + 1 };
  107. enum { REPLXX_KEY_F10 = REPLXX_KEY_F9 + 1 };
  108. enum { REPLXX_KEY_F11 = REPLXX_KEY_F10 + 1 };
  109. enum { REPLXX_KEY_F12 = REPLXX_KEY_F11 + 1 };
  110. enum { REPLXX_KEY_F13 = REPLXX_KEY_F12 + 1 };
  111. enum { REPLXX_KEY_F14 = REPLXX_KEY_F13 + 1 };
  112. enum { REPLXX_KEY_F15 = REPLXX_KEY_F14 + 1 };
  113. enum { REPLXX_KEY_F16 = REPLXX_KEY_F15 + 1 };
  114. enum { REPLXX_KEY_F17 = REPLXX_KEY_F16 + 1 };
  115. enum { REPLXX_KEY_F18 = REPLXX_KEY_F17 + 1 };
  116. enum { REPLXX_KEY_F19 = REPLXX_KEY_F18 + 1 };
  117. enum { REPLXX_KEY_F20 = REPLXX_KEY_F19 + 1 };
  118. enum { REPLXX_KEY_F21 = REPLXX_KEY_F20 + 1 };
  119. enum { REPLXX_KEY_F22 = REPLXX_KEY_F21 + 1 };
  120. enum { REPLXX_KEY_F23 = REPLXX_KEY_F22 + 1 };
  121. enum { REPLXX_KEY_F24 = REPLXX_KEY_F23 + 1 };
  122. enum { REPLXX_KEY_MOUSE = REPLXX_KEY_F24 + 1 };
  123. #define REPLXX_KEY_SHIFT( key ) ( ( key ) | REPLXX_KEY_BASE_SHIFT )
  124. #define REPLXX_KEY_CONTROL( key ) ( ( key ) | REPLXX_KEY_BASE_CONTROL )
  125. #define REPLXX_KEY_META( key ) ( ( key ) | REPLXX_KEY_BASE_META )
  126. enum { REPLXX_KEY_BACKSPACE = REPLXX_KEY_CONTROL( 'H' ) };
  127. enum { REPLXX_KEY_TAB = REPLXX_KEY_CONTROL( 'I' ) };
  128. enum { REPLXX_KEY_ENTER = REPLXX_KEY_CONTROL( 'M' ) };
  129. /*! \brief List of built-in actions that act upon user input.
  130. */
  131. typedef enum {
  132. REPLXX_ACTION_INSERT_CHARACTER,
  133. REPLXX_ACTION_DELETE_CHARACTER_UNDER_CURSOR,
  134. REPLXX_ACTION_DELETE_CHARACTER_LEFT_OF_CURSOR,
  135. REPLXX_ACTION_KILL_TO_END_OF_LINE,
  136. REPLXX_ACTION_KILL_TO_BEGINING_OF_LINE,
  137. REPLXX_ACTION_KILL_TO_END_OF_WORD,
  138. REPLXX_ACTION_KILL_TO_BEGINING_OF_WORD,
  139. REPLXX_ACTION_KILL_TO_WHITESPACE_ON_LEFT,
  140. REPLXX_ACTION_YANK,
  141. REPLXX_ACTION_YANK_CYCLE,
  142. REPLXX_ACTION_MOVE_CURSOR_TO_BEGINING_OF_LINE,
  143. REPLXX_ACTION_MOVE_CURSOR_TO_END_OF_LINE,
  144. REPLXX_ACTION_MOVE_CURSOR_ONE_WORD_LEFT,
  145. REPLXX_ACTION_MOVE_CURSOR_ONE_WORD_RIGHT,
  146. REPLXX_ACTION_MOVE_CURSOR_LEFT,
  147. REPLXX_ACTION_MOVE_CURSOR_RIGHT,
  148. REPLXX_ACTION_HISTORY_NEXT,
  149. REPLXX_ACTION_HISTORY_PREVIOUS,
  150. REPLXX_ACTION_HISTORY_FIRST,
  151. REPLXX_ACTION_HISTORY_LAST,
  152. REPLXX_ACTION_HISTORY_INCREMENTAL_SEARCH,
  153. REPLXX_ACTION_HISTORY_COMMON_PREFIX_SEARCH,
  154. REPLXX_ACTION_HINT_NEXT,
  155. REPLXX_ACTION_HINT_PREVIOUS,
  156. REPLXX_ACTION_CAPITALIZE_WORD,
  157. REPLXX_ACTION_LOWERCASE_WORD,
  158. REPLXX_ACTION_UPPERCASE_WORD,
  159. REPLXX_ACTION_TRANSPOSE_CHARACTERS,
  160. REPLXX_ACTION_TOGGLE_OVERWRITE_MODE,
  161. #ifndef _WIN32
  162. REPLXX_ACTION_VERBATIM_INSERT,
  163. REPLXX_ACTION_SUSPEND,
  164. #endif
  165. REPLXX_ACTION_CLEAR_SCREEN,
  166. REPLXX_ACTION_CLEAR_SELF,
  167. REPLXX_ACTION_REPAINT,
  168. REPLXX_ACTION_COMPLETE_LINE,
  169. REPLXX_ACTION_COMPLETE_NEXT,
  170. REPLXX_ACTION_COMPLETE_PREVIOUS,
  171. REPLXX_ACTION_COMMIT_LINE,
  172. REPLXX_ACTION_ABORT_LINE,
  173. REPLXX_ACTION_SEND_EOF
  174. } ReplxxAction;
  175. /*! \brief Possible results of key-press handler actions.
  176. */
  177. typedef enum {
  178. REPLXX_ACTION_RESULT_CONTINUE, /*!< Continue processing user input. */
  179. REPLXX_ACTION_RESULT_RETURN, /*!< Return user input entered so far. */
  180. REPLXX_ACTION_RESULT_BAIL /*!< Stop processing user input, returns nullptr from the \e input() call. */
  181. } ReplxxActionResult;
  182. typedef struct ReplxxStateTag {
  183. char const* text;
  184. int cursorPosition;
  185. } ReplxxState;
  186. typedef struct Replxx Replxx;
  187. /*! \brief Create Replxx library resouce holder.
  188. *
  189. * Use replxx_end() to free resoiurce acquired with this function.
  190. *
  191. * \return Replxx library resouce holder.
  192. */
  193. REPLXX_IMPEXP Replxx* replxx_init( void );
  194. /*! \brief Cleanup resources used by Replxx library.
  195. *
  196. * \param replxx - a Replxx library resource holder.
  197. */
  198. REPLXX_IMPEXP void replxx_end( Replxx* replxx );
  199. /*! \brief Highlighter callback type definition.
  200. *
  201. * If user want to have colorful input she must simply install highlighter callback.
  202. * The callback would be invoked by the library after each change to the input done by
  203. * the user. After callback returns library uses data from colors buffer to colorize
  204. * displayed user input.
  205. *
  206. * \e size of \e colors buffer is equal to number of code points in user \e input
  207. * which will be different from simple `strlen( input )`!
  208. *
  209. * \param input - an UTF-8 encoded input entered by the user so far.
  210. * \param colors - output buffer for color information.
  211. * \param size - size of output buffer for color information.
  212. * \param userData - pointer to opaque user data block.
  213. */
  214. typedef void (replxx_highlighter_callback_t)(char const* input, ReplxxColor* colors, int size, void* userData);
  215. /*! \brief Register highlighter callback.
  216. *
  217. * \param fn - user defined callback function.
  218. * \param userData - pointer to opaque user data block to be passed into each invocation of the callback.
  219. */
  220. REPLXX_IMPEXP void replxx_set_highlighter_callback( Replxx*, replxx_highlighter_callback_t* fn, void* userData );
  221. typedef struct replxx_completions replxx_completions;
  222. /*! \brief Completions callback type definition.
  223. *
  224. * \e contextLen is counted in Unicode code points (not in bytes!).
  225. *
  226. * For user input:
  227. * if ( obj.me
  228. *
  229. * input == "if ( obj.me"
  230. * contextLen == 2 (depending on \e replxx_set_word_break_characters())
  231. *
  232. * Client application is free to update \e contextLen to be 6 (or any orther non-negative
  233. * number not greated than the number of code points in input) if it makes better sense
  234. * for given client application semantics.
  235. *
  236. * \param input - UTF-8 encoded input entered by the user until current cursor position.
  237. * \param completions - pointer to opaque list of user completions.
  238. * \param contextLen[in,out] - length of the additional context to provide while displaying completions.
  239. * \param userData - pointer to opaque user data block.
  240. */
  241. typedef void(replxx_completion_callback_t)(const char* input, replxx_completions* completions, int* contextLen, void* userData);
  242. /*! \brief Register completion callback.
  243. *
  244. * \param fn - user defined callback function.
  245. * \param userData - pointer to opaque user data block to be passed into each invocation of the callback.
  246. */
  247. REPLXX_IMPEXP void replxx_set_completion_callback( Replxx*, replxx_completion_callback_t* fn, void* userData );
  248. /*! \brief Add another possible completion for current user input.
  249. *
  250. * \param completions - pointer to opaque list of user completions.
  251. * \param str - UTF-8 encoded completion string.
  252. */
  253. REPLXX_IMPEXP void replxx_add_completion( replxx_completions* completions, const char* str );
  254. /*! \brief Add another possible completion for current user input.
  255. *
  256. * \param completions - pointer to opaque list of user completions.
  257. * \param str - UTF-8 encoded completion string.
  258. * \param color - a color for the completion.
  259. */
  260. REPLXX_IMPEXP void replxx_add_color_completion( replxx_completions* completions, const char* str, ReplxxColor color );
  261. typedef struct replxx_hints replxx_hints;
  262. /*! \brief Hints callback type definition.
  263. *
  264. * \e contextLen is counted in Unicode code points (not in bytes!).
  265. *
  266. * For user input:
  267. * if ( obj.me
  268. *
  269. * input == "if ( obj.me"
  270. * contextLen == 2 (depending on \e replxx_set_word_break_characters())
  271. *
  272. * Client application is free to update \e contextLen to be 6 (or any orther non-negative
  273. * number not greated than the number of code points in input) if it makes better sense
  274. * for given client application semantics.
  275. *
  276. * \param input - UTF-8 encoded input entered by the user until current cursor position.
  277. * \param hints - pointer to opaque list of possible hints.
  278. * \param contextLen[in,out] - length of the additional context to provide while displaying hints.
  279. * \param color - a color used for displaying hints.
  280. * \param userData - pointer to opaque user data block.
  281. */
  282. typedef void(replxx_hint_callback_t)(const char* input, replxx_hints* hints, int* contextLen, ReplxxColor* color, void* userData);
  283. /*! \brief Register hints callback.
  284. *
  285. * \param fn - user defined callback function.
  286. * \param userData - pointer to opaque user data block to be passed into each invocation of the callback.
  287. */
  288. REPLXX_IMPEXP void replxx_set_hint_callback( Replxx*, replxx_hint_callback_t* fn, void* userData );
  289. /*! \brief Key press handler type definition.
  290. *
  291. * \param code - the key code replxx got from terminal.
  292. * \return Decition on how should input() behave after this key handler returns.
  293. */
  294. typedef ReplxxActionResult (key_press_handler_t)( int code, void* userData );
  295. /*! \brief Add another possible hint for current user input.
  296. *
  297. * \param hints - pointer to opaque list of hints.
  298. * \param str - UTF-8 encoded hint string.
  299. */
  300. REPLXX_IMPEXP void replxx_add_hint( replxx_hints* hints, const char* str );
  301. /*! \brief Read line of user input.
  302. *
  303. * \param prompt - prompt to be displayed before getting user input.
  304. * \return An UTF-8 encoded input given by the user (or nullptr on EOF).
  305. */
  306. REPLXX_IMPEXP char const* replxx_input( Replxx*, const char* prompt );
  307. /*! \brief Get current state data.
  308. *
  309. * This call is intended to be used in handlers.
  310. *
  311. * \param state - buffer for current state of the model.
  312. */
  313. REPLXX_IMPEXP void replxx_get_state( Replxx*, ReplxxState* state );
  314. /*! \brief Set new state data.
  315. *
  316. * This call is intended to be used in handlers.
  317. *
  318. * \param state - new state of the model.
  319. */
  320. REPLXX_IMPEXP void replxx_set_state( Replxx*, ReplxxState* state );
  321. /*! \brief Print formatted string to standard output.
  322. *
  323. * This function ensures proper handling of ANSI escape sequences
  324. * contained in printed data, which is especially useful on Windows
  325. * since Unixes handle them correctly out of the box.
  326. *
  327. * \param fmt - printf style format.
  328. */
  329. #ifdef __GNUC__
  330. __attribute__((format(printf, 2, 3)))
  331. #endif
  332. REPLXX_IMPEXP int replxx_print( Replxx*, char const* fmt, ... );
  333. /*! \brief Schedule an emulated key press event.
  334. *
  335. * \param code - key press code to be emulated.
  336. */
  337. REPLXX_IMPEXP void replxx_emulate_key_press( Replxx*, int unsigned code );
  338. /*! \brief Invoke built-in action handler.
  339. *
  340. * \pre This function can be called only from key-press handler.
  341. *
  342. * \param action - a built-in action to invoke.
  343. * \param code - a supplementary key-code to consume by built-in action handler.
  344. * \return The action result informing the replxx what shall happen next.
  345. */
  346. REPLXX_IMPEXP ReplxxActionResult replxx_invoke( Replxx*, ReplxxAction action, int unsigned code );
  347. /*! \brief Bind user defined action to handle given key-press event.
  348. *
  349. * \param code - handle this key-press event with following handler.
  350. * \param handler - use this handler to handle key-press event.
  351. * \param userData - supplementary user data passed to invoked handlers.
  352. */
  353. REPLXX_IMPEXP void replxx_bind_key( Replxx*, int code, key_press_handler_t handler, void* userData );
  354. REPLXX_IMPEXP void replxx_set_preload_buffer( Replxx*, const char* preloadText );
  355. REPLXX_IMPEXP void replxx_history_add( Replxx*, const char* line );
  356. REPLXX_IMPEXP int replxx_history_size( Replxx* );
  357. /*! \brief Set set of word break characters.
  358. *
  359. * This setting influences word based cursor movement and line editing capabilities.
  360. *
  361. * \param wordBreakers - 7-bit ASCII set of word breaking characters.
  362. */
  363. REPLXX_IMPEXP void replxx_set_word_break_characters( Replxx*, char const* wordBreakers );
  364. /*! \brief How many completions should trigger pagination.
  365. */
  366. REPLXX_IMPEXP void replxx_set_completion_count_cutoff( Replxx*, int count );
  367. /*! \brief Set maximum number of displayed hint rows.
  368. */
  369. REPLXX_IMPEXP void replxx_set_max_hint_rows( Replxx*, int count );
  370. /*! \brief Set a delay before hint are shown after user stopped typing..
  371. *
  372. * \param milliseconds - a number of milliseconds to wait before showing hints.
  373. */
  374. REPLXX_IMPEXP void replxx_set_hint_delay( Replxx*, int milliseconds );
  375. /*! \brief Set tab completion behavior.
  376. *
  377. * \param val - use double tab to invoke completions (if != 0).
  378. */
  379. REPLXX_IMPEXP void replxx_set_double_tab_completion( Replxx*, int val );
  380. /*! \brief Set tab completion behavior.
  381. *
  382. * \param val - invoke completion even if user input is empty (if != 0).
  383. */
  384. REPLXX_IMPEXP void replxx_set_complete_on_empty( Replxx*, int val );
  385. /*! \brief Set tab completion behavior.
  386. *
  387. * \param val - beep if completion is ambiguous (if != 0).
  388. */
  389. REPLXX_IMPEXP void replxx_set_beep_on_ambiguous_completion( Replxx*, int val );
  390. /*! \brief Disable output coloring.
  391. *
  392. * \param val - if set to non-zero disable output colors.
  393. */
  394. REPLXX_IMPEXP void replxx_set_no_color( Replxx*, int val );
  395. /*! \brief Set maximum number of entries in history list.
  396. */
  397. REPLXX_IMPEXP void replxx_set_max_history_size( Replxx*, int len );
  398. REPLXX_IMPEXP char const* replxx_history_line( Replxx*, int index );
  399. REPLXX_IMPEXP int replxx_history_save( Replxx*, const char* filename );
  400. REPLXX_IMPEXP int replxx_history_load( Replxx*, const char* filename );
  401. REPLXX_IMPEXP void replxx_clear_screen( Replxx* );
  402. #ifdef __REPLXX_DEBUG__
  403. void replxx_debug_dump_print_codes(void);
  404. #endif
  405. /* the following is extension to the original linenoise API */
  406. REPLXX_IMPEXP int replxx_install_window_change_handler( Replxx* );
  407. #ifdef __cplusplus
  408. }
  409. #endif
  410. #endif /* __REPLXX_H */