6#ifndef _ZFI_ZFIOCallback_util_h_
7#define _ZFI_ZFIOCallback_util_h_
131 for(
zfindex i = 0; i < count; ++i) {
132 output.execute(token, len);
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
zfbool zfstringIsEmpty(const zfchar *s)
util to check whether string is empty (null or empty string)
Definition ZFCoreStringUtil.h:197
zfindex zfslen(const zfchar *s)
strlen wrapper as zfchar type
Definition ZFCoreTypeDef_CharType.h:144
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define ZF_OUT_OPT
dummy macro that shows the param used as optional output
Definition ZFCoreTypeDef_ClassType.h:192
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
zfindex ZFInputReadLine(const ZFOutput &output, const ZFInput &input)
util method to read one line
ZFOutput ZFOutputChain(const ZFOutput &o0, const ZFOutput &o1, const ZFOutput &o2=zft_zfnull, const ZFOutput &o3=zft_zfnull, const ZFOutput &o4=zft_zfnull, const ZFOutput &o5=zft_zfnull, const ZFOutput &o6=zft_zfnull, const ZFOutput &o7=zft_zfnull)
util to create a chained output
zfindex ZFInputRead(const ZFOutput &output, const ZFInput &input, zfindex size=((zfindex) -1))
util method to read contents of input to output
zfindex ZFInputSkipChars(zfchar *buf, const ZFInput &input, const zfchar *charSet=" \t\r\n")
util method to skip chars in set
zfindex ZFInputCheckMatch(const zfchar **tokens, zfindex tokenCount, const ZFInput &input)
util method to check whether the input match the tokens
zfindex ZFInputReadUntil(zfstring &ret, const ZFInput &input, const zfchar *charSet=" \t\r\n", zfindex maxCount=((zfindex) -1), zfchar *firstMatchedChar=zft_zfnull)
read until any char in charSet shows up, or reached maxCount, return count read so far
void ZFOutputRepeat(const ZFOutput &output, const zfchar *token, zfindex count)
repeat output
Definition ZFIOCallback_util.h:124
zfindex ZFInputReadChar(zfchar *buf, const ZFInput &input)
read single logic char to buf, return count of sizoef(zfchar) if success, or 0 if fail
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
light weight array
Definition ZFCoreArray.h:331
general output callback
Definition ZFIOCallback_output.h:37