added qse_sed_setexechook()
added qse_strfnmat() and related functions
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: sed.h 570 2011-09-20 04:40:45Z hyunghwan.chung $
|
||||
* $Id: sed.h 576 2011-09-23 14:52:22Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2011 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
@ -65,6 +65,8 @@
|
||||
*/
|
||||
typedef struct qse_sed_t qse_sed_t;
|
||||
|
||||
typedef struct qse_sed_cmd_t qse_sed_cmd_t;
|
||||
|
||||
/**
|
||||
* The qse_sed_loc_t defines a structure to store location information.
|
||||
*/
|
||||
@ -193,6 +195,21 @@ typedef int (*qse_sed_lformatter_t) (
|
||||
int (*cwriter) (qse_sed_t*, qse_char_t)
|
||||
);
|
||||
|
||||
enum qse_sed_exec_op_t
|
||||
{
|
||||
QSE_SED_EXEC_READ,
|
||||
QSE_SED_EXEC_WRITE,
|
||||
QSE_SED_EXEC_MATCH,
|
||||
QSE_SED_EXEC_EXEC
|
||||
};
|
||||
typedef enum qse_sed_exec_op_t qse_sed_exec_op_t;
|
||||
|
||||
typedef void (*qse_sed_exec_hook_t) (
|
||||
qse_sed_t* sed,
|
||||
qse_sed_exec_op_t op,
|
||||
const qse_sed_cmd_t* cmd
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -415,6 +432,15 @@ void qse_sed_setlinnum (
|
||||
qse_size_t num /**< a line number */
|
||||
);
|
||||
|
||||
qse_sed_exec_hook_t qse_sed_getexechook (
|
||||
qse_sed_t* sed
|
||||
);
|
||||
|
||||
void qse_sed_setexechook (
|
||||
qse_sed_t* sed,
|
||||
qse_sed_exec_hook_t hook
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user