?? rmsax.h
字號:
#ifndef __RMSAX_H__#define __RMSAX_H__/** Called when the parser encounters a start element. ie: when it encounters <foo> or <foo/> @param name contains the name of the element. Here, "foo". @param attributes contains the list of attributes. It is a NULL-terminated array. It must be freed by by the callee. @param context the context. */typedef void (*RMsaxStartElement) (const RMascii *name, const RMascii **attributes, void *context);/** Called when the parser encounters a start element. ie: when it encounters </foo> or <foo/> @param name contains the name of the element. Here, "foo". @param context the context. */typedef void (*RMsaxEndElement) (const RMascii *name, void *context);/** Called upon parsing error. @param context the context. */typedef void (*RMsaxFail) (void *context);typedef struct { RMsaxStartElement startElementCallback; RMsaxEndElement endElementCallback; RMsaxFail failCallback;} RMsaxVTable;/** This function will parse the input string. This function is of course thread-safe (ie: it does not use any global variables). @param pbuffer a NULL-terminated ASCII string. @param vtable the list of callback functions to be called during parsing. @param context the context pointer to pass to all callback functions. */RM_LIBRARY_IMPORT_EXPORT RMstatus RMParseSax (RMascii *pbuffer, const RMsaxVTable *vtable, void *context);#endif // __RMSAX_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -