|
Foxit PDF SDK
|
宏定义 | |
| #define | _FX_LARGEFILE_USED_ |
| 大文件支持的预处理器。 | |
| #define | FX_BSTRC(str) CFX_ByteStringC(str, sizeof str-1) |
| 指定字符串常量时,所有应用程序都应使用以下宏。 "str"必须是字符字符串常量。 更多... | |
| #define | FX_FILESIZE FX_INT64 |
| 直接支持大文件。 | |
| #define | FX_IsOdd(a) ((a) & 1) |
| 判断整数是奇数还是偶数 | |
| #define | FXBSTR_ID(c1, c2, c3, c4) ((c1 << 24) | (c2 << 16) | (c3 << 8) | (c4)) |
| 从四个整数值构造ID。 | |
| #define | FXFORMAT_CAPITAL 4 |
| 用于格式化整数:与FXFORMAT_HEX一起使用以产生大写十六进制字母 | |
| #define | FXFORMAT_HEX 2 |
| 用于格式化整数:使用十六进制格式 | |
| #define | FXFORMAT_SIGNED 1 |
| 用于格式化整数:值是有符号的。 | |
| #define | FXMEM_DISCARDABLE 4 |
| 分配可丢弃内存的标志。 | |
| #define | FXMEM_MOVABLE 2 |
| 分配可移动内存的标志。 | |
| #define | FXMEM_NONLEAVE 1 |
| 内存分配失败时不调用OOM处理程序的标志。 | |
枚举 | |
| enum | FX_ProgressiveStatus { Ready, ToBeContinued, Found, NotFound, Failed, Done } |
| 渐进状态的枚举。 更多... | |
变量 | |
| void *(* | FXMEM_SystemMgr::Alloc )(struct _FXMEM_SystemMgr *pMgr, size_t size, int flags) |
| 指向分配函数的指针类型。 更多... | |
| void *(* | FXMEM_SystemMgr::AllocDebug )(struct _FXMEM_SystemMgr *pMgr, size_t size, int flags, FX_LPCSTR file, int line) |
| 指向调试模式分配函数的指针类型。 更多... | |
| void(* | FXMEM_SystemMgr::CollectAll )(struct _FXMEM_SystemMgr *pMgr) |
| 指向内存收集函数的指针类型。 更多... | |
| FX_HTHREAD(* | FX_THREADHANDLER::CreateThread )(FX_LPVOID pUserData, FX_INT32 nPriority, size_t szStack, FX_CALLBACK_ThreadProc lpfThreadProc, FX_LPVOID param) |
| 创建线程的回调函数。 更多... | |
| FX_WORD | FXCRT_DATETIMEZONE::day |
| 月中的日,从1到31。 | |
| FX_WORD | FXCRT_DATETIMEZONE::dayOfWeek |
| 星期几,从0到6。PDF标准现在不支持,如果不适用可以省略此字段。 | |
| FX_BOOL(* | FX_THREADHANDLER::ExitThread )(FX_LPVOID pUserData) |
| 从当前线程退出的回调函数。 更多... | |
| void(* | FXMEM_SystemMgr::Free )(struct _FXMEM_SystemMgr *pMgr, void *pointer, int flags) |
| 指向释放函数的指针类型。 更多... | |
| void(* | FXMEM_SystemMgr2::Free )(struct _FXMEM_SystemMgr2 *pMgr, void *memory) |
| 当额外的内存池变为空时调用。 更多... | |
| const typedef CFX_ByteStringC & | FX_BSTR |
| 常量CFX_ByteStringC对象的引用。 | |
| FX_HTHREAD(* | FX_THREADHANDLER::GetCurrentThread )(FX_LPVOID pUserData) |
| 获取当前线程句柄的回调函数。 更多... | |
| FX_INT32(* | FX_THREADHANDLER::GetThreadPriority )(FX_LPVOID pUserData, FX_HTHREAD hThread) |
| 获取线程优先级的回调函数。 更多... | |
| FX_WORD | FXCRT_DATETIMEZONE::hour |
| 小时,从0到23。 | |
| void *(* | FXMEM_SystemMgr::Lock )(struct _FXMEM_SystemMgr *pMgr, void *handle) |
| 指向锁定函数的指针类型。 更多... | |
| void *(* | IFX_Allocator::m_Alloc )(struct _IFX_Allocator *pAllocator, size_t size) |
| 指向分配函数的指针类型。 更多... | |
| void *(* | IFX_Allocator::m_AllocDebug )(struct _IFX_Allocator *pAllocator, size_t size, FX_LPCSTR file, int line) |
| 指向调试模式分配函数的指针类型。 更多... | |
| FX_CHAR | CFX_StringBufTemplate< limit >::m_Buffer [limit] |
| 固定字符串缓冲区。 更多... | |
| void(* | IFX_Allocator::m_Free )(struct _IFX_Allocator *pAllocator, void *p) |
| 指向释放函数的指针类型。 更多... | |
| FX_STRSIZE | CFX_StringData::m_nAllocLength |
| 分配长度。 | |
| FX_STRSIZE | CFX_StringDataW::m_nAllocLength |
| 分配长度。 | |
| FX_STRSIZE | CFX_StringData::m_nDataLength |
| 数据长度(不包括终止符)。 | |
| FX_STRSIZE | CFX_StringDataW::m_nDataLength |
| 数据长度(不包括终止符)。 | |
| long | CFX_StringData::m_nRefs |
| 引用计数。 | |
| long | CFX_StringDataW::m_nRefs |
| 引用计数。 | |
| void *(* | IFX_Allocator::m_Realloc )(struct _IFX_Allocator *pAllocator, void *p, size_t size) |
| 指向重分配函数的指针类型。 更多... | |
| void *(* | IFX_Allocator::m_ReallocDebug )(struct _IFX_Allocator *pAllocator, void *p, size_t size, FX_LPCSTR file, int line) |
| 指向调试模式重分配函数的指针类型。 更多... | |
| FX_CHAR | CFX_StringData::m_String [1] |
| 实际数据(实际上是可变大小的数组)。 | |
| FX_WCHAR | CFX_StringDataW::m_String [1] |
| 实际数据(实际上是可变大小的数组)。 | |
| FX_WORD | FXCRT_DATETIMEZONE::milliseconds |
| 毫秒,从0到999。PDF标准现在不支持,如果不适用可以省略此字段。 | |
| FX_WORD | FXCRT_DATETIMEZONE::minute |
| 分钟,从0到59。 | |
| FX_WORD | FXCRT_DATETIMEZONE::month |
| 月,从1到12。 | |
| FX_BOOL(* | FXMEM_SystemMgr2::More )(struct _FXMEM_SystemMgr2 *pMgr, size_t alloc_size, void **new_memory, size_t *new_size) |
| 当固定内存管理器需要更多内存时调用。 更多... | |
| size_t | FX_MEMCONFIG::nPageNum_Init16 |
| 16字节固定数据大小的初始内存页数。桌面平台为8,有限内存环境为5。 | |
| size_t | FX_MEMCONFIG::nPageNum_Init32 |
| 32字节固定数据大小的初始内存页数。桌面平台为24,有限内存环境为8。 | |
| size_t | FX_MEMCONFIG::nPageNum_Init8 |
| 8字节固定数据大小的初始内存页数。桌面平台为1,有限内存环境为1。 | |
| size_t | FX_MEMCONFIG::nPageNum_InitMid |
| 中等数据范围的初始内存页数。桌面平台为2,有限内存环境为2。 | |
| size_t | FX_MEMCONFIG::nPageNum_More16 |
| 16字节固定数据大小的更多内存页数。桌面平台为8,有限内存环境为4。 | |
| size_t | FX_MEMCONFIG::nPageNum_More32 |
| 32字节固定数据大小的更多内存页数。桌面平台为24,有限内存环境为12。 | |
| size_t | FX_MEMCONFIG::nPageNum_MoreMid |
| 中等数据范围的更多内存页数。桌面平台为4,有限内存环境为4。 | |
| size_t | FX_MEMCONFIG::nPageSize_Alone |
| 大数据独立内存页的最小大小。桌面平台为64,有限内存环境为64。 | |
| size_t | FX_MEMCONFIG::nPageSize_Large |
| 大数据(>FX_FIXEDMEM_MIDBLOCKSIZE)的最小内存页大小。桌面平台为128,有限内存环境为32。 | |
| size_t | FX_MEMCONFIG::nPageSize_Mid |
| 中等数据范围(>32字节且<=FX_FIXEDMEM_MIDBLOCKSIZE)的内存页大小。桌面平台为32,有限内存环境为8。 | |
| void(* | FXMEM_Debugger::OnAlloc )(FXMEM_FoxitMgr *pMgr, void *p, size_t size, int flags) |
| 指向分配回调函数的指针类型。 更多... | |
| void(* | FXMEM_Debugger::OnAllocDebug )(FXMEM_FoxitMgr *pMgr, void *p, size_t size, int flags, FX_LPCSTR file, int line) |
| 指向调试模式分配回调函数的指针类型。 更多... | |
| void(* | FXMEM_Debugger::OnFree )(FXMEM_FoxitMgr *pMgr, void *p, int flags) |
| 指向释放回调函数的指针类型。 更多... | |
| void(* | FXMEM_Debugger::OnRealloc )(FXMEM_FoxitMgr *pMgr, void *old_p, void *new_p, size_t size, int flags) |
| 指向重分配回调函数的指针类型。 更多... | |
| void(* | FXMEM_Debugger::OnReallocDebug )(FXMEM_FoxitMgr *pMgr, void *old_p, void *new_p, size_t size, int flags, FX_LPCSTR file, int line) |
| 指向调试模式重分配回调函数的指针类型。 更多... | |
| void(* | FXMEM_Debugger::OnTag )(FXMEM_FoxitMgr *pMgr, FX_LPCSTR tag) |
| 指向标签回调函数的指针类型。 更多... | |
| void(* | FXMEM_SystemMgr::Purge )(struct _FXMEM_SystemMgr *pMgr) |
| 指向清理函数的指针类型,可用于清理多余的内存而不触及任何使用中的内存。 更多... | |
| FX_LPVOID | FX_THREADHANDLER::pUserData |
| 指向用户数据的指针。 | |
| void *(* | FXMEM_SystemMgr::Realloc )(struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags) |
| 指向重分配函数的指针类型。 更多... | |
| void *(* | FXMEM_SystemMgr::ReallocDebug )(struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags, FX_LPCSTR file, int line) |
| 指向调试模式重分配函数的指针类型。 更多... | |
| FX_WORD | FXCRT_DATETIMEZONE::second |
| 秒,从0到60。60表示闰秒。 | |
| void(* | FX_THREADHANDLER::SetThreadPriority )(FX_LPVOID pUserData, FX_HTHREAD hThread, FX_INT32 nPriority) |
| 设置线程优先级的回调函数。 更多... | |
| FX_INT32 | FXCRT_DATETIMEZONE::tzHour |
| 时区的小时,从-12到12。 更多... | |
| FX_WORD | FXCRT_DATETIMEZONE::tzMinute |
| 时区的分钟,从0到59。 | |
| void(* | FXMEM_SystemMgr::Unlock )(struct _FXMEM_SystemMgr *pMgr, void *handle) |
| 指向解锁函数的指针类型。 更多... | |
| void * | FXMEM_SystemMgr::user |
| 用于用户数据的通用无类型指针。 | |
| FX_INT32(* | FX_THREADHANDLER::WaitForMultipleThreads )(FX_LPVOID pUserData, const FX_HTHREAD *pThreads, FX_INT32 nCount) |
| 等待多个线程终止。 更多... | |
| FX_INT32(* | FX_THREADHANDLER::WaitForSingleThread )(FX_LPVOID pUserData, FX_HTHREAD hThread) |
| 等待单个线程终止。 更多... | |
| FX_WORD | FXCRT_DATETIMEZONE::year |
| 年,四位数字,如2014。 | |
| void(* | FX_THREADHANDLER::Yield )(FX_LPVOID pUserData) |
| 将CPU时间切换到另一个线程的回调函数。 更多... | |
基本内存操作 | |
| typedef void(* | FPDF_OOM_Handler) (FXMEM_FoxitMgr *pFoxitMgr, void *param) |
| 内存不足处理程序的原型。 更多... | |
| void * | FXMEM_Alloc (FXMEM_FoxitMgr *pFoxitMgr, size_t size, int flags) |
| Foxit基本内存分配函数。 更多... | |
| void * | FXMEM_AllocDebug (FXMEM_FoxitMgr *pFoxitMgr, size_t size, int flags, FX_LPCSTR file, int line) |
| Foxit调试模式基本内存分配函数。 更多... | |
| void * | FXMEM_Realloc (FXMEM_FoxitMgr *pFoxitMgr, void *pointer, size_t new_size, int flags) |
| Foxit基本内存重分配函数。 更多... | |
| void * | FXMEM_ReallocDebug (FXMEM_FoxitMgr *pFoxitMgr, void *pointer, size_t new_size, int flags, FX_LPCSTR file, int line) |
| Foxit调试模式基本内存重分配函数。 更多... | |
| void | FXMEM_Free (FXMEM_FoxitMgr *pFoxitMgr, void *pointer, int flags) |
| Foxit基本内存释放函数。 更多... | |
| void | FXMEM_CollectAll (FXMEM_FoxitMgr *pFoxitMgr) |
| 释放由Foxit管理器分配的所有内存块。此函数仅在嵌入式系统上支持。 更多... | |
| void | FXMEM_PurgeMgr (FXMEM_FoxitMgr *pFoxitMgr) |
| 释放所有多余的内存而不触及任何使用中的内存。 这对于可扩展固定内存管理器(FXMEM_SystemMgr2)很有用, 因为我们从不释放那些额外的内存池,直到内存管理器被销毁。 更多... | |
| void | FXMEM_ReportOOM (FXMEM_FoxitMgr *pFoxitMgr) |
| 报告内存不足(OOM)。 更多... | |
| void | FXMEM_UseDebugger (FXMEM_FoxitMgr *pFoxitMgr, FXMEM_Debugger *pDebugger) |
| 使用捕获所有内存活动的内存调试器。对参数 pDebugger 使用 NULL 停止调试。 更多... | |
| void | FXMEM_OutputDebugTag (FXMEM_FoxitMgr *pFoxitMgr, FX_LPCSTR tag) |
| 输出内存调试标签。 更多... | |
| void | FXMEM_SetOOMHandler (FXMEM_FoxitMgr *pFoxitMgr, FPDF_OOM_Handler pOOMReportFunc, void *param) |
| 为Foxit内存管理器设置内存不足处理程序。 更多... | |
以下基本内存函数使用当前模块的默认Foxit管理器 | |
| void * | FXMEM_DefaultAlloc (size_t byte_size, int flags) |
| 使用当前模块默认Foxit内存管理器的默认分配函数。 更多... | |
| void * | FXMEM_DefaultAlloc2 (size_t units, size_t unit_size, int flags) |
| 使用当前模块默认Foxit内存管理器的默认分配函数。 更多... | |
| void * | FXMEM_DefaultAllocDebug (size_t size, int flags, FX_LPCSTR file, int line) |
| 使用当前模块默认Foxit内存管理器的默认调试模式分配函数。 更多... | |
| void * | FXMEM_DefaultAllocDebug2 (size_t units, size_t unit_size, int flags, FX_LPCSTR file, int line) |
| 使用当前模块默认Foxit内存管理器的默认调试模式分配函数。 更多... | |
| void * | FXMEM_DefaultRealloc (void *pointer, size_t new_size, int flags) |
| 使用当前模块默认Foxit内存管理器的默认重分配函数。 更多... | |
| void * | FXMEM_DefaultRealloc2 (void *pointer, size_t units, size_t unit_size, int flags) |
| 使用当前模块默认Foxit内存管理器的默认重分配函数。 更多... | |
| void * | FXMEM_DefaultReallocDebug (void *pointer, size_t new_size, int flags, FX_LPCSTR file, int line) |
| 使用当前模块默认Foxit内存管理器的默认调试模式重分配函数。 更多... | |
| void * | FXMEM_DefaultReallocDebug2 (void *pointer, size_t units, size_t unit_size, int flags, FX_LPCSTR file, int line) |
| 使用当前模块默认Foxit内存管理器的默认调试模式重分配函数。 更多... | |
| void | FXMEM_DefaultFree (void *pointer, int flags) |
| 使用当前模块默认Foxit内存管理器的默认释放函数。 更多... | |
| IFX_Allocator * | FXMEM_GetDefAllocator () |
| 获取库使用的默认分配器。 更多... | |
| void | FXMEM_SetConfig (const FX_MEMCONFIG *memConfig) |
| 设置固定内存的配置。 更多... | |
| #define | FX_Alloc(type, size) |
| Foxit内存分配操作的宏。 | |
| #define | FX_Realloc(type, ptr, size) |
| Foxit内存重分配操作的宏。 | |
| #define | FX_AllocNL(type, size) |
| 带非离开属性的Foxit内存分配操作宏(OOM时返回NULL)。 | |
| #define | FX_ReallocNL(type, ptr, size) |
| 带非离开属性的Foxit内存重分配操作宏(OOM时返回NULL)。 | |
| #define | FX_Free(pointer) FXMEM_DefaultFree(pointer, 0) |
| Foxit内存释放操作的宏。 | |
| #define | FX_Allocator_Alloc(fxAllocator, type, size) ((fxAllocator) ? (type*)(fxAllocator)->m_Alloc((fxAllocator), (size) * sizeof(type)) : (FX_Alloc(type, size))) |
| 在分配器上进行发布模式分配。 | |
| #define | FX_Allocator_Realloc(fxAllocator, type, ptr, new_size) ((fxAllocator) ? (type*)(fxAllocator)->m_Realloc((fxAllocator), (ptr), (new_size) * sizeof(type)) : (FX_Realloc(type, ptr, new_size))) |
| 在分配器上进行发布模式重分配。 | |
| #define | FX_Allocator_Free(fxAllocator, ptr) ((fxAllocator) ? (fxAllocator)->m_Free((fxAllocator), (ptr)) : (FX_Free(ptr))) |
| 在分配器上释放内存块。 | |
| #define | _FXMEM_NO64_ |
| #define | FX_FIXEDMEM_PAGESIZE (4096 * 16) |
| 内存页大小,64KB。 | |
| #define | FX_FIXEDMEM_MIDBLOCKSIZE (4096) |
| 中等数据块大小,4KB。 | |
时间 | |
| void | FX_Time_GetSystemTime (FX_SYSTEMTIME *pSystemTime) |
| 获取当前系统日期和时间。 更多... | |
| void | FX_Time_GetLocalTime (FX_SYSTEMTIME *pSystemTime) |
| 获取当前本地日期和时间。 更多... | |
| FX_DWORD | FX_Time_GetClock () |
| 获取调用进程已消耗的时钟周期。 更多... | |
| FX_DWORD | FX_Time_Sleep (FX_DWORD dwMilliseconds) |
| 延迟当前运行指定的毫秒数。 更多... | |
| void | FXCRT_GetCurrentSystemTime (FXCRT_DATETIMEZONE &dt) |
| 获取当前系统日期、时间和时区信息。 更多... | |
进程ID的类型 | |
| typedef FX_DWORD | FX_PROCESSID |
| 进程ID。 | |
进程管理 | |
| void | FX_Process_Initialize () |
| 初始化进程。 更多... | |
| void | FX_Process_Finalize () |
| 结束进程。 更多... | |
| FX_PROCESSID | FX_Process_GetID () |
| 获取当前进程ID 更多... | |
| FX_LPVOID | FX_Process_GetPrivateData (FX_LPVOID key) |
| 获取当前进程中的私有数据。 更多... | |
| void | FX_Process_SetPrivateData (FX_LPVOID key, FX_LPVOID data, PD_CALLBACK_FREEDATA callback) |
| 设置当前进程中的私有数据。 更多... | |
| void | FX_Process_RemovePrivateData (FX_LPVOID key) |
| 移除当前进程中的私有数据。 更多... | |
| CFX_ProcessContext * | FX_Process_GetContext () |
| 获取进程上下文。 更多... | |
线程优先级标志 | |
| typedef DWORD | FX_ThreadResult |
| typedef FX_ThreadResult(WINAPI * | FX_CALLBACK_ThreadProc) (FX_LPVOID param) |
| 线程过程的回调函数。 更多... | |
| typedef FX_ThreadResult(WINAPI * | FX_CALLBACK_ThreadProxyProc) (FX_CALLBACK_ThreadProc threadProc, FX_LPVOID param) |
| 线程代理过程的回调函数。 更多... | |
| #define | FX_THREADPRIORITY_Lowest -2 |
| 最低优先级。 | |
| #define | FX_THREADPRIORITY_Lower -1 |
| 较低优先级。 | |
| #define | FX_THREADPRIORITY_Normal 0 |
| 正常优先级。 | |
| #define | FX_THREADPRIORITY_Higher 1 |
| 较高优先级。 | |
| #define | FX_THREADPRIORITY_Highest 2 |
| 最高优先级。 | |
| #define | THREAD_CALL_CONVENTION WINAPI |
线程处理器 | |
| FX_THREADHANDLER * | FX_Thread_GetHandler () |
| 获取当前线程处理器。 更多... | |
| void | FX_Thread_SetHandler (FX_THREADHANDLER *pThreadHandler) |
| 设置当前线程处理器。 更多... | |
线程函数 | |
| FX_HTHREAD | FX_Thread_Create (FX_INT32 nPriority, size_t szStack, FX_CALLBACK_ThreadProc threadProc, FX_LPVOID param) |
| 创建一个新线程。 更多... | |
| void | FX_Thread_Exit () |
| 退出当前线程。 更多... | |
| FX_HTHREAD | FX_Thread_GetHandle () |
| 获取当前线程句柄。 更多... | |
| void | FX_Thread_Yield () |
| 将处理器让出给另一个线程。 更多... | |
| FX_INT32 | FX_Thread_GetLastError () |
| 获取当前线程中的最后错误代码。 更多... | |
| void | FX_Thread_SetLastError (FX_INT32 nErr) |
| 设置当前线程中的最后错误代码。 更多... | |
| FX_LPVOID | FX_Thread_GetPrivateData (FX_LPVOID key) |
| 获取当前线程中的私有数据。 更多... | |
| void | FX_Thread_SetPrivateData (FX_LPVOID key, FX_LPVOID data, PD_CALLBACK_FREEDATA callback) |
| 设置当前线程中的私有数据。 更多... | |
| void | FX_Thread_RemovePrivateData (FX_LPVOID key) |
| 移除当前线程中的私有数据。 更多... | |
| FX_INT32 | FX_Thread_GetPriority (FX_HTHREAD hThread) |
| 获取线程优先级。 更多... | |
| void | FX_Thread_SetPriority (FX_HTHREAD hThread, FX_INT32 nPriority) |
| 设置线程优先级。 更多... | |
| FX_INT32 | FX_Thread_WaitForSingleThread (FX_HTHREAD hThread) |
| 等待单个线程终止。 更多... | |
| FX_INT32 | FX_Thread_WaitForMultipleThreads (const FX_HTHREAD *pThreads, FX_INT32 nCount) |
| 等待多个线程终止。 更多... | |
上下文访问 | |
| CFX_ThreadContext * | FX_Thread_GetContext () |
| 获取当前线程上下文。 更多... | |
| CFX_ExceptionContext * | FX_Thread_GetExceptionContext () |
| 获取当前线程异常上下文。 更多... | |
互斥量 | |
| |
| FX_BOOL | FX_Mutex_Initialize (FX_MUTEX *pMutex) |
| 初始化一个互斥量。 更多... | |
| void | FX_Mutex_Destroy (FX_MUTEX *pMutex) |
| 销毁一个互斥量。 更多... | |
| FX_BOOL | FX_Mutex_TryLock (FX_MUTEX *pMutex) |
| 尝试锁定一个互斥量。 更多... | |
| void | FX_Mutex_Lock (FX_MUTEX *pMutex) |
| 锁定一个互斥量。 更多... | |
| void | FX_Mutex_Unlock (FX_MUTEX *pMutex) |
| 解锁一个互斥量。 更多... | |
自旋锁 | |
| |
| FX_BOOL | FX_SpinLock_Initialize (FX_SPINLOCK *pSpinLock) |
| 初始化自旋锁。 更多... | |
| void | FX_SpinLock_Destroy (FX_SPINLOCK *pSpinLock) |
| 销毁一个自旋锁。 更多... | |
| FX_BOOL | FX_SpinLock_TryLock (FX_SPINLOCK *pSpinLock) |
| 尝试锁定一个自旋锁。 更多... | |
| void | FX_SpinLock_Lock (FX_SPINLOCK *pSpinLock) |
| 锁定一个自旋锁。 更多... | |
| void | FX_SpinLock_Unlock (FX_SPINLOCK *pSpinLock) |
| 解锁一个自旋锁。 更多... | |
| FX_BOOL | FX_SpinLock_IsLocked (FX_SPINLOCK *pSpinLock) |
| 确定指定的自旋锁是否被锁定。 更多... | |
| #define | FXMT_SPLOCK_THIS |
| #define | FXMT_SPLOCK_OBJ(lock) |
读写锁 | |
| |
| FX_BOOL | FX_RWLock_Initialize (FX_RWLOCK *pRWLock) |
| 初始化读写锁。 更多... | |
| void | FX_RWLock_Destroy (FX_RWLOCK *pRWLock) |
| 销毁一个读写锁。 更多... | |
| FX_BOOL | FX_RWLock_TryReadLock (FX_RWLOCK *pRWLock) |
| 尝试锁定以进行共享读取。 更多... | |
| void | FX_RWLock_ReadLock (FX_RWLOCK *pRWLock) |
| 锁定以进行共享读取。 更多... | |
| void | FX_RWLock_ReadUnlock (FX_RWLOCK *pRWLock) |
| 解锁以进行共享读取。 更多... | |
| FX_BOOL | FX_RWLock_TryWriteLock (FX_RWLOCK *pRWLock) |
| 尝试锁定以进行独占写入。 更多... | |
| void | FX_RWLock_WriteLock (FX_RWLOCK *pRWLock) |
| 锁定以进行独占写入。 更多... | |
| void | FX_RWLock_WriteUnlock (FX_RWLOCK *pRWLock) |
| 解锁以进行独占写入。 更多... | |
| #define | FXMT_RWLOCK_THIS |
| #define | FXMT_RWLOCK_OBJ(lock, s) |
| #define | FXMT_RWLOCK_DEFINEOBJ(rwLock, lock, s) |
| #define | FXMT_RWLOCKOBJECT_DEFINE(rwLockObj) |
| #define | FXMT_RWLOCKOBJECT_TRYREADLOCK(lockObj) |
| #define | FXMT_RWLOCKOBJECT_TRYREADLOCK_IF(lockObj) |
| #define | FXMT_RWLOCKOBJECT_READLOCK(lockObj) |
| #define | FXMT_RWLOCKOBJECT_READUNLOCK(lockObj) |
| #define | FXMT_RWLOCKOBJECT_TRYWRITELOCK(lockObj) |
| #define | FXMT_RWLOCKOBJECT_TRYWRITELOCK_IF(lockObj) |
| #define | FXMT_RWLOCKOBJECT_WRITELOCK(lockObj) |
| #define | FXMT_RWLOCKOBJECT_WRITEUNLOCK(lockObj) |
原子计数 | |
| |
| FX_INT32 | FX_Atom_Add32 (volatile FX_INT32 *pAddend, FX_INT32 nIncrement) |
| 增加32位整数值。 更多... | |
| FX_INT32 | FX_Atom_Subtract32 (volatile FX_INT32 *pAddend, FX_INT32 nDecrement) |
| 减少32位整数值。 更多... | |
| FX_INT64 | FX_Atom_Add64 (volatile FX_INT64 *pAddend, FX_INT64 nIncrement) |
| 增加64位整数值。 更多... | |
| FX_INT64 | FX_Atom_Subtract64 (volatile FX_INT64 *pAddend, FX_INT64 nDecrement) |
| 减少64位整数值。 更多... | |
文件访问模式的宏定义 | |
| FX_HFILE | FX_File_Open (FX_BSTR fileName, FX_DWORD dwMode, IFX_Allocator *pAllocator=0) |
| 以指定的访问模式打开文件。 更多... | |
| FX_HFILE | FX_File_Open (FX_WSTR fileName, FX_DWORD dwMode, IFX_Allocator *pAllocator=0) |
| 以指定的访问模式打开文件。 更多... | |
| void | FX_File_Close (FX_HFILE hFile, IFX_Allocator *pAllocator=0) |
| 关闭文件。 更多... | |
| FX_INT64 | FX_File_GetSize (FX_HFILE hFile) |
| 获取文件大小。 更多... | |
| FX_INT64 | FX_File_GetPosition (FX_HFILE hFile) |
| 获取当前文件访问位置。 更多... | |
| FX_INT64 | FX_File_SetPosition (FX_HFILE hFile, FX_INT64 pos) |
| 设置当前文件访问位置。 更多... | |
| size_t | FX_File_Read (FX_HFILE hFile, void *pBuffer, size_t szBuffer) |
| 从当前文件访问位置读取数据。 更多... | |
| size_t | FX_File_ReadPos (FX_HFILE hFile, void *pBuffer, size_t szBuffer, FX_INT64 pos) |
| 从指定位置读取数据。 更多... | |
| size_t | FX_File_Write (FX_HFILE hFile, const void *pBuffer, size_t szBuffer) |
| 从当前文件访问位置写入数据。 更多... | |
| size_t | FX_File_WritePos (FX_HFILE hFile, const void *pBuffer, size_t szBuffer, FX_INT64 pos) |
| 在指定位置写入数据。 更多... | |
| FX_BOOL | FX_File_Flush (FX_HFILE hFile) |
| 如果需要则刷新内部缓冲区。 更多... | |
| FX_BOOL | FX_File_Truncate (FX_HFILE hFile, FX_INT64 szFile) |
| 截断文件大小。 更多... | |
| FX_BOOL | FX_File_Exist (FX_BSTR fileName) |
| 确定文件是否存在。 更多... | |
| FX_BOOL | FX_File_Exist (FX_WSTR fileName) |
| 确定文件是否存在。 更多... | |
| FX_BOOL | FX_File_Delete (FX_BSTR fileName) |
| 删除文件。 更多... | |
| FX_BOOL | FX_File_Delete (FX_WSTR fileName) |
| 删除文件。 更多... | |
| FX_BOOL | FX_File_Copy (FX_BSTR fileNameSrc, FX_BSTR fileNameDst) |
| 复制文件。 更多... | |
| FX_BOOL | FX_File_Copy (FX_WSTR fileNameSrc, FX_WSTR fileNameDst) |
| 复制文件。 更多... | |
| FX_BOOL | FX_File_Move (FX_BSTR fileNameSrc, FX_BSTR fileNameDst) |
| 移动文件。 更多... | |
| FX_BOOL | FX_File_Move (FX_WSTR fileNameSrc, FX_WSTR fileNameDst) |
| 移动文件。 更多... | |
| IFX_FileWrite * | FX_CreateFileWrite (FX_LPCSTR filename, IFX_Allocator *pAllocator=0) |
| (仅适用于支持CRT文件访问(fopen,...)的平台)创建基于CRT的文件写入接口。 更多... | |
| IFX_FileWrite * | FX_CreateFileWrite (FX_LPCWSTR filename, IFX_Allocator *pAllocator=0) |
| (仅适用于支持CRT文件访问(fopen,...)的平台)创建基于CRT的文件写入接口。 更多... | |
| IFX_FileRead * | FX_CreateFileRead (FX_LPCSTR filename, IFX_Allocator *pAllocator=0) |
| (仅适用于支持CRT文件访问的平台)创建基于CRT的文件读取接口。 更多... | |
| IFX_FileRead * | FX_CreateFileRead (FX_LPCWSTR filename, IFX_Allocator *pAllocator=0) |
| (仅适用于支持CRT文件访问的平台)创建基于CRT的文件读取接口。 更多... | |
| IFX_FileStream * | FX_CreateFileStream (FX_LPCSTR filename, FX_DWORD dwModes, IFX_Allocator *pAllocator=0) |
| (仅适用于支持CRT文件访问的平台)创建基于CRT的文件I/O接口。 更多... | |
| IFX_FileStream * | FX_CreateFileStream (FX_LPCWSTR filename, FX_DWORD dwModes, IFX_Allocator *pAllocator=0) |
| (仅适用于支持CRT文件访问的平台)创建基于CRT的文件I/O接口。 更多... | |
| IFX_FileAccess * | FX_CreateDefaultFileAccess (FX_WSTR wsPath, IFX_Allocator *pAllocator=0) |
| 创建基于CRT的文件I/O接口。 更多... | |
| IFX_MemoryStream * | FX_CreateMemoryStream (FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver=false, IFX_Allocator *pAllocator=0) |
| 通过给定的内存缓冲区创建流对象。此函数创建连续内存流对象。 更多... | |
| IFX_MemoryStream * | FX_CreateMemoryStream (FX_BOOL bConsecutive=false, IFX_Allocator *pAllocator=0) |
| 创建内存流对象。内存缓冲区将在内部创建,当需要更多空间时大小会增加。 更多... | |
| #define | FX_FILEMODE_Write 0 |
| 写入模式。如果文件不存在则自动创建。 | |
| #define | FX_FILEMODE_ReadOnly 1 |
| 只读模式。 | |
| #define | FX_FILEMODE_Truncate 2 |
| 清除已有内容,文件大小将为0。仅用于写入模式。 | |
| #define | FX_FILECACHE_CHUNKSIZE 32768 |
| #define | FX_FILECACHE_CHUNKCOUNT 64 |
字节字符串连接操作 | |
| |
| typedef CFX_StringBufTemplate< 256 > | CFX_StringBuf256 |
| 固定的256字节字符串缓冲区。 | |
| const typedef CFX_WideStringC & | FX_WSTR |
| 常量CFX_WideStringC对象的引用的类型定义。 | |
| CFX_ByteString | operator+ (FX_BSTR str1, FX_BSTR str2) |
| 连接非缓冲字节字符串和非缓冲字节字符串。 更多... | |
| CFX_ByteString | operator+ (FX_BSTR str1, FX_LPCSTR str2) |
| 连接非缓冲字节字符串和以零结尾的C风格字符串 更多... | |
| CFX_ByteString | operator+ (FX_LPCSTR str1, FX_BSTR str2) |
| 连接以零结尾的C风格字符串和非缓冲字节字符串。 更多... | |
| CFX_ByteString | operator+ (FX_BSTR str1, FX_CHAR ch) |
| 连接非缓冲字节字符串和单个字符或字节。 更多... | |
| CFX_ByteString | operator+ (FX_CHAR ch, FX_BSTR str2) |
| 连接单个字符或字节和非缓冲字节字符串。 更多... | |
| CFX_ByteString | operator+ (const CFX_ByteString &str1, const CFX_ByteString &str2) |
| 连接缓冲字节字符串和缓冲字节字符串。 更多... | |
| CFX_ByteString | operator+ (const CFX_ByteString &str1, FX_CHAR ch) |
| 连接缓冲字节字符串和单个字符或字节。 更多... | |
| CFX_ByteString | operator+ (FX_CHAR ch, const CFX_ByteString &str2) |
| 连接单个字符或字节和缓冲字节字符串。 更多... | |
| CFX_ByteString | operator+ (const CFX_ByteString &str1, FX_LPCSTR str2) |
| 连接缓冲字节字符串和以零结尾的C风格字符串。 更多... | |
| CFX_ByteString | operator+ (FX_LPCSTR str1, const CFX_ByteString &str2) |
| 连接以零结尾的C风格字符串和缓冲字节字符串。 更多... | |
| CFX_ByteString | operator+ (const CFX_ByteString &str1, FX_BSTR str2) |
| 连接缓冲字节字符串和非缓冲字节字符串。 更多... | |
| CFX_ByteString | operator+ (FX_BSTR str1, const CFX_ByteString &str2) |
| 连接非缓冲字节字符串和缓冲字节字符串。 更多... | |
| CFX_WideStringC::CFX_WideStringC (const CFX_WideString &src) | |
| 从宽字符串构造。 更多... | |
| CFX_WideStringC & | CFX_WideStringC::operator= (const CFX_WideString &src) |
| 赋值(=)运算符重载。来自CFX_ByteString对象。 更多... | |
| #define | FX_WSTRC(wstr) CFX_WideStringC((FX_LPCWSTR)wstr, sizeof(wstr) / sizeof(FX_WCHAR) - 1) |
| 所有应用程序在指定宽字符串常量时都应使用以下宏。 "wstr"必须是宽字符串常量。 更多... | |
宽字符串连接操作 | |
但您必须在一侧至少有一个CFX_WideString或CFX_WideStringC。 | |
| CFX_WideString | operator+ (const CFX_WideStringC &str1, const CFX_WideStringC &str2) |
| 连接非缓冲宽字符串和非缓冲宽字符串。 更多... | |
| CFX_WideString | operator+ (const CFX_WideStringC &str1, FX_LPCWSTR str2) |
| 连接非缓冲字节字符串和以零结尾的C风格字符串 更多... | |
| CFX_WideString | operator+ (FX_LPCWSTR str1, const CFX_WideStringC &str2) |
| 连接以零结尾的C风格字符串和非缓冲字节字符串。 更多... | |
| CFX_WideString | operator+ (const CFX_WideStringC &str1, FX_WCHAR ch) |
| 连接非缓冲字节字符串和单个字符或字节。 更多... | |
| CFX_WideString | operator+ (FX_WCHAR ch, const CFX_WideStringC &str2) |
| 连接单个字符或字节和非缓冲字节字符串。 更多... | |
| CFX_WideString | operator+ (const CFX_WideString &str1, const CFX_WideString &str2) |
| 连接带缓冲字节字符串和带缓冲字节字符串。 更多... | |
| CFX_WideString | operator+ (const CFX_WideString &str1, FX_WCHAR ch) |
| 连接带缓冲字节字符串和单个字符或字节。 更多... | |
| CFX_WideString | operator+ (FX_WCHAR ch, const CFX_WideString &str2) |
| 连接单个字符或字节和带缓冲字节字符串。 更多... | |
| CFX_WideString | operator+ (const CFX_WideString &str1, FX_LPCWSTR str2) |
| 连接带缓冲宽字符串和以零结尾的C风格字符串。 更多... | |
| CFX_WideString | operator+ (FX_LPCWSTR str1, const CFX_WideString &str2) |
| 连接以零结尾的C风格字符串和带缓冲字节字符串。 更多... | |
| CFX_WideString | operator+ (const CFX_WideString &str1, const CFX_WideStringC &str2) |
| 连接带缓冲字节字符串和非缓冲字节字符串。 更多... | |
| CFX_WideString | operator+ (const CFX_WideStringC &str1, const CFX_WideString &str2) |
| 连接非缓冲字节字符串和带缓冲字节字符串。 更多... | |
宽字符串比较操作 | |
| bool | operator== (const CFX_WideString &s1, const CFX_WideString &s2) |
| 比较(==)操作符重载。区分大小写。 更多... | |
| bool | operator== (const CFX_WideString &s1, const CFX_WideStringC &s2) |
| 比较(==)操作符重载。区分大小写。 更多... | |
| bool | operator== (const CFX_WideStringC &s1, const CFX_WideString &s2) |
| 比较(==)操作符重载。区分大小写。 更多... | |
| bool | operator== (const CFX_WideString &s1, FX_LPCWSTR s2) |
| 比较(==)操作符重载。区分大小写。 更多... | |
| bool | operator== (FX_LPCWSTR s1, const CFX_WideString &s2) |
| 比较(==)操作符重载。区分大小写。 更多... | |
| bool | operator!= (const CFX_WideString &s1, const CFX_WideString &s2) |
| 比较(!=)操作符重载。区分大小写。 更多... | |
| bool | operator!= (const CFX_WideString &s1, const CFX_WideStringC &s2) |
| 比较(!=)操作符重载。区分大小写。 更多... | |
| bool | operator!= (const CFX_WideStringC &s1, const CFX_WideString &s2) |
| 比较(!=)操作符重载。区分大小写。 更多... | |
| bool | operator!= (const CFX_WideString &s1, FX_LPCWSTR s2) |
| 比较(!=)操作符重载。区分大小写。 更多... | |
| bool | operator!= (FX_LPCWSTR s1, const CFX_WideString &s2) |
| 比较(!=)操作符重载。区分大小写。 更多... | |
| bool | operator< (const CFX_WideString &lhs, const CFX_WideString &rhs) |
| 比较(<)操作符重载。区分大小写。 更多... | |
| FX_FLOAT | FX_atof (FX_BSTR str) |
| 将非缓冲字节字符串转换为浮点数。 更多... | |
| void | FX_atonum (FX_BSTR str, FX_BOOL &bInteger, void *pData, int sizeOfData=4) |
| 将非缓冲字节字符串转换为数字。 更多... | |
| FX_STRSIZE | FX_ftoa (FX_FLOAT f, FX_LPSTR buf, int precision=0) |
| 将浮点数转换为字节字符串。 更多... | |
基本Unicode字符属性例程 | |
| FX_WCHAR | FXWCHAR_GetUpper (FX_WCHAR wchar) |
| 转换为大写字母。 更多... | |
| FX_WCHAR | FXWCHAR_GetLower (FX_WCHAR wchar) |
| 转换为小写字母。 更多... | |
| FX_BOOL | FXWCHAR_IsWordBreak (FX_WCHAR wchar) |
| 检查Unicode是否可以断词。 更多... | |
| FX_BOOL | FXWCHAR_IsSpace (FX_WCHAR wchar) |
| 检查Unicode是否为空格。 更多... | |
文本方向定义 | |
| int | FXWCHAR_GetDirection (FX_WCHAR wchar) |
| 获取文本方向。 更多... | |
| #define | FXWCHAR_LTR 0 |
| 从左到右的顺序 | |
| #define | FXWCHAR_RTL 1 |
| 从右到左的顺序 | |
| #define | FXWCHAR_UNKNOWN 2 |
| 不确定顺序或不关心 | |
将宽字符串编码为UTF-8字节字符串 | |
| CFX_ByteString | FX_UTF8Encode (FX_LPCWSTR pwsStr, FX_STRSIZE len) |
| 将宽字符串编码为UTF-8字符串。 更多... | |
| CFX_ByteString | FX_UTF8Encode (FX_WSTR wsStr) |
| 将宽字符串编码为UTF-8字符串。 更多... | |
| CFX_ByteString | FX_UTF8Encode (const CFX_WideString &wsStr) |
| 将宽字符串编码为UTF-8字符串。 更多... | |
| FX_BOOL | FX_IsUtf16SurrogatePair (FX_WCHAR first, FX_WCHAR second) |
| 确定参数是否构成UTF-16代理对。 更多... | |
| FX_DWORD | FX_CreateCodePointFromUtf16SurrogatePair (FX_WCHAR first, FX_WCHAR second) |
| 从UTF16代理对创建Unicode代码点。 更多... | |
| FX_BOOL | FX_CreateUtf16SurrogatePairFromCodePoint (FX_DWORD unicode, FX_WCHAR &first, FX_WCHAR &second) |
| 从Unicode代码点创建UTF16代理对。 更多... | |
| void | FX_UTF8Encode (FX_LPCWSTR pwsStr, FX_STRSIZE len, CFX_ByteStringL &utf8Str, IFX_Allocator *pAllocator=NULL) |
操作系统定义 | |
| #define | _FX_WIN32_DESKTOP_ 1 |
| Windows 桌面操作系统(从Windows 95开始) | |
| #define | _FX_WIN32_MOBILE_ 2 |
| Windows Mobile 操作系统(从Windows CE 4.0开始) | |
| #define | _FX_WIN64_ 3 |
| Windows 64位 | |
| #define | _FX_LINUX_DESKTOP_ 4 |
| Linux 桌面操作系统 | |
| #define | _FX_LINUX_EMBEDDED_ 5 |
| 嵌入式Linux操作系统 | |
| #define | _FX_SYMBIAN_ 6 |
| Symbian操作系统(从7.0开始) | |
| #define | _FX_MACOSX_ 7 |
| MAC OS X | |
| #define | _FX_EMBEDDED_ 8 |
| 嵌入式操作系统 | |
| #define | _FX_SOLARIS_ 9 |
| Solaris 8或更高版本 | |
| #define | _FX_PALMOS_ 10 |
| PalmOS(5.0或更高版本) | |
| #define | _FX_NETBSD_ 11 |
| NetBSD | |
| #define | _FX_ANDROID_ 12 |
| Android | |
| #define | _FX_VXWORKS_ 13 |
| VxWorks | |
| #define | _FX_MTK_ 14 |
| Media Tech | |
| #define | _FX_IOS_ 15 |
| IOS | |
| #define | _FXM_PLATFORM_WINDOWS_ 1 |
| Windows操作系统平台。 | |
| #define | _FXM_PLATFORM_LINUX_ 2 |
| Linux操作系统平台。 | |
| #define | _FXM_PLATFORM_APPLE_ 3 |
| Apple操作系统平台。 | |
| #define | _FXM_PLATFORM_ANDROID_ 4 |
| Android操作系统平台。 | |
| #define | _FXM_PLATFORM_ _FXM_PLATFORM_WINDOWS_ |
| #define | _CRT_SECURE_NO_WARNINGS |
| 禁用CRT中的安全增强功能 | |
| #define | NOMINMAX |
| #define | _FX_WINAPI_PARTITION_DESKTOP_ |
编译器定义 | |
| #define | _FX_VC6_ 1 |
| Microsoft Visual C++ 6.0 | |
| #define | _FX_VC7_ 2 |
| Microsoft Visual Studio.Net 2003 | |
| #define | _FX_VC8_ 3 |
| Microsoft Visual Studio.Net 2005 | |
| #define | _FX_GCC_ 4 |
| GNU C++ 编译器 | |
| #define | _FX_ADS_ 5 |
| ADS 1.2 编译器 | |
| #define | _FX_RVCT_ 6 |
| RVCT 2.1 编译器 | |
| #define | _FX_IARCC_ 7 |
| IAR C/C++ 编译器 | |
| #define | _FX_NOKIA_X86_ 8 |
| Nokia X86 编译器 | |
| #define | _FX_METROWERKS_ 9 |
| Metrowerks C/C++ 编译器(使用MSL) | |
| #define | _FX_PACC_ 10 |
| Protein C/C++ 编译器(PalmOS使用) | |
| #define | _FX_TMS470_ 11 |
| TMS470 | |
| #define | _FX_MIPS_SDE_ 12 |
| MIPS SDE | |
CPU定义 | |
| #define | _FX_X86_ 1 |
| 32位x86 CPU | |
| #define | _FX_ARM_ 2 |
| ARM | |
| #define | _FX_POWERPC_ 3 |
| Power PC | |
| #define | _FX_SPARC_ 4 |
| Sparc | |
| #define | _FX_IA64_ 5 |
| IA64 | |
| #define | _FX_MIPS_ 6 |
| MIPS | |
| #define | _FX_X64_ 7 |
| 64位x86 CPU | |
| #define | _FX_ARM64_ 8 |
| ARM64 | |
| #define | _FX_MIPS64_ 9 |
| MIPS64 | |
| #define | _FX_LOONGARCH64_ 10 |
| Loongarch64 | |
字长定义 | |
| #define | _FX_W32_ 1 |
| 32位指令 | |
| #define | _FX_W64_ 2 |
| 64位指令 | |
| #define | _FX_WORDSIZE_ _FX_W32_ |
字节序定义 | |
| #define | _FX_BIG_ENDIAN_ 1 |
| 大端序 | |
| #define | _FX_LITTLE_ENDIAN_ 2 |
| 小端序 | |
| #define | _FX_ENDIAN_ |
| 当前字节序。 更多... | |
| #define | GetModuleFileName |
| 获取指定模块的完全限定路径。GetModuleFileNameW为Unicode模式定义, GetModuleFileNameA为ANSI模式定义。 | |
| #define | GetFullPathName |
| 获取指定文件的完整路径和文件名。GetFullPathNameW为Unicode模式定义, GetFullPathNameA为ANSI模式定义。 | |
目标定义 | |
| #define | _FX_DEFAULT_TARGET_ 0 |
| 默认SDK信息 | |
| #define | _FX_BREW_ 1 |
| Brew SDK | |
| #define | _FXM_SIMD_ |
| #define | _FX_NO_OPENSSL_ |
| #define | _FX_JPEG_TURBO_ |
| #define | _FX_LARGEFILE_SUPPORT_ |
| #define | WITH_SIMD |
| #define | _FPDF_STREAM_RENDER_ |
| #define | _FX_ENABLE_OVERPRINT_ |
基本数据类型 | |
| typedef void * | FX_LPVOID |
| 指向任意类型的指针。 | |
| typedef void const * | FX_LPCVOID |
| 指向任意常量类型的指针。 | |
| typedef void * | FX_POSITION |
| 用于表示集合中元素位置的值。 | |
| typedef signed char | FX_INT8 |
| 有符号8位整数。 | |
| typedef unsigned char | FX_UINT8 |
| 无符号8位整数。 | |
| typedef unsigned char | FX_BYTE |
| 字节(8位)。 | |
| typedef unsigned char * | FX_LPBYTE |
| 指向FX_BYTE的指针。 | |
| typedef unsigned char const * | FX_LPCBYTE |
| 指向常量FX_BYTE的指针。 | |
| typedef short | FX_INT16 |
| 有符号16位整数。 | |
| typedef unsigned short | FX_UINT16 |
| 无符号16位整数。 | |
| typedef short | FX_SHORT |
| 短整数(16位)。 | |
| typedef unsigned short | FX_WORD |
| 16位无符号整数。 | |
| typedef unsigned short * | FX_LPWORD |
| 指向WORD的指针。 | |
| typedef unsigned short const * | FX_LPCWORD |
| 指向WORD的指针。 | |
| typedef int | FX_INT32 |
| 32位有符号整数。 | |
| typedef float | FX_FLOAT |
| 32位浮点数。 | |
| typedef int | FX_BOOL |
| 布尔变量(应为TRUE或FALSE)。 | |
| typedef int | FX_ERR |
| 错误指示器。 | |
| typedef char | FX_CHAR |
| 8位Windows (ANSI) 字符。 | |
| typedef char * | FX_LPSTR |
| 指向8位Windows (ANSI) 字符的指针。 | |
| typedef char const * | FX_LPCSTR |
| 指向常量8位Windows (ANSI) 字符的指针。 | |
| typedef unsigned long | FX_DWORD |
| 32位无符号整数。 更多... | |
| typedef unsigned long * | FX_LPDWORD |
| 指向DWORD的指针。 | |
| typedef wchar_t | FX_WCHAR |
| 编译器相关的Unicode字符(Microsoft编译器为16位,gcc为32位)。 | |
| typedef wchar_t * | FX_LPWSTR |
| 指向Unicode字符的指针。 | |
| typedef wchar_t const * | FX_LPCWSTR |
| 指向常量Unicode字符的指针。 | |
| typedef long long int | FX_INT64 |
| typedef unsigned long long | FX_UINT64 |
| typedef INT_PTR | FX_INTPTR |
| 指针精度的有符号整型。 | |
| typedef UINT_PTR | FX_UINTPTR |
| 指针精度的无符号整型。 | |
| typedef FX_DWORD | FX_UINT32 |
| 无符号32位整数。 | |
| typedef FX_UINT64 | FX_QWORD |
| 无符号四字整数。 | |
| #define | FX_SUCCEEDED(Status) ((FX_ERR)(Status) >= 0) |
| 确定状态是否成功。 | |
| #define | FX_FAILED(Status) ((FX_ERR)(Status) < 0) |
| 确定状态是否失败。 | |
| #define | FX_DEFINEHANDLE(name) typedef struct _##name {FX_LPVOID pData;} * name; |
| 定义句柄类型的宏。 | |
| #define | TRUE 1 |
| 值为1的关键字。 | |
| #define | FALSE 0 |
| 值为0的关键字。 | |
| #define | NULL 0 |
| 空指针值。 | |
| #define | FXSYS_assert |
| 断言。 | |
| #define | ASSERT(a) |
| 调试模式的断言,发布模式下不执行任何操作。 | |
| #define | FX_MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| 返回a和b中最大值的宏。 | |
| #define | FX_MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| 返回a和b中最小值的宏。 | |
| #define | FX_PI 3.1415926535897932384626433832795f |
| PI的宏 | |
| #define | _FX_CRT_MALLOC_LIMIT_ 0x7fffffffL |
| malloc大小限制的宏。 | |
字节字符串操作 | |
| #define | FXSYS_sprintf |
| 将格式化数据写入ANSIC字符串。 | |
| #define | FXSYS_snprintf |
| 将格式化数据写入ANSIC字符串,带最大长度。 | |
| #define | FXSYS_vsnprintf vsnprintf |
| #define | FXSYS_vsprintf |
| 使用指向参数列表的指针写入格式化输出。 | |
| #define | FXSYS_strchr |
| 在ANSIC字符串中查找字符。 | |
| #define | FXSYS_strlen |
| 获取ANSIC字符串的长度。 | |
| #define | FXSYS_strncmp |
| 比较两个ANSIC字符串的字符。 | |
| #define | FXSYS_strcmp |
| 比较ANSIC字符串。 | |
| #define | FXSYS_strcpy |
| 复制ANSIC字符串。 | |
| #define | FXSYS_strncpy |
| 复制有长度限制的ANSIC字符串。 | |
| #define | FXSYS_strstr |
| 查找子字符串 | |
文件操作 | |
| #define | FXSYS_FILE |
| 文件结构。 | |
| #define | FXSYS_fopen |
| 打开文件。 | |
| #define | FXSYS_fclose |
| 关闭文件。 | |
| #define | FXSYS_SEEK_END |
| 文件末尾。 | |
| #define | FXSYS_SEEK_SET |
| 文件开头。 | |
| #define | FXSYS_fseek |
| 将文件指针移动到指定位置。 | |
| #define | FXSYS_ftell |
| 获取文件指针的当前位置。 | |
| #define | FXSYS_fread |
| 从文件读取数据。 | |
| #define | FXSYS_fwrite |
| 向文件写入数据。 | |
| #define | FXSYS_fprintf |
| 向文件打印格式化数据。 | |
| #define | FXSYS_fflush |
| 刷新文件。 | |
| #define | FXSYS_wfopen |
| 使用宽字符串参数打开文件。目前仅支持Windows平台。 | |
宽字符串操作 | |
| #define | FXSYS_wcslen |
| 获取宽字符字符串的长度。 | |
| #define | FXSYS_wcscmp |
| 比较宽字符字符串。 | |
| #define | FXSYS_wcschr |
| 在宽字符字符串中查找宽字符。 | |
| #define | FXSYS_wcsstr |
| 查找宽字符子字符串。 | |
| #define | FXSYS_wcsncmp |
| 比较两个宽字符字符串的字符。 | |
| #define | FXSYS_vswprintf |
| 使用指向参数列表的指针写入格式化输出宽字符字符串。 | |
| #define | FXSYS_mbstowcs |
| 将多字节字符序列转换为相应的宽字符序列。 | |
| #define | FXSYS_wcstombs |
| 将宽字符序列转换为相应的多字节字符序列。 | |
内存块操作 | |
| #define | FXSYS_memcmp |
| 比较两个缓冲区。 | |
| #define | FXSYS_memcpy |
| 从一个缓冲区复制到另一个缓冲区。 | |
| #define | FXSYS_memmove |
| 将一个缓冲区移动到另一个缓冲区。如果源区域和目标区域的某些区域重叠, ::FXSYS_memmove 确保重叠区域中的原始源字节在被覆盖之前被复制。 | |
| #define | FXSYS_memset |
| 使用给定字符初始化缓冲区。 | |
| #define | FXSYS_memchr |
| 在内存块中搜索字节。 | |
| #define | FXSYS_qsort |
| 执行快速排序。通用算法。 | |
| #define | FXSYS_bsearch |
| 对排序数组执行二分搜索。通用算法。 | |
| #define | FXSYS_itoa |
| 将整数转换为ANSIC字符串。 | |
| #define | FXSYS_strlwr |
| 将ANSIC字符串转换为小写。 | |
| #define | FXSYS_strupr |
| 将ANSIC字符串转换为大写。 | |
| #define | FXSYS_stricmp |
| 比较两个ANSIC字符串,不区分大小写。 | |
| #define | FXSYS_wcsicmp |
| 比较两个宽字符字符串,不区分大小写。 | |
| #define | FXSYS_WideCharToMultiByte |
| 将宽字符字符串映射为字符字符串。 | |
| #define | FXSYS_MultiByteToWideChar |
| 将字符字符串映射为宽字符字符串。 | |
| #define | FXSYS_wcslwr |
| 将宽字符字符串转换为小写。 | |
| #define | FXSYS_wcsupr |
| 将宽字符字符串转换为大写。 | |
| #define | FXSYS_GetFullPathName |
| 获取指定文件的完整路径和文件名。 | |
| #define | FXSYS_GetModuleFileName |
| 获取指定模块的完全限定路径。 | |
| #define | FXSYS_GetACP |
| 检索系统的当前ANSI代码页标识符。 | |
内存工具 | |
| void * | FXSYS_memcpy32 (void *dst, const void *src, size_t size) |
| 从源缓冲区复制数据到目标缓冲区。 更多... | |
| FX_INT32 | FXSYS_memcmp32 (const void *buf1, const void *buf2, size_t size) |
| 比较两个缓冲区中的数据。 更多... | |
| void * | FXSYS_memset32 (void *dst, FX_INT32 v, size_t size) |
| 将缓冲区数据设置为指定值。 更多... | |
| void * | FXSYS_memset8 (void *dst, FX_BYTE v, size_t size) |
| 将缓冲区数据设置为指定值。 更多... | |
| void * | FXSYS_memmove32 (void *dst, const void *src, size_t size) |
| 将源缓冲区数据移动到目标缓冲区。 更多... | |
数学函数 | |
| typedef CRITICAL_SECTION | FX_MUTEX |
| 互斥锁/临界区和读写锁的定义。 | |
| typedef void * | FX_SPINLOCK |
| 自旋锁的定义。 | |
| FX_INT32 | FXSYS_atoi (FX_LPCSTR str) |
| 将ANSI字符串转换为整数。 更多... | |
| FX_INT32 | FXSYS_wtoi (FX_LPCWSTR str) |
| 将宽字符串转换为整数。 更多... | |
| FX_INT64 | FXSYS_atoi64 (FX_LPCSTR str) |
| 将ANSI字符串转换为整数。 更多... | |
| FX_INT64 | FXSYS_wtoi64 (FX_LPCWSTR str) |
| 将宽字符串转换为整数。 更多... | |
| FX_LPCSTR | FXSYS_i64toa (FX_INT64 value, FX_LPSTR str, int radix) |
| 将整数转换为ANSI字符串。 更多... | |
| FX_LPCWSTR | FXSYS_i64tow (FX_INT64 value, FX_LPWSTR str, int radix) |
| 将整数转换为宽字符串。 更多... | |
| int | FXSYS_round (FX_FLOAT f) |
| 获取最接近的整数 更多... | |
| #define | FXSYS_pow |
| 计算乘方。FXSYS_pow(x,y) 表示 x^y。 | |
| #define | FXSYS_sqrt |
| 计算平方根。FXSYS_sqrt(x) 表示 sqrt(x)。 | |
| #define | FXSYS_fabs |
| 计算绝对值。FXSYS_fabs(x) 表示 |x|。 | |
| #define | FXSYS_atan2 |
| 计算反正切。FXSYS_atan2(y,x) 表示 atan(y/x)。 | |
| #define | FXSYS_ceil |
| 计算值的上界。 | |
| #define | FXSYS_floor |
| 计算值的下界。 | |
| #define | FXSYS_cos |
| 计算浮点数从弧度参数的余弦值。 | |
| #define | FXSYS_acos |
| 计算浮点数的反余弦值,以弧度为单位。 | |
| #define | FXSYS_sin |
| 计算浮点数从弧度参数的正弦值。 | |
| #define | FXSYS_log |
| 计算浮点数的自然对数(以e为底)。 | |
| #define | FXSYS_log10 |
| 计算浮点数的常用对数(以10为底)。 | |
| #define | FXSYS_fmod |
| 计算浮点数余数。 | |
| #define | FXSYS_abs |
| 返回绝对值的宏。 | |
| #define | _FX_LSB_FIRST_ |
| #define | FXDWORD_FROM_LSBFIRST(i) (i) |
| #define | FXDWORD_FROM_MSBFIRST(i) ( ((FX_BYTE)(i) << 24) | ((FX_BYTE)((i) >> 8) << 16) | ((FX_BYTE)((i) >> 16) << 8) | (FX_BYTE)((i) >> 24) ) |
| #define | FXDWORD_GET_LSBFIRST(p) ((((FX_LPBYTE)(p))[3] << 24) | (((FX_LPBYTE)(p))[2] << 16) | (((FX_LPBYTE)(p))[1] << 8) | (((FX_LPBYTE)(p))[0])) |
| #define | FXDWORD_GET_MSBFIRST(p) ((((FX_LPBYTE)(p))[0] << 24) | (((FX_LPBYTE)(p))[1] << 16) | (((FX_LPBYTE)(p))[2] << 8) | (((FX_LPBYTE)(p))[3])) |
| #define | FXSYS_HIBYTE(word) ((FX_BYTE)((word) >> 8)) |
| #define | FXSYS_LOBYTE(word) ((FX_BYTE)(word)) |
| #define | FXSYS_HIWORD(dword) ((FX_WORD)((dword) >> 16)) |
| #define | FXSYS_LOWORD(dword) ((FX_WORD)(dword)) |
| #define | FXSYS_strtol strtol |
| 将字符串转换为长整数。 | |
| #define | FXSYS_Mul(a, b) ((a) * (b)) |
| 两个数相乘。 | |
| #define | FXSYS_Div(a, b) ((a) / (b)) |
| 两个数相除。 | |
| #define | FXSYS_MulDiv(a, b, c) ((a) * (b) / (c)) |
| 先做乘法,再做除法。 | |
| #define | FXSYS_sqrt2(a, b) (FX_FLOAT)FXSYS_sqrt((a)*(a) + (b)*(b)) |
| sqrt(a^2 + b^2)。 | |
| #define | FX_CRITICAL_SECTION FX_MUTEX |
| #define | FX_InitializeCriticalSection(a) FX_Mutex_Initialize(a) |
| #define | FX_DeleteCriticalSection(a) FX_Mutex_Destroy(a) |
| #define | FX_TryEnterCriticalSection(a) FX_Mutex_TryLock(a) |
| #define | FX_EnterCriticalSection(a) FX_Mutex_Lock(a) |
| #define | FX_LeaveCriticalSection(a) FX_Mutex_Unlock(a) |
| #define _FX_ENDIAN_ |
当前字节序。
现在可以是:
| #define FX_BSTRC | ( | str | ) | CFX_ByteStringC(str, sizeof str-1) |
指定字符串常量时,所有应用程序都应使用以下宏。 "str"必须是字符字符串常量。
| #define FX_WSTRC | ( | wstr | ) | CFX_WideStringC((FX_LPCWSTR)wstr, sizeof(wstr) / sizeof(FX_WCHAR) - 1) |
| typedef void(* FPDF_OOM_Handler) (FXMEM_FoxitMgr *pFoxitMgr, void *param) |
内存不足处理程序的原型。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | param | 用于用户数据的通用无类型指针。 |
| typedef FX_ThreadResult( WINAPI * FX_CALLBACK_ThreadProc) (FX_LPVOID param) |
线程过程的回调函数。
param[in] param 创建线程时传递的线程参数。
| typedef FX_ThreadResult( WINAPI * FX_CALLBACK_ThreadProxyProc) (FX_CALLBACK_ThreadProc threadProc, FX_LPVOID param) |
线程代理过程的回调函数。
param[in] param 创建线程时传递的线程参数。
| typedef unsigned long FX_DWORD |
32位无符号整数。
TYPE LP32 ILP32 LP64 ILP64 LLP64 CHAR 8 8 8 8 8 SHORT 16 16 16 16 16 INT 16 32 32 64 32 LONG 32 32 64 64 32 LONG LONG 64 64 64 64 64 POINTER 32 32 64 64 64
| typedef void(* PD_CALLBACK_FREEDATA) (FX_LPVOID pData) |
自定义模块提供的用于释放私有数据的回调函数原型。
| enum FX_ProgressiveStatus |
|
explicit |
从单个字符构造。
| [in] | ch | 单个字符。 |
| CFX_ByteString::CFX_ByteString | ( | const CFX_ByteString & | str | ) |
复制构造函数。
| [in] | str | CFX_ByteString对象的常量引用。 |
| CFX_ByteString::CFX_ByteString | ( | FX_BSTR | bstrc | ) |
从CFX_ByteStringC对象的常量引用构造。
| [in] | bstrc | CFX_ByteStringC对象的常量引用。 |
连接构造函数。
| [in] | bstrc1 | 第一个CFX_ByteStringC对象的常量引用。 |
| [in] | bstrc2 | 第二个CFX_ByteStringC对象的常量引用。 |
| CFX_ByteString::CFX_ByteString | ( | FX_LPCBYTE | ptr, |
| FX_STRSIZE | len | ||
| ) |
从字节字符串构造。
| [in] | ptr | 指向常量字节字符串的指针。 |
| [in] | len | 字节字符串的长度。 |
| CFX_ByteString::CFX_ByteString | ( | FX_LPCSTR | ptr, |
| FX_STRSIZE | len = -1 |
||
| ) |
从字符字符串构造。
| [in] | ptr | 指向常量字符字符串的指针。 |
| [in] | len | 字符字符串的长度。len对于以零结尾的字符串可以为-1。 |
|
inline |
从字节字符串构造。
| [in] | src | CFX_ByteString对象的常量引用。 |
|
inline |
复制构造函数
| [in] | src | CFX_ByteStringC对象的常量引用。 |
|
inlineexplicit |
从单个字符构造。
| [in] | ch | 单个字符。 |
|
inline |
从字节字符串构造。
| [in] | ptr | 指向常量字节字符串的指针。 |
| [in] | size | 字节字符串的长度。 |
|
inline |
从字符字符串构造。
| [in] | ptr | 指向常量字符字符串的指针,字符串必须以null结尾。 |
|
inline |
从字符字符串构造。
| [in] | ptr | 指向常量字符字符串的指针。 |
| [in] | len | 字符字符串的长度。对于以null结尾的字符串,可以为-1。 |
| CFX_ChunkFileStreamsManager::CFX_ChunkFileStreamsManager | ( | IFX_FileStream * | pFileStream, |
| size_t | nChunkSize = 1024 |
||
| ) |
构造基于分块的文件流管理器。
| [in] | pFileStream | 指向文件流的指针,此管理器在该文件流上管理分块 读取和写入。 |
| [in] | nChunkSize | 分块大小。 |
|
inlineexplicit |
构造函数
| [in] | limit | 缓冲区限制。 |
| CFX_WideString::CFX_WideString | ( | const CFX_WideString & | str | ) |
复制构造函数。
| [in] | str | CFX_WideString对象的常量引用。 |
| CFX_WideString::CFX_WideString | ( | const CFX_WideStringC & | str | ) |
从CFX_WideStringC对象的常量引用构造。
| [in] | str | CFX_WideStringC对象的常量引用。 |
| CFX_WideString::CFX_WideString | ( | const CFX_WideStringC & | str1, |
| const CFX_WideStringC & | str2 | ||
| ) |
连接构造函数。
| [in] | str1 | 第一个CFX_WideStringC对象的常量引用。 |
| [in] | str2 | 第二个CFX_WideStringC对象的常量引用。 |
|
inline |
从宽字符字符串构造。
| [in] | ptr | 指向常量宽字符字符串的指针。 |
| [in] | len | 宽字符字符串的长度。对于以零结尾的宽字符字符串,可以为-1。 |
| CFX_WideString::CFX_WideString | ( | FX_WCHAR | ch | ) |
从单个宽字符构造。
| [in] | ch | 单个宽字符。 |
|
inline |
从宽字符串构造。
| [in] | src | CFX_ByteString对象的常量引用。 |
|
inline |
复制构造函数
| [in] | src | CFX_WideStringC对象的常量引用。 |
|
inline |
从字符串构造。
| [in] | ptr | 指向常量字符串的指针,字符串必须以空字符结尾。 |
|
inline |
从字符串构造。
| [in] | ptr | 指向常量字符串的指针。 |
| [in] | len | 字符串的长度。对于以空字符结尾的字符串,可以为-1。 |
|
inline |
从单个字符构造。
| [in] | ch | 单个字符。 |
| CFX_ByteString::~CFX_ByteString | ( | ) |
析构函数。
| CFX_ChunkFileStreamsManager::~CFX_ChunkFileStreamsManager | ( | ) |
析构函数。
| void CFX_StringBufBase::Append | ( | FX_BSTR | str | ) |
追加非缓冲字节字符串。
| [in] | str | 非缓冲字节字符串。 |
| void CFX_StringBufBase::Append | ( | int | i, |
| FX_DWORD | flags = 0 |
||
| ) |
追加整数。有关标志,请参阅FXFORMAT_xxx。
| [in] | i | 输入的整数。 |
| [in] | flags | 格式化标志。 |
|
pure virtual |
附加内存缓冲区。
| [in] | pBuffer | 要附加的内存缓冲区。 |
| [in] | nSize | 缓冲区大小,以字节为单位。 |
| [in] | bTakeOver | 指示当内存流将被释放时是否需要释放附加的内存缓冲区(pBuffer)。 默认值:false |
| FX_BOOL CFX_CachedFileRead::AttachFile | ( | IFX_FileRead * | pFile, |
| FX_BOOL | bTakeOver | ||
| ) |
附加文件读取。
| [in] | pFile | 要附加的文件。 |
| [in] | bTakeOver | 是否接管文件。 |
|
inlinevirtual |
清除由函数 IFX_FileRead::SetRange 设置的访问范围。
| int CFX_WideString::Compare | ( | const CFX_WideString & | str | ) | const |
将字符串与另一个字符串进行比较。区分大小写。
| [in] | str | 要比较的宽字符串。 |
| int CFX_ByteString::Compare | ( | FX_BSTR | str | ) | const |
将字符串与另一个字符串进行比较。区分大小写。
| [in] | str | 要比较的字节字符串。 |
| int CFX_WideString::Compare | ( | FX_LPCWSTR | str | ) | const |
将当前字符串与宽字符字符串进行比较。区分大小写。
| [in] | str | 要比较的宽字符字符串。 |
| int CFX_WideString::CompareNoCase | ( | FX_LPCWSTR | str | ) | const |
将字符串与宽字符字符串进行比较。不区分大小写。
| [in] | str | 要比较的宽字符字符串。 |
| void CFX_WideString::ConvertFrom | ( | const CFX_ByteString & | str, |
| CFX_CharMap * | pCharMap = NULL |
||
| ) |
使用指定的字符映射器将MBCS数据加载到此宽字符串中。
如果未指定字符映射器,将使用系统默认映射器。
| [in] | str | 字节字符串。 |
| [in] | pCharMap | 字符映射器。 |
| void CFX_ByteString::ConvertFrom | ( | const CFX_WideString & | str, |
| CFX_CharMap * | pCharMap = NULL |
||
| ) |
使用指定的字符映射器将unicode数据加载到此字节字符串中。 如果未指定字符映射器,将使用系统默认映射器。
| [in] | str | 输入的unicode字符串。 |
| [in] | pCharMap | 指定用于转换的字符映射器。 |
| void CFX_StringBufBase::Copy | ( | FX_BSTR | str | ) |
从非缓冲字节字符串复制。
| [in] | str | 非缓冲字节字符串。 |
| IFX_ChunkFileStream* CFX_ChunkFileStreamsManager::CreateChunkFileStream | ( | ) |
创建基于分块的文件流。
|
pure virtual |
创建IFX_FileStream来操作文件。
| [in] | dwModes | 打开文件模式。 |
| FX_STRSIZE CFX_ByteString::Delete | ( | FX_STRSIZE | index, |
| FX_STRSIZE | count = 1 |
||
| ) |
从指定位置开始删除一个或多个字符。
| [in] | index | 指定字节字符串中开始删除的基于零的索引。 |
| [in] | count | 要删除的字节数。 |
| FX_STRSIZE CFX_WideString::Delete | ( | FX_STRSIZE | index, |
| FX_STRSIZE | count = 1 |
||
| ) |
从指定位置开始删除一个或多个宽字符。
| [in] | index | 指定宽字符串中开始删除的零基索引。 |
| [in] | count | 要删除的宽字符数量。 |
|
pure virtual |
分离当前内存缓冲区。
| void CFX_ByteString::Empty | ( | ) |
将此字符串设置为空。
|
inline |
将此字符串设置为空。
| void CFX_WideString::Empty | ( | ) |
将此字符串设置为空。
| bool CFX_WideString::Equal | ( | const CFX_WideStringC & | str | ) | const |
检查当前字符串是否等于另一个字符串。
当只需要检查两个字符串是否相等时,此函数比CFX_WideString::Compare更快。
| [in] | str | 要比较的宽字符串。 |
| bool CFX_ByteString::Equal | ( | FX_BSTR | str | ) | const |
检查当前字符串是否等于另一个字符串。区分大小写。
如果只需要检查两个字符串是否相等,此函数比函数CFX_ByteString::Compare更快。
| [in] | str | 要比较的字节字符串。 |
| bool CFX_ByteString::EqualNoCase | ( | FX_BSTR | str | ) | const |
检查当前字符串是否等于另一个字符串,不考虑大小写。
此函数将字母'A'-'Z'与'a'-'z'视为相同。
| [in] | str | 要比较的字节字符串。 |
|
pure virtual |
更改初始大小和增长大小。
| [in] | nInitSize | 内存块的初始大小。 |
| [in] | nGrowSize | 写入数据时下次更改的增长大小。 |
| FX_STRSIZE CFX_ByteString::Find | ( | FX_BSTR | lpszSub, |
| FX_STRSIZE | start = 0 |
||
| ) | const |
从指定位置查找子字符串。仅找到第一次出现的位置。
| [in] | lpszSub | 要查找的子字符串。 |
| [in] | start | 指定进行查找的起始位置的基于零的索引。 |
| 找到第一次出现的位置。-1表示未找到。 |
| FX_STRSIZE CFX_ByteString::Find | ( | FX_CHAR | ch, |
| FX_STRSIZE | start = 0 |
||
| ) | const |
从指定位置查找字符。仅找到第一次出现的位置。
| [in] | ch | 要查找的字符。 |
| [in] | start | 指定进行查找的起始位置的基于零的索引。 |
| 找到第一次出现的位置。-1表示未找到。 |
| FX_STRSIZE CFX_WideString::Find | ( | FX_LPCWSTR | lpszSub, |
| FX_STRSIZE | start = 0 |
||
| ) | const |
从指定位置查找子字符串。只找到第一次出现。
| [in] | lpszSub | 要查找的子字符串。 |
| [in] | start | 指定进行查找的起始位置的零基索引。默认值:0。 |
| FX_STRSIZE CFX_WideString::Find | ( | FX_WCHAR | ch, |
| FX_STRSIZE | start = 0 |
||
| ) | const |
从指定位置查找字符。只找到第一次出现。
| [in] | ch | 要查找的字符。 |
| [in] | start | 指定进行查找的起始位置的零基索引。默认值:0。 |
|
inlinevirtual |
刷新流数据。
被 IFX_ChunkFileStream, IFX_FileStream, IFX_FileWrite , 以及 CFX_CachedFileRead 重载.
|
pure virtual |
刷新文件的内部缓冲区
重载 IFX_StreamWrite .
在 IFX_ChunkFileStream, IFX_FileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
刷新内部缓冲区。
实现了 IFX_FileWrite.
在 IFX_ChunkFileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
| void CFX_ByteString::Format | ( | FX_LPCSTR | lpszFormat, |
| ... | |||
| ) |
将一些参数格式化到此字节字符串中。
在桌面平台上,此函数支持所有sprintf()格式。
在嵌入式平台上,它仅支持格式的子集:
| [in] | lpszFormat | 指定格式控制字符串。 |
| void CFX_WideString::Format | ( | FX_LPCWSTR | lpszFormat, |
| ... | |||
| ) |
将多个参数格式化到此宽字符串中。
| [in] | lpszFormat | 指定格式控制字符串。 |
|
static |
从浮点数转换。
| [in] | f | 输入的浮点数。 |
| [in] | precision | 小数位数。默认值:0。 |
|
static |
从整数转换。
标志可以是以下标志(单个或复合):
| [in] | i | 输入的32位整数。 |
| [in] | flags | 格式化标志。默认值:0。 |
|
static |
从Integer64转换。
| [in] | i | 输入的64位整数。 |
| void CFX_ByteString::FormatV | ( | FX_LPCSTR | lpszFormat, |
| va_list | argList | ||
| ) |
使用va_list将一些参数格式化到此字节字符串中。
| [in] | lpszFormat | 指定格式控制字符串。 |
| [in] | argList | 可变参数列表。 |
| void CFX_WideString::FormatV | ( | FX_LPCWSTR | lpszFormat, |
| va_list | argList | ||
| ) |
使用va_list将多个参数格式化到此宽字符串中。
| [in] | lpszFormat | 指定格式控制字符串。 |
| [in] | argList | 可变参数列表。 |
|
static |
从系统多字节字符集创建宽字符串。
| [in] | str | 多字节字符集字符串。 |
| [in] | len | 多字节字符集字符串的字节长度。 对于以零结尾的多字节字符集字符串,可以为-1。 |
|
static |
从CFX_WideString对象创建CFX_ByteString对象。
| [in] | str | 常量CFX_WideString对象的引用。 |
|
static |
从Unicode字符串创建CFX_ByteString对象。从Unicode转换为系统多字节字符集。
| [in] | ptr | 指向常量Unicode字符串的指针。 |
| [in] | len | Unicode字符串的长度。len对于以零结尾的Unicode字符串可以为-1。 |
|
static |
从UTF16BE编码字符串创建宽字符串。
| [in] | str | UTF16BE编码字符串。 |
| [in] | len | UTF16BE编码字符串的字节长度。对于以零结尾的UTF16BE字符串,可以为-1。 |
|
static |
从UTF16LE编码字符串创建宽字符串。
| [in] | str | UTF16LE编码字符串。 |
| [in] | len | UTF16LE编码字符串的字节长度。对于以零结尾的UTF16LE字符串,可以为-1。 |
|
static |
从UTF-8字符串(ASCII字符串兼容)创建宽字符串。
| [in] | str | UTF8字符串。 |
| [in] | len | UTF8字符串的字节长度。对于以零结尾的UTF8字符串,可以为-1。 |
增加32位整数值。
| [in,out] | pAddend | 指向要增加值的32位整数的指针。 |
| [in] | nIncrement | 要添加到pAddend的增量值。 |
| FX_INT64 FX_Atom_Add64 | ( | volatile FX_INT64 * | pAddend, |
| FX_INT64 | nIncrement | ||
| ) |
增加64位整数值。
| [in,out] | pAddend | 指向要增加值的64位整数的指针。 |
| [in] | nIncrement | 要添加到pAddend的增量值。 |
减少32位整数值。
| [in,out] | pAddend | 指向要减少值的32位整数的指针。 |
| [in] | nDecrement | 要从pAddend中减去的减量值。 |
| FX_INT64 FX_Atom_Subtract64 | ( | volatile FX_INT64 * | pAddend, |
| FX_INT64 | nDecrement | ||
| ) |
减少64位整数值。
| [in,out] | pAddend | 指向要减少值的64位整数的指针。 |
| [in] | nDecrement | 要从pAddend中减去的减量值。 |
将非缓冲字节字符串转换为数字。
| [in] | str | 非缓冲字节字符串。 |
| [out] | bInteger | 非零值表示字符串可以转换为数字,否则不能。 |
| [out] | pData | 它接收转换后的数字。 |
| [in] | sizeOfData | pData的大小。默认值:4。 |
| void FX_CloseFolder | ( | void * | handle | ) |
关闭文件夹句柄。
| [in] | handle | 由 FX_OpenFolder 函数返回的文件夹句柄。 |
从UTF16代理对创建Unicode代码点。
| [in] | first | UTF16代理对的第一个值。 |
| [in] | second | UTF16代理对的第二个值。 |
| IFX_FileAccess* FX_CreateDefaultFileAccess | ( | FX_WSTR | wsPath, |
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
创建基于CRT的文件I/O接口。
| [in] | wsPath | 文件路径。 |
| [in] | pAllocator | 分配器。默认值:NULL。 |
| IFX_FileRead* FX_CreateFileRead | ( | FX_LPCSTR | filename, |
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
(仅适用于支持CRT文件访问的平台)创建基于CRT的文件读取接口。
| [in] | filename | 文件名,使用MBCS文件名。 |
| [in] | pAllocator | 分配器。默认值:NULL。 |
| IFX_FileRead* FX_CreateFileRead | ( | FX_LPCWSTR | filename, |
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
(仅适用于支持CRT文件访问的平台)创建基于CRT的文件读取接口。
| [in] | filename | 文件名,使用Unicode文件名。 |
| [in] | pAllocator | 分配器。默认值:NULL。 |
| IFX_FileStream* FX_CreateFileStream | ( | FX_LPCSTR | filename, |
| FX_DWORD | dwModes, | ||
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
(仅适用于支持CRT文件访问的平台)创建基于CRT的文件I/O接口。
| filename | 文件名,使用MBCS文件名。 |
| dwModes | |
| pAllocator | 分配器。默认值:NULL。 |
| IFX_FileStream* FX_CreateFileStream | ( | FX_LPCWSTR | filename, |
| FX_DWORD | dwModes, | ||
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
(仅适用于支持CRT文件访问的平台)创建基于CRT的文件I/O接口。
| filename | 文件名,使用Unicode文件名。 |
| dwModes | |
| pAllocator | 分配器。默认值:NULL。 |
| IFX_FileWrite* FX_CreateFileWrite | ( | FX_LPCSTR | filename, |
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
(仅适用于支持CRT文件访问(fopen,...)的平台)创建基于CRT的文件写入接口。
| [in] | filename | 文件名,使用MBCS文件名。 |
| [in] | pAllocator | 分配器。默认值:NULL。 |
| IFX_FileWrite* FX_CreateFileWrite | ( | FX_LPCWSTR | filename, |
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
(仅适用于支持CRT文件访问(fopen,...)的平台)创建基于CRT的文件写入接口。
| [in] | filename | 文件名,使用unicode文件名。 |
| [in] | pAllocator | 分配器。默认值:NULL。 |
| FX_BOOL FX_CreateFolder | ( | FX_LPCWSTR | path | ) |
创建新文件夹。
| [in] | path | 文件夹的路径名。 |
| IFX_MemoryStream* FX_CreateMemoryStream | ( | FX_BOOL | bConsecutive = false, |
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
创建内存流对象。内存缓冲区将在内部创建,当需要更多空间时大小会增加。
| [in] | bConsecutive | 指示是否创建连续内存流。 true表示创建连续内存流,false表示 创建非连续流。默认值:false。 |
| [in] | pAllocator | 指向指定分配器的::IFX_Allocator对象的指针。 NULL表示使用默认分配器。默认值:NULL。 |
| IFX_MemoryStream* FX_CreateMemoryStream | ( | FX_LPBYTE | pBuffer, |
| size_t | nSize, | ||
| FX_BOOL | bTakeOver = false, |
||
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
通过给定的内存缓冲区创建流对象。此函数创建连续内存流对象。
| [in] | pBuffer | 用于读取/写入数据的内存缓冲区。 |
| [in] | nSize | 缓冲区大小,以字节为单位。 |
| [in] | bTakeOver | 指示是否需要接管参数pBuffer。如果为true, 当销毁返回的IFX_MemoryStream对象时,参数pBuffer将在内部释放。 默认值:false。 |
| [in] | pAllocator | 指向::IFX_Allocator对象的指针,此项指定分配器。如果为<b>NULL, 则使用默认分配器。默认值:NULL。 |
|
inline |
从Unicode代码点创建UTF16代理对。
| [in] | unicode | Unicode代码点。 |
| [out] | first | UTF16代理对的第一个值。 |
| [out] | second | UTF16代理对的第二个值。 |
| CFX_WideString FX_DecodeURI | ( | const CFX_ByteString & | bsURI | ) |
简单的URI解码。
| [in] | bsURI | 要解码的URI字符串。 |
| FX_BOOL FX_DeleteFolder | ( | FX_LPCWSTR | path | ) |
删除文件夹。
| [in] | path | 文件夹的路径名。 |
| CFX_ByteString FX_EncodeURI | ( | const CFX_WideString & | wsURI | ) |
简单的URI编码。
| [in] | wsURI | 要编码的URI字符串。 |
| void FX_File_Close | ( | FX_HFILE | hFile, |
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
复制文件。
| [in] | fileNameSrc | 源文件路径名。 |
| [in] | fileNameDst | 目标文件路径名。 |
复制文件。
| [in] | fileNameSrc | 源文件路径名。 |
| [in] | fileNameDst | 目标文件路径名。 |
确定文件是否存在。
| [in] | fileName | 文件路径名。 |
确定文件是否存在。
| [in] | fileName | 文件路径名。 |
| FX_BOOL FX_File_Flush | ( | FX_HFILE | hFile | ) |
| FX_INT64 FX_File_GetPosition | ( | FX_HFILE | hFile | ) |
| FX_INT64 FX_File_GetSize | ( | FX_HFILE | hFile | ) |
移动文件。
| [in] | fileNameSrc | 源文件路径名。 |
| [in] | fileNameDst | 目标文件路径名。 |
移动文件。
| [in] | fileNameSrc | 源文件路径名。 |
| [in] | fileNameDst | 目标文件路径名。 |
| FX_HFILE FX_File_Open | ( | FX_BSTR | fileName, |
| FX_DWORD | dwMode, | ||
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
以指定的访问模式打开文件。
| [in] | fileName | 指定要打开的文件的文件路径名。 |
| [in] | dwMode | 文件访问模式。请参考从 ::FX_FILEMODE_Write 开始的值, 应该是这些值中的一个。 |
| [in] | pAllocator | 分配器。默认值:NULL。 |
| FX_HFILE FX_File_Open | ( | FX_WSTR | fileName, |
| FX_DWORD | dwMode, | ||
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
以指定的访问模式打开文件。
| [in] | fileName | 指定要打开的文件的文件路径名。 |
| [in] | dwMode | 文件访问模式。请参考从 ::FX_FILEMODE_Write 开始的值, 应该是这些值中的一个。 |
| [in] | pAllocator | 分配器。默认值:NULL。 |
| size_t FX_File_Read | ( | FX_HFILE | hFile, |
| void * | pBuffer, | ||
| size_t | szBuffer | ||
| ) |
从当前文件访问位置读取数据。
| [in] | hFile | 由函数 ::FX_File_Open 返回的文件处理器。 |
| [out] | pBuffer | 接收数据的缓冲区。 |
| [in] | szBuffer | 缓冲区大小,以字节为单位。 |
| size_t FX_File_ReadPos | ( | FX_HFILE | hFile, |
| void * | pBuffer, | ||
| size_t | szBuffer, | ||
| FX_INT64 | pos | ||
| ) |
从指定位置读取数据。
| [in] | hFile | 由函数 ::FX_File_Open 返回的文件处理器。 |
| [out] | pBuffer | 接收数据的缓冲区。 |
| [in] | szBuffer | 缓冲区大小,以字节为单位。 |
| [in] | pos | 从文件开头开始读取数据的位置。 |
| FX_INT64 FX_File_SetPosition | ( | FX_HFILE | hFile, |
| FX_INT64 | pos | ||
| ) |
| FX_BOOL FX_File_Truncate | ( | FX_HFILE | hFile, |
| FX_INT64 | szFile | ||
| ) |
| size_t FX_File_Write | ( | FX_HFILE | hFile, |
| const void * | pBuffer, | ||
| size_t | szBuffer | ||
| ) |
从当前文件访问位置写入数据。
| [in] | hFile | 由函数 ::FX_File_Open 返回的文件处理器。 |
| [in] | pBuffer | 数据缓冲区。 |
| [in] | szBuffer | 数据大小,以字节为单位。 |
| size_t FX_File_WritePos | ( | FX_HFILE | hFile, |
| const void * | pBuffer, | ||
| size_t | szBuffer, | ||
| FX_INT64 | pos | ||
| ) |
在指定位置写入数据。
| [in] | hFile | 由函数 ::FX_File_Open 返回的文件处理器。 |
| [in] | pBuffer | 数据缓冲区。 |
| [in] | szBuffer | 数据大小,以字节为单位。 |
| [in] | pos | 从文件开头开始写入数据的位置。 |
| FX_STRSIZE FX_ftoa | ( | FX_FLOAT | f, |
| FX_LPSTR | buf, | ||
| int | precision = 0 |
||
| ) |
将浮点数转换为字节字符串。
| [in] | f | 浮点数。 |
| [out] | buf | 浮点字符串的缓冲区,buf至少应有32字节。 |
| [in] | precision | 小数位数。默认值:0。 |
| FX_WCHAR FX_GetFolderSeparator | ( | ) |
获取系统的文件夹分隔符。很可能是 '/' 或 '\'。
| FX_BOOL FX_GetNextFile | ( | void * | handle, |
| CFX_ByteString & | filename, | ||
| FX_BOOL & | bFolder, | ||
| FX_LPCSTR | absPath = 0 |
||
| ) |
读取文件夹中的下一个条目。
| [in] | handle | 由函数 ::FX_OpenFolder 返回的文件夹句柄。 |
| [out] | filename | 当找到文件夹项时接收文件名。 |
| [out] | bFolder | 指示文件名是子文件夹还是普通文件。 |
| [in] | absPath | 绝对路径。默认值:NULL。 |
| FX_BOOL FX_GetNextFile | ( | void * | handle, |
| CFX_WideString & | filename, | ||
| FX_BOOL & | bFolder, | ||
| FX_LPCSTR | absPath = 0 |
||
| ) |
读取文件夹中的下一个条目。
| [in] | handle | 由函数 ::FX_OpenFolder 返回的文件夹句柄。 |
| [out] | filename | 当找到文件夹项时接收文件名。 |
| [out] | bFolder | 指示文件名是子文件夹还是普通文件。 |
| [in] | absPath | 绝对路径。默认值:NULL。 |
| FX_BOOL FX_IsFilePathExist | ( | FX_LPCWSTR | path | ) |
检查路径是否存在,包括文件路径和文件夹路径。
| [in] | path | 文件或文件夹的路径名。 |
| FX_BOOL FX_IsRectAdjacent | ( | const CFX_FloatRect & | rect1, |
| const CFX_FloatRect & | rect2, | ||
| FX_FLOAT | alignmentTolerance, | ||
| FX_FLOAT | distanceTolerance, | ||
| int | direction | ||
| ) |
检查一个矩形是否在水平或垂直方向上与另一个矩形相邻。
| [in] | rect1 | 要检查是否与参数 rect2 相邻的矩形。 |
| [in] | rect2 | 另一个矩形。 |
| [in] | alignmentTolerance | 两个矩形之间允许的对齐容差。以坐标单位测量,应为非负值。 |
| [in] | distanceTolerance | 两个矩形之间允许的距离容差。以坐标单位测量,应为非负值。 |
| [in] | direction | 指定判断两个矩形之间相邻状态的方向:
|
确定参数是否构成UTF-16代理对。
| [in] | first | UTF16代理对的第一个值。 |
| [in] | second | UTF16代理对的第二个值。 |
| void FX_Mutex_Destroy | ( | FX_MUTEX * | pMutex | ) |
销毁一个互斥量。
| [in] | pMutex | 指向要销毁的互斥量的指针。必须不能是NULL指针。 |
初始化一个互斥量。
| [in] | pMutex | 指向需要初始化的互斥量的指针。必须不能是NULL指针。 |
| void FX_Mutex_Lock | ( | FX_MUTEX * | pMutex | ) |
锁定一个互斥量。
| [in] | pMutex | 指向互斥量的指针。必须不能是NULL指针。 |
尝试锁定一个互斥量。
| [in] | pMutex | 指向互斥量的指针。必须不能是NULL指针。 |
| void FX_Mutex_Unlock | ( | FX_MUTEX * | pMutex | ) |
解锁一个互斥量。
| [in] | pMutex | 指向互斥量的指针。必须不能是NULL指针。 |
| void* FX_OpenFolder | ( | FX_LPCSTR | path | ) |
打开文件夹进行读取。
| [in] | path | 文件夹的路径名。 |
| void* FX_OpenFolder | ( | FX_LPCWSTR | path | ) |
打开文件夹进行读取。
| [in] | path | 文件夹的路径名。 |
| void FX_Process_Finalize | ( | ) |
结束进程。
| CFX_ProcessContext* FX_Process_GetContext | ( | ) |
获取进程上下文。
| FX_PROCESSID FX_Process_GetID | ( | ) |
获取当前进程ID
获取当前进程中的私有数据。
| [in] | key | 用于指定要检索的私有数据的键值。 |
| void FX_Process_Initialize | ( | ) |
初始化进程。
| void FX_Process_RemovePrivateData | ( | FX_LPVOID | key | ) |
移除当前进程中的私有数据。
| [in] | key | 用于指定要移除的私有数据的键值。 |
| void FX_Process_SetPrivateData | ( | FX_LPVOID | key, |
| FX_LPVOID | data, | ||
| PD_CALLBACK_FREEDATA | callback | ||
| ) |
设置当前进程中的私有数据。
| [in] | key | 用于指定要设置的私有数据的键值。 |
| [in] | data | 指向私有数据的指针。 |
| [in] | callback | 用于释放私有数据的回调函数地址, 如果不需要额外的释放过程,传入NULL。 |
| void FX_RWLock_Destroy | ( | FX_RWLOCK * | pRWLock | ) |
销毁一个读写锁。
| [in] | pRWLock | 指向要销毁的读写锁的指针。必须不能是NULL指针。 |
| FX_BOOL FX_RWLock_Initialize | ( | FX_RWLOCK * | pRWLock | ) |
初始化读写锁。
| [in] | pRWLock | 指向需要初始化的读写锁的指针。必须不能是NULL指针。 |
| void FX_RWLock_ReadLock | ( | FX_RWLOCK * | pRWLock | ) |
锁定以进行共享读取。
| [in] | pRWLock | 指向读写锁的指针。必须不能是NULL指针。 |
| void FX_RWLock_ReadUnlock | ( | FX_RWLOCK * | pRWLock | ) |
解锁以进行共享读取。
| [in] | pRWLock | 指向读写锁的指针。必须不能是NULL指针。 |
| FX_BOOL FX_RWLock_TryReadLock | ( | FX_RWLOCK * | pRWLock | ) |
尝试锁定以进行共享读取。
| [in] | pRWLock | 指向读写锁的指针。必须不能是NULL指针。 |
| FX_BOOL FX_RWLock_TryWriteLock | ( | FX_RWLOCK * | pRWLock | ) |
尝试锁定以进行独占写入。
| [in] | pRWLock | 指向读写锁的指针。必须不能是NULL指针。 |
| void FX_RWLock_WriteLock | ( | FX_RWLOCK * | pRWLock | ) |
锁定以进行独占写入。
| [in] | pRWLock | 指向读写锁的指针。必须不能是NULL指针。 |
| void FX_RWLock_WriteUnlock | ( | FX_RWLOCK * | pRWLock | ) |
解锁以进行独占写入。
| [in] | pRWLock | 指向读写锁的指针。必须不能是NULL指针。 |
| void FX_SpinLock_Destroy | ( | FX_SPINLOCK * | pSpinLock | ) |
销毁一个自旋锁。
| [in] | pSpinLock | 指向要销毁的自旋锁的指针。 |
| FX_BOOL FX_SpinLock_Initialize | ( | FX_SPINLOCK * | pSpinLock | ) |
初始化自旋锁。
| [in] | pSpinLock | 指向要初始化的自旋锁的指针。 |
| FX_BOOL FX_SpinLock_IsLocked | ( | FX_SPINLOCK * | pSpinLock | ) |
确定指定的自旋锁是否被锁定。
| [in] | pSpinLock | 指向自旋锁的指针。 |
| void FX_SpinLock_Lock | ( | FX_SPINLOCK * | pSpinLock | ) |
锁定一个自旋锁。
| [in] | pSpinLock | 指向自旋锁的指针。 |
| FX_BOOL FX_SpinLock_TryLock | ( | FX_SPINLOCK * | pSpinLock | ) |
尝试锁定一个自旋锁。
| [in] | pSpinLock | 指向自旋锁的指针。 |
| void FX_SpinLock_Unlock | ( | FX_SPINLOCK * | pSpinLock | ) |
解锁一个自旋锁。
| [in] | pSpinLock | 指向自旋锁的指针。 |
| FX_HTHREAD FX_Thread_Create | ( | FX_INT32 | nPriority, |
| size_t | szStack, | ||
| FX_CALLBACK_ThreadProc | threadProc, | ||
| FX_LPVOID | param | ||
| ) |
创建一个新线程。
| [in] | nPriority | 线程优先级。 |
| [in] | szStack | 线程堆栈大小,设置为0表示使用默认堆栈大小。 |
| [in] | threadProc | 线程回调函数。 |
| [in] | param | 传递给线程过程的参数。 |
| void FX_Thread_Exit | ( | ) |
退出当前线程。
| CFX_ThreadContext* FX_Thread_GetContext | ( | ) |
获取当前线程上下文。
| CFX_ExceptionContext* FX_Thread_GetExceptionContext | ( | ) |
获取当前线程异常上下文。
| FX_HTHREAD FX_Thread_GetHandle | ( | ) |
获取当前线程句柄。
| FX_THREADHANDLER* FX_Thread_GetHandler | ( | ) |
获取当前线程处理器。
| FX_INT32 FX_Thread_GetLastError | ( | ) |
获取当前线程中的最后错误代码。
| FX_INT32 FX_Thread_GetPriority | ( | FX_HTHREAD | hThread | ) |
获取线程优先级。
| [in] | hThread | 指定要检索其优先级的线程的线程句柄。 |
获取当前线程中的私有数据。
| [in] | key | 用于指定要检索的私有数据的键值。 |
| void FX_Thread_RemovePrivateData | ( | FX_LPVOID | key | ) |
移除当前线程中的私有数据。
| [in] | key | 用于指定要移除的私有数据的键值。 |
| void FX_Thread_SetHandler | ( | FX_THREADHANDLER * | pThreadHandler | ) |
设置当前线程处理器。
| [in] | pThreadHandler | 指向外部线程处理器的指针。 |
| void FX_Thread_SetLastError | ( | FX_INT32 | nErr | ) |
设置当前线程中的最后错误代码。
| [in] | nErr | 要设置的最后错误代码。 |
| void FX_Thread_SetPriority | ( | FX_HTHREAD | hThread, |
| FX_INT32 | nPriority | ||
| ) |
设置线程优先级。
| [in] | hThread | 指定要更改其优先级的线程的线程句柄。 |
| [in] | nPriority | 线程优先级代码。 |
| void FX_Thread_SetPrivateData | ( | FX_LPVOID | key, |
| FX_LPVOID | data, | ||
| PD_CALLBACK_FREEDATA | callback | ||
| ) |
设置当前线程中的私有数据。
| [in] | key | 用于指定要设置的私有数据的键值。 |
| [in] | data | 指向私有数据的指针。 |
| [in] | callback | 用于释放私有数据的回调函数地址。 如果不需要额外的过程来释放私有数据,则传递NULL。 |
等待多个线程终止。
| [in] | pThreads | 指向线程句柄数组的指针。 |
| [in] | nCount | 数组中线程的数量。 |
| FX_INT32 FX_Thread_WaitForSingleThread | ( | FX_HTHREAD | hThread | ) |
等待单个线程终止。
| [in] | hThread | 指定要等待的线程的线程句柄。 |
| void FX_Thread_Yield | ( | ) |
将处理器让出给另一个线程。
| FX_DWORD FX_Time_GetClock | ( | ) |
获取调用进程已消耗的时钟周期。
| void FX_Time_GetLocalTime | ( | FX_SYSTEMTIME * | pSystemTime | ) |
获取当前本地日期和时间。
| [in,out] | pSystemTime | 指向FX_SYSTEMTIME的指针,用于接收当前本地日期和时间。 |
| void FX_Time_GetSystemTime | ( | FX_SYSTEMTIME * | pSystemTime | ) |
获取当前系统日期和时间。
| [in,out] | pSystemTime | 指向FX_SYSTEMTIME的指针,用于接收当前系统日期和时间。 |
延迟当前运行指定的毫秒数。
| [in] | dwMilliseconds | 要延迟的毫秒数。 |
| CFX_WideString FX_UrlDecode | ( | const CFX_ByteString & | bsUrl | ) |
简单的URL解码。
| [in] | bsUrl | 要解码的URL字符串。 |
| CFX_ByteString FX_UrlEncode | ( | const CFX_WideString & | wsUrl | ) |
简单的URL编码。
| [in] | wsUrl | 要编码的URL字符串。 |
|
inline |
将宽字符串编码为UTF-8字符串。
| [in] | wsStr | 宽字符串。 |
| CFX_ByteString FX_UTF8Encode | ( | FX_LPCWSTR | pwsStr, |
| FX_STRSIZE | len | ||
| ) |
将宽字符串编码为UTF-8字符串。
| [in] | pwsStr | 指向宽字符串缓冲区的指针。 |
| [in] | len | 宽字符串的长度,以宽字符(FX_WCHAR)为单位。 |
|
inline |
将宽字符串编码为UTF-8字符串。
| [in] | wsStr | 常量宽字符串。 |
| void FXCRT_GetCurrentSystemTime | ( | FXCRT_DATETIMEZONE & | dt | ) |
获取当前系统日期、时间和时区信息。
| [in,out] | dt | 用于接收当前系统日期、时间和时区信息的结构。 |
| void* FXMEM_Alloc | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
| size_t | size, | ||
| int | flags | ||
| ) |
Foxit基本内存分配函数。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | size | 要分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| void* FXMEM_AllocDebug | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
| size_t | size, | ||
| int | flags, | ||
| FX_LPCSTR | file, | ||
| int | line | ||
| ) |
Foxit调试模式基本内存分配函数。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | size | 要分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void FXMEM_CollectAll | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
释放由Foxit管理器分配的所有内存块。此函数仅在嵌入式系统上支持。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| FXMEM_FoxitMgr* FXMEM_CreateFixedMgr | ( | void * | pMemory, |
| size_t | size, | ||
| FXMEM_SystemMgr2 * | pExtender | ||
| ) |
从预分配的固定内存缓冲区创建Foxit管理器。
这种形式的Foxit管理器通常用于内存有限且可以专用于单一任务的嵌入式系统。 应用程序负责分配和释放固定内存缓冲区。缓冲区大小不能低于512KB,没有上限。 现在固定内存管理器支持可扩展池。如果参数 pExtender 不为 NULL, 那么当当前内存池用完时,它将向系统请求更多内存。
| [in] | pMemory | 指向内存块的指针。 |
| [in] | size | 参数 pMemory 指向的内存块的字节大小。 |
| [in] | pExtender | 指向FXMEM_SystemMgr2对象的指针。 |
| FXMEM_FoxitMgr* FXMEM_CreateFoxitMgr | ( | FXMEM_SystemMgr * | pSystemMgr | ) |
创建Foxit管理器。必须提供系统管理器用于实际分配。
在桌面平台上,您不必创建Foxit管理器来使用内存分配, 因为FPDFAPI带有默认的Foxit管理器(以及底层的默认系统管理器)。 但如果您的应用程序使用非默认的系统管理器,您将必须创建一个 使用自定义系统管理器的新Foxit管理器。
| [in] | pSystemMgr | 指向FXMEM_SystemMgr对象的指针。 |
| FXMEM_FoxitMgr* FXMEM_CreateMemoryMgr | ( | size_t | size, |
| FX_BOOL | extensible | ||
| ) |
创建固定内存管理器作为默认实现。
| [in] | size | 内存池的初始大小,以字节为单位。应不少于8MB(1024 * 1024 * 8)。 |
| [in] | extensible | 如果为 true,内存池将在需要更多空间时扩展。 false 表示内存不能扩展。 |
| FXMEM_FoxitMgr* FXMEM_CreatePyMgr | ( | ) |
创建Python管理器。一个快速、专用的小块内存分配器,用于 在通用malloc之上使用——基于以前的技术。
在桌面平台上,您不必创建Foxit管理器来使用内存分配, 因为FPDFAPI带有默认的Foxit管理器(以及底层的默认系统 管理器)。但如果您的应用程序使用非默认的系统管理器,您可以创建一个 使用自定义系统管理器的新Python管理器。
| void* FXMEM_DefaultAlloc | ( | size_t | byte_size, |
| int | flags | ||
| ) |
使用当前模块默认Foxit内存管理器的默认分配函数。
| [in] | byte_size | 要分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| void* FXMEM_DefaultAlloc2 | ( | size_t | units, |
| size_t | unit_size, | ||
| int | flags | ||
| ) |
使用当前模块默认Foxit内存管理器的默认分配函数。
| [in] | units | 要分配的单元数量。 |
| [in] | unit_size | 每个单元的字节大小。 |
| [in] | flags | 内存分配属性。 |
| void* FXMEM_DefaultAllocDebug | ( | size_t | size, |
| int | flags, | ||
| FX_LPCSTR | file, | ||
| int | line | ||
| ) |
使用当前模块默认Foxit内存管理器的默认调试模式分配函数。
| [in] | size | 要分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void* FXMEM_DefaultAllocDebug2 | ( | size_t | units, |
| size_t | unit_size, | ||
| int | flags, | ||
| FX_LPCSTR | file, | ||
| int | line | ||
| ) |
使用当前模块默认Foxit内存管理器的默认调试模式分配函数。
| [in] | units | 要分配的单元数量。 |
| [in] | unit_size | 每个单元的字节大小。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void FXMEM_DefaultFree | ( | void * | pointer, |
| int | flags | ||
| ) |
使用当前模块默认Foxit内存管理器的默认释放函数。
| [in] | pointer | 内存块的地址。 |
| [in] | flags | 内存分配属性。 |
| void* FXMEM_DefaultRealloc | ( | void * | pointer, |
| size_t | new_size, | ||
| int | flags | ||
| ) |
使用当前模块默认Foxit内存管理器的默认重分配函数。
| [in] | pointer | 要重分配的内存块地址。 |
| [in] | new_size | 要重分配的新大小(以字节为单位)。 |
| [in] | flags | 内存分配属性。 |
| void* FXMEM_DefaultRealloc2 | ( | void * | pointer, |
| size_t | units, | ||
| size_t | unit_size, | ||
| int | flags | ||
| ) |
使用当前模块默认Foxit内存管理器的默认重分配函数。
| [in] | pointer | 要重分配的内存块地址。 |
| [in] | units | 要分配的单元数量。 |
| [in] | unit_size | 每个单元的字节大小。 |
| [in] | flags | 内存分配属性。 |
| void* FXMEM_DefaultReallocDebug | ( | void * | pointer, |
| size_t | new_size, | ||
| int | flags, | ||
| FX_LPCSTR | file, | ||
| int | line | ||
| ) |
使用当前模块默认Foxit内存管理器的默认调试模式重分配函数。
| [in] | pointer | 要重分配的内存块地址。 |
| [in] | new_size | 要重分配的新大小(以字节为单位)。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void* FXMEM_DefaultReallocDebug2 | ( | void * | pointer, |
| size_t | units, | ||
| size_t | unit_size, | ||
| int | flags, | ||
| FX_LPCSTR | file, | ||
| int | line | ||
| ) |
使用当前模块默认Foxit内存管理器的默认调试模式重分配函数。
| [in] | pointer | 要重分配的内存块地址。 |
| [in] | units | 要分配的单元数量。 |
| [in] | unit_size | 每个单元的字节大小。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void FXMEM_DestroyFoxitMgr | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
销毁Foxit管理器实例。如果平台支持自动收集, 那么所有分配的内存块将被释放。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| void FXMEM_Free | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
| void * | pointer, | ||
| int | flags | ||
| ) |
Foxit基本内存释放函数。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | pointer | 指向内存块的指针。 |
| [in] | flags | 内存分配属性。 |
| size_t FXMEM_GetBlockSizeInFixedMgr | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
| void * | ptr | ||
| ) |
获取 ptr 指向的内存块的大小。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针,应作为固定内存管理器创建。 |
| [in] | ptr | 指向内存块的指针。 |
| IFX_Allocator* FXMEM_GetDefAllocator | ( | ) |
获取库使用的默认分配器。
| FXMEM_FoxitMgr* FXMEM_GetDefaultMgr | ( | ) |
获取当前模块的默认内存管理器。
| void FXMEM_OutputDebugTag | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
| FX_LPCSTR | tag | ||
| ) |
输出内存调试标签。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | tag | 标签字符串。 |
| void FXMEM_PurgeMgr | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
释放所有多余的内存而不触及任何使用中的内存。 这对于可扩展固定内存管理器(FXMEM_SystemMgr2)很有用, 因为我们从不释放那些额外的内存池,直到内存管理器被销毁。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| void* FXMEM_Realloc | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
| void * | pointer, | ||
| size_t | new_size, | ||
| int | flags | ||
| ) |
Foxit基本内存重分配函数。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | pointer | 指向内存块的指针。 |
| [in] | new_size | 要重新分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| void* FXMEM_ReallocDebug | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
| void * | pointer, | ||
| size_t | new_size, | ||
| int | flags, | ||
| FX_LPCSTR | file, | ||
| int | line | ||
| ) |
Foxit调试模式基本内存重分配函数。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | pointer | 指向内存块的指针。 |
| [in] | new_size | 要重新分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void FXMEM_ReportOOM | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
报告内存不足(OOM)。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| void FXMEM_ResetSystemMgr | ( | ) |
重置当前模块的Foxit系统内存管理器。
| void FXMEM_SetConfig | ( | const FX_MEMCONFIG * | memConfig | ) |
设置固定内存的配置。
此函数对于桌面平台是可选的,应该在启动应用程序时首先调用以更改默认配置, 在初始化固定内存管理器之前。
| [in] | memConfig | 指向内存配置的指针。 |
| void FXMEM_SetDefaultMgr | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
为当前编译模块(EXE、DLL等)设置默认Foxit管理器。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| void FXMEM_SetOOMHandler | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
| FPDF_OOM_Handler | pOOMReportFunc, | ||
| void * | param | ||
| ) |
为Foxit内存管理器设置内存不足处理程序。
| [in] | pFoxitMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | pOOMReportFunc | 指向内存不足处理程序的指针。 |
| [in] | param | 用于回调的用户数据的通用无类型指针。 |
| int FXMEM_SetPyConfig | ( | size_t | lowByteRange, |
| size_t | highByteRange | ||
| ) |
设置Python内存的配置。
此函数是可选的,当设置配置时,Python内存管理器只能在 lowByteRange和highByteRange之间分配。
| [in] | lowByteRange | 指定的低字节范围。 |
| [in] | highByteRange | 指定的高字节范围。 |
| void FXMEM_UseDebugger | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
| FXMEM_Debugger * | pDebugger | ||
| ) |
使用捕获所有内存活动的内存调试器。对参数 pDebugger 使用 NULL 停止调试。
| [in] | pFoxitMgr | 指向要调试的FXMEM_FoxitMgr对象的指针。 |
| [in] | pDebugger | 指向FXMEM_Debugger对象的指针。 |
| FX_INT64 FXSYS_atoi64 | ( | FX_LPCSTR | str | ) |
将ANSI字符串转换为整数。
| [in] | str | ANSI字符串。 |
将整数转换为ANSI字符串。
| [in] | value | 整数。 |
| [in] | str | |
| [in] | radix | 值的基数;必须在2-36范围内。 |
| FX_LPCWSTR FXSYS_i64tow | ( | FX_INT64 | value, |
| FX_LPWSTR | str, | ||
| int | radix | ||
| ) |
将整数转换为宽字符串。
| [in] | value | 整数。 |
| [in] | str | |
| [in] | radix | 值的基数;必须在2-36范围内。 |
| FX_INT32 FXSYS_memcmp32 | ( | const void * | buf1, |
| const void * | buf2, | ||
| size_t | size | ||
| ) |
比较两个缓冲区中的数据。
输入缓冲区应从4字节对齐位置开始,但大小可以是任意值。
| [in] | buf1 | 第一个缓冲区指针。 |
| [in] | buf2 | 第二个缓冲区指针。 |
| [in] | size | 要比较的数据长度,以字节为单位。 |
| void* FXSYS_memcpy32 | ( | void * | dst, |
| const void * | src, | ||
| size_t | size | ||
| ) |
从源缓冲区复制数据到目标缓冲区。
参数 dst 和 src 应从4字节对齐位置开始,但大小可以是任意值。
| [in,out] | dst | 目标缓冲区指针。 |
| [in] | src | 要复制的源缓冲区指针。 |
| [in] | size | 要复制的数据长度,以字节为单位。 |
| void* FXSYS_memmove32 | ( | void * | dst, |
| const void * | src, | ||
| size_t | size | ||
| ) |
将源缓冲区数据移动到目标缓冲区。
| [in,out] | dst | 目标缓冲区指针。 |
| [in] | src | 源缓冲区指针。 |
| [in] | size | 要移动的源缓冲区数据长度,以字节为单位。 |
| void* FXSYS_memset32 | ( | void * | dst, |
| FX_INT32 | v, | ||
| size_t | size | ||
| ) |
将缓冲区数据设置为指定值。
参数 dst 应从4字节对齐位置开始,但大小可以是任意值。
| [in,out] | dst | 目标缓冲区指针。 |
| [in] | v | 要设置的值。 |
| [in] | size | 要设置的数据长度,以字节为单位。 |
| void* FXSYS_memset8 | ( | void * | dst, |
| FX_BYTE | v, | ||
| size_t | size | ||
| ) |
将缓冲区数据设置为指定值。
参数 dst 应从4字节对齐位置开始,但大小可以是任意值。
| [in,out] | dst | 目标缓冲区指针。 |
| [in] | v | 要设置的值。 |
| [in] | size | 要设置的数据长度,以字节为单位。 |
| int FXSYS_round | ( | FX_FLOAT | f | ) |
获取最接近的整数
| [in] | f | 浮点值。 |
| FX_INT32 FXSYS_wtoi | ( | FX_LPCWSTR | str | ) |
将宽字符串转换为整数。
| [in] | str | 宽字符串。 |
| FX_INT64 FXSYS_wtoi64 | ( | FX_LPCWSTR | str | ) |
将宽字符串转换为整数。
| [in] | str | 宽字符串。 |
| int FXWCHAR_GetDirection | ( | FX_WCHAR | wchar | ) |
检查Unicode是否为空格。
| [in] | wchar | Unicode字符。 |
检查Unicode是否可以断词。
| [in] | wchar | Unicode字符。 |
|
inline |
此方法检索由索引号指定的单个字节。
| [in] | index | 指定字节字符串中基于零的索引。 |
|
inline |
检索由索引号指定的单个字节。
| [in] | index | 指定字节字符串中基于零的索引。 |
|
inline |
获取由索引号指定的单个字节。
| [in] | nIndex | 指定字节字符串中基于零的索引。 |
|
inline |
检索由索引号指定的单个宽字符。
| [in] | nIndex | 指定宽字符串中从零开始的索引。 |
|
pure virtual |
获取块数据的内部缓冲区。
|
pure virtual |
获取内部缓冲区中数据的偏移量。
此偏移量从流的开头开始。
|
pure virtual |
获取内部缓冲区中数据的大小。
|
pure virtual |
获取当前内存缓冲区。
| FX_LPSTR CFX_ByteString::GetBuffer | ( | FX_STRSIZE | len | ) |
获取分配了指定字节数的缓冲区。
此字符串的内容不会被函数CFX_ByteString::GetBuffer影响。 调用者可以修改返回的缓冲区,并应在修改完成后调用函数CFX_ByteString::ReleaseBuffer。
| [in] | len | 期望获取的长度。 |
| FX_LPWSTR CFX_WideString::GetBuffer | ( | FX_STRSIZE | len | ) |
获取已分配指定数量字符的缓冲区。
| [in] | len | 期望获取的长度。 |
|
inline |
获取指向字节字符串的常量字符字符串指针。
| FX_FLOAT CFX_WideString::GetFloat | ( | ) | const |
转换为其他数据类型。
| FX_DWORD CFX_ByteStringC::GetID | ( | FX_STRSIZE | start_pos = 0 | ) | const |
从特定位置获取字符串的DWORD标识符。
此DWORD可用于快速比较。使用MSB优先方案。如果字符串没有 足够的字节,则缺失的字节将使用零。
| [in] | start_pos | 常量字节字符串中的起始位置。 |
| FX_DWORD CFX_ByteString::GetID | ( | FX_STRSIZE | start_pos = 0 | ) | const |
| int CFX_WideString::GetInteger | ( | ) | const |
转换为其他数据类型。
|
inline |
获取字节字符串的长度。
|
inline |
获取字节字符串中的字节数(不计算任何可能的终止符)。
|
inline |
获取字节字符串的长度。
|
inline |
获取字符数,不是字节数。不计算尾随零。
|
pure virtual |
获取当前路径字符串。
| [out] | wsPath | 接收当前文件路径。 |
|
inlinevirtual |
获取流中当前的读取位置。
实现了 IFX_StreamRead.
被 IFX_ChunkFileStream, IFX_FileStream , 以及 CFX_CachedFileRead 重载.
|
virtual |
|
pure virtual |
获取流中当前的读取位置。
在 IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, CFX_CachedFileRead , 以及 IFX_FileRead 内被实现.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
获取指向字节字符串的常量字节字符串指针。
|
inline |
获取指向字符串缓冲区的C风格字符串指针。
|
inline |
获取指向宽字符串的常量宽字符串指针。
|
virtual |
|
inline |
获取字符串的长度。
|
pure virtual |
获取文件的总大小
在 IFX_ChunkFileStream, IFX_FileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
获取文件的总大小。
在 IFX_ChunkFileStream, IFX_FileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
获取当前流的大小,以字节为单位。
实现了 IFX_FileWrite.
在 IFX_ChunkFileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
|
inline |
获取缓冲字节字符串。
|
inline |
获取非缓冲字节字符串。
| FX_BOOL CFX_CachedFileRead::Init | ( | FX_INT32 | nChunkSize, |
| FX_INT32 | nChunkCount, | ||
| FX_LPVOID | pBuffer, | ||
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
初始化分块大小和分块数量。
| [in] | nChunkSize | 每个分块的大小。 |
| [in] | nChunkCount | 分块的总数量。 |
| [in] | pBuffer | 外部缓冲区。NULL表示禁用缓存。 |
| [in] | pAllocator | 此类中使用的分配器。NULL表示使用默认分配器。 默认值:NULL。 |
| FX_STRSIZE CFX_ByteString::Insert | ( | FX_STRSIZE | index, |
| FX_CHAR | ch | ||
| ) |
在指定位置之前插入字符。
| [in] | index | 指定字节字符串中基于零的索引。 |
| [in] | ch | 单个字符。 |
| FX_STRSIZE CFX_WideString::Insert | ( | FX_STRSIZE | index, |
| FX_WCHAR | ch | ||
| ) |
在指定位置之前插入宽字符。
| [in] | index | 指定宽字符串中的零基索引。 |
| [in] | ch | 单个宽字符。 |
|
pure virtual |
确定当前模式是否为连续模式。
|
inline |
检查当前字符串对象是否为空。
|
inline |
检查当前字符串对象是否为空。
|
inline |
判断当前字符串对象是否为空。
|
inline |
检查当前字符串对象是否为空。
|
inlinevirtual |
确定是否到达流的末尾。
实现了 IFX_StreamRead.
被 IFX_ChunkFileStream, IFX_FileStream , 以及 CFX_CachedFileRead 重载.
|
virtual |
|
pure virtual |
确定是否到达流的末尾。
在 IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, CFX_CachedFileRead , 以及 IFX_FileRead 内被实现.
|
pure virtual |
确定是否到达流的末尾。
重载 IFX_FileRead .
在 IFX_ChunkFileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
|
pure virtual |
| CFX_ByteString CFX_ByteString::Left | ( | FX_STRSIZE | count | ) | const |
从此CFX_ByteString对象中提取第一个(最左边)count个字节作为子字符串。
| [in] | count | 期望为子字符串提取的字节数。 |
|
inline |
从此CFX_WideStringC对象中提取第一个(最左边)count个宽字符作为子字符串。
| [in] | count | 期望为子字符串提取的宽字符数。 |
| CFX_WideString CFX_WideString::Left | ( | FX_STRSIZE | count | ) | const |
从此CFX_WideString对象中提取前(最左边)count个宽字符作为子字符串。
| [in] | count | 为子字符串期望提取的宽字符数量。 |
| void CFX_ByteString::Load | ( | FX_LPCBYTE | str, |
| FX_STRSIZE | len | ||
| ) |
从字节字符串加载。
| [in] | str | 指向常量字节字符串的指针。 |
| [in] | len | 字节字符串的长度。 |
|
static |
加载文件的全部内容。
| [in] | file_path | 文件路径。 |
| FX_LPSTR CFX_ByteString::LockBuffer | ( | ) |
锁定并获取当前字符串缓冲区,以便调用者可以修改返回的缓冲区。
调用者可以修改返回的缓冲区,并应在修改完成后调用函数CFX_ByteString::ReleaseBuffer。
| FX_LPWSTR CFX_WideString::LockBuffer | ( | ) |
锁定并获取当前字符串缓冲区,以便调用者可以修改返回的缓冲区。 调用者可以修改返回的缓冲区,并在修改完成后调用CFX_WideString::ReleaseBuffer。
| void CFX_ByteString::MakeLower | ( | ) |
将英文字母的大小写更改为小写。
| void CFX_WideString::MakeLower | ( | ) |
将英文字母的大小写更改为小写。
| void CFX_ByteString::MakeUpper | ( | ) |
将英文字母的大小写更改为大写。
| void CFX_WideString::MakeUpper | ( | ) |
将英文字母的大小写更改为大写。
| CFX_ByteString CFX_ByteString::Mid | ( | FX_STRSIZE | first | ) | const |
从此CFX_ByteString对象中提取子字符串,从位置nFirst(基于零)开始到最后。
| [in] | first | 指定此CFX_ByteString对象中起始位置的基于零的索引。 |
| CFX_WideString CFX_WideString::Mid | ( | FX_STRSIZE | first | ) | const |
从此CFX_WideString对象中提取子字符串,从位置nFirst(零基)开始到结束。
| [in] | first | 指定此CFX_WideString对象中起始位置的零基索引。 |
| CFX_ByteString CFX_ByteString::Mid | ( | FX_STRSIZE | first, |
| FX_STRSIZE | count | ||
| ) | const |
从此CFX_ByteString对象中提取count个字节的子字符串,从位置nFirst(基于零)开始到最后。
| [in] | first | 指定此CFX_ByteString对象中起始位置的基于零的索引。 |
| [in] | count | 期望为子字符串提取的字节数。 |
| CFX_WideString CFX_WideString::Mid | ( | FX_STRSIZE | first, |
| FX_STRSIZE | count | ||
| ) | const |
从此CFX_WideString对象中提取count个宽字符的子字符串, 从位置nFirst(零基)开始到结束。
| [in] | first | 指定此CFX_WideString对象中起始位置的零基索引。 |
| [in] | count | 为子字符串期望提取的宽字符数量。 |
|
inline |
此方法从此CFX_ByteStringC对象中提取长度为count字节的子字符串, 从位置index(基于零)开始。
| [in] | index | 指定CFX_ByteStringC对象中基于零的索引。 |
| [in] | count | 指定要从此CFX_ByteStringC对象中提取的字节数。 |
|
inline |
从此CFX_WideStringC对象中提取长度为count字节的子字符串,从位置index(基于零)开始。
| [in] | index | 指定CFX_WideStringC对象中基于零的索引。 |
| [in] | count | 指定要从此CFX_WideStringC对象中提取的字节数。 |
|
inline |
此转换运算符访问CFX_ByteStringC对象中引用的字节字符串。
|
inline |
比较(!=)运算符重载。区分大小写。
| [in] | str | 要比较的以null结尾的字节字符串。 |
|
inline |
比较(!=)运算符重载。区分大小写。
| [in] | str | CFX_ByteStringC对象的常量引用。 |
| bool operator!= | ( | const CFX_WideString & | s1, |
| const CFX_WideString & | s2 | ||
| ) |
比较(!=)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符串。 |
| [in] | s2 | 第二个宽字符串。 |
| bool operator!= | ( | const CFX_WideString & | s1, |
| const CFX_WideStringC & | s2 | ||
| ) |
比较(!=)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符串。 |
| [in] | s2 | 第二个宽字符串。 |
| bool operator!= | ( | const CFX_WideString & | s1, |
| FX_LPCWSTR | s2 | ||
| ) |
比较(!=)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符串。 |
| [in] | s2 | 第二个宽字符字符串。 |
| bool operator!= | ( | const CFX_WideStringC & | s1, |
| const CFX_WideString & | s2 | ||
| ) |
比较(!=)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符串。 |
| [in] | s2 | 第二个宽字符串。 |
|
inline |
比较(!=)运算符重载。区分大小写。
| [in] | str | CFX_WideStringC对象的常量引用。 |
|
inline |
比较(!=)运算符重载。区分大小写。
| [in] | str | 要比较的以null结尾的常量字节字符串。 |
|
inline |
比较(!=)运算符重载。区分大小写。
| [in] | str | 要比较的以null结尾的字符字符串。 |
| bool operator!= | ( | FX_LPCWSTR | s1, |
| const CFX_WideString & | s2 | ||
| ) |
比较(!=)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符字符串。 |
| [in] | s2 | 第二个宽字符串。 |
|
inline |
连接缓冲字节字符串和缓冲字节字符串。
| [in] | str1 | 缓冲字节字符串。 |
| [in] | str2 | 缓冲字节字符串。 |
|
inline |
连接缓冲字节字符串和非缓冲字节字符串。
| [in] | str1 | 缓冲字节字符串。 |
| [in] | str2 | 非缓冲字节字符串。 |
|
inline |
连接缓冲字节字符串和单个字符或字节。
| [in] | str1 | 缓冲字节字符串。 |
| [in] | ch | 单个字符或字节。 |
|
inline |
连接缓冲字节字符串和以零结尾的C风格字符串。
| [in] | str1 | 缓冲字节字符串。 |
| [in] | str2 | 以零结尾的C风格字符串。 |
|
inline |
连接带缓冲字节字符串和带缓冲字节字符串。
| [in] | str1 | 带缓冲宽字符串。 |
| [in] | str2 | 带缓冲宽字符串。 |
|
inline |
连接带缓冲字节字符串和非缓冲字节字符串。
| [in] | str1 | 带缓冲宽字符串。 |
| [in] | str2 | 非缓冲宽字符串。 |
|
inline |
连接带缓冲宽字符串和以零结尾的C风格字符串。
| [in] | str1 | 带缓冲宽字符串。 |
| [in] | str2 | 以零结尾的C风格字符串。 |
|
inline |
连接带缓冲字节字符串和单个字符或字节。
| [in] | str1 | 带缓冲宽字符串。 |
| [in] | ch | 单个字符。 |
|
inline |
连接非缓冲字节字符串和带缓冲字节字符串。
| [in] | str1 | 非缓冲宽字符串。 |
| [in] | str2 | 带缓冲宽字符串。 |
|
inline |
连接非缓冲宽字符串和非缓冲宽字符串。
| [in] | str1 | 非缓冲宽字符串。 |
| [in] | str2 | 非缓冲宽字符串。 |
|
inline |
连接非缓冲字节字符串和以零结尾的C风格字符串
| [in] | str1 | 非缓冲宽字符串。 |
| [in] | str2 | 以零结尾的C风格字符串。 |
|
inline |
连接非缓冲字节字符串和单个字符或字节。
| [in] | str1 | 非缓冲宽字符串。 |
| [in] | ch | 单个字符。 |
|
inline |
连接非缓冲字节字符串和缓冲字节字符串。
| [in] | str1 | 非缓冲字节字符串。 |
| [in] | str2 | 缓冲字节字符串。 |
|
inline |
连接非缓冲字节字符串和非缓冲字节字符串。
| [in] | str1 | 非缓冲字节字符串。 |
| [in] | str2 | 非缓冲字节字符串。 |
|
inline |
连接非缓冲字节字符串和单个字符或字节。
| [in] | str1 | 非缓冲字节字符串。 |
| [in] | ch | 单个字符或字节。 |
|
inline |
连接非缓冲字节字符串和以零结尾的C风格字符串
| [in] | str1 | 非缓冲字节字符串。 |
| [in] | str2 | 以零结尾的C风格字符串。 |
|
inline |
连接单个字符或字节和缓冲字节字符串。
| [in] | ch | 单个字符或字节。 |
| [in] | str2 | 缓冲字节字符串。 |
|
inline |
连接单个字符或字节和非缓冲字节字符串。
| [in] | ch | 单个字符或字节。 |
| [in] | str2 | 非缓冲字节字符串。 |
|
inline |
连接以零结尾的C风格字符串和缓冲字节字符串。
| [in] | str1 | 以零结尾的C风格字符串。 |
| [in] | str2 | 缓冲字节字符串。 |
|
inline |
连接以零结尾的C风格字符串和非缓冲字节字符串。
| [in] | str1 | 以零结尾的C风格字符串。 |
| [in] | str2 | 非缓冲字节字符串。 |
|
inline |
连接以零结尾的C风格字符串和带缓冲字节字符串。
| [in] | str1 | 以零结尾的C风格字符串。 |
| [in] | str2 | 带缓冲宽字符串。 |
|
inline |
连接以零结尾的C风格字符串和非缓冲字节字符串。
| [in] | str1 | 以零结尾的C风格字符串。 |
| [in] | str2 | 非缓冲宽字符串。 |
|
inline |
连接单个字符或字节和带缓冲字节字符串。
| [in] | ch | 单个字符。 |
| [in] | str2 | 带缓冲宽字符串。 |
|
inline |
连接单个字符或字节和非缓冲字节字符串。
| [in] | ch | 单个字符。 |
| [in] | str2 | 非缓冲宽字符串。 |
| const CFX_ByteString& CFX_ByteString::operator+= | ( | const CFX_ByteString & | str | ) |
连接(+=)运算符重载。连接CFX_ByteString对象。
| [in] | str | 常量CFX_ByteString对象的引用。 |
| const CFX_WideString& CFX_WideString::operator+= | ( | const CFX_WideString & | str | ) |
连接(+=)运算符重载。连接宽字符串。
| [in] | str | 输入的宽字符串。 |
| const CFX_WideString& CFX_WideString::operator+= | ( | const CFX_WideStringC & | str | ) |
连接(+=)运算符重载。连接常量宽字符串。
| [in] | str | 输入的宽字符串。 |
| const CFX_ByteString& CFX_ByteString::operator+= | ( | FX_BSTR | bstrc | ) |
连接(+=)运算符重载。连接常量CFX_ByteStringC对象。
| [in] | bstrc | 常量CFX_ByteStringC对象的引用。 |
| const CFX_ByteString& CFX_ByteString::operator+= | ( | FX_CHAR | ch | ) |
连接(+=)运算符重载。连接单个字符。
| [in] | ch | 单个字符。 |
| const CFX_ByteString& CFX_ByteString::operator+= | ( | FX_LPCSTR | str | ) |
连接(+=)运算符重载。连接以空字符结尾的字符串。
| [in] | str | 指向常量以空字符结尾的字符串的指针。 |
| const CFX_WideString& CFX_WideString::operator+= | ( | FX_LPCWSTR | str | ) |
连接(+=)运算符重载。连接宽字符字符串。
| [in] | str | 宽字符字符串。 |
| const CFX_WideString& CFX_WideString::operator+= | ( | FX_WCHAR | ch | ) |
连接(+=)运算符重载。连接单个宽字符。
| [in] | ch | 单个宽字符。 |
| bool CFX_ByteString::operator< | ( | const CFX_ByteString & | rhs | ) | const |
比较(<)运算符重载。区分大小写。
| [in] | rhs | 右侧字符串。 |
| bool operator< | ( | const CFX_WideString & | lhs, |
| const CFX_WideString & | rhs | ||
| ) |
比较(<)操作符重载。区分大小写。
| [in] | lhs | 左侧宽字符串。 |
| [in] | rhs | 右侧宽字符串。 |
| const CFX_ByteString& CFX_ByteString::operator= | ( | const CFX_BinaryBuf & | buf | ) |
赋值(=)运算符重载。来自CFX_BinaryBuf对象。
| [in] | buf | 常量CFX_BinaryBuf对象的引用。 |
|
inline |
赋值(=)运算符重载。来自CFX_ByteString对象。
| [in] | src | CFX_ByteString对象的常量引用。 |
| const CFX_ByteString& CFX_ByteString::operator= | ( | const CFX_ByteString & | stringSrc | ) |
赋值(=)运算符重载。来自CFX_ByteString对象。
| [in] | stringSrc | 常量CFX_ByteString对象的引用。 |
|
inline |
赋值(=)运算符重载。来自CFX_ByteStringC对象。
| [in] | src | CFX_ByteStringC对象的常量引用。 |
|
inline |
赋值(=)运算符重载。来自CFX_ByteString对象。
| [in] | src | CFX_ByteString对象的常量引用。 |
| const CFX_WideString& CFX_WideString::operator= | ( | const CFX_WideString & | stringSrc | ) |
赋值(=)运算符重载。来自宽字符串。
| [in] | stringSrc | 输入的宽字符串。 |
|
inline |
赋值(=)运算符重载。来自CFX_WideStringC对象。
| [in] | src | CFX_ByteStringC对象的常量引用。 |
| const CFX_WideString& CFX_WideString::operator= | ( | const CFX_WideStringC & | stringSrc | ) |
赋值(=)运算符重载。来自常量宽字符串。
| [in] | stringSrc | 输入的宽字符串。 |
| const CFX_ByteString& CFX_ByteString::operator= | ( | FX_BSTR | bstrc | ) |
赋值(=)运算符重载。来自常量字节字符串。
| [in] | bstrc | 常量字节字符串的引用。 |
|
inline |
赋值(=)运算符重载。来自字符字符串。
| [in] | src | 指向常量字符字符串的指针。 |
| const CFX_ByteString& CFX_ByteString::operator= | ( | FX_LPCSTR | str | ) |
赋值(=)运算符重载。来自字符字符串。
| [in] | str | 指向常量字符字符串的指针。 |
|
inline |
赋值(=)运算符重载。来自字符串。
| [in] | src | 指向常量字符串的指针。 |
| const CFX_WideString& CFX_WideString::operator= | ( | FX_LPCWSTR | str | ) |
赋值(=)运算符重载。来自宽字符字符串。
| [in] | str | 宽字符字符串。 |
| bool CFX_ByteString::operator== | ( | const CFX_ByteString & | str | ) | const |
比较(==)运算符重载。区分大小写。
| [in] | str | 要比较的以null结尾的字节字符串。 |
|
inline |
比较(==)运算符重载。区分大小写。
| [in] | str | CFX_ByteStringC对象的常量引用。 |
| bool operator== | ( | const CFX_WideString & | s1, |
| const CFX_WideString & | s2 | ||
| ) |
比较(==)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符串。 |
| [in] | s2 | 第二个宽字符串。 |
| bool operator== | ( | const CFX_WideString & | s1, |
| const CFX_WideStringC & | s2 | ||
| ) |
比较(==)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符串。 |
| [in] | s2 | 第二个宽字符串。 |
| bool operator== | ( | const CFX_WideString & | s1, |
| FX_LPCWSTR | s2 | ||
| ) |
比较(==)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符串。 |
| [in] | s2 | 第二个宽字符字符串。 |
| bool operator== | ( | const CFX_WideStringC & | s1, |
| const CFX_WideString & | s2 | ||
| ) |
比较(==)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符串。 |
| [in] | s2 | 第二个宽字符串。 |
|
inline |
比较(==)运算符重载。区分大小写。
| [in] | str | CFX_ByteStringC对象的常量引用。 |
|
inline |
比较(==)运算符重载。区分大小写。
| [in] | str | 要比较的以null结尾的常量字节字符串。 |
|
inline |
比较(==)运算符重载。区分大小写。
| [in] | str | 要比较的以null结尾的字符字符串。 |
| bool operator== | ( | FX_LPCWSTR | s1, |
| const CFX_WideString & | s2 | ||
| ) |
比较(==)操作符重载。区分大小写。
| [in] | s1 | 第一个宽字符字符串。 |
| [in] | s2 | 第二个宽字符串。 |
|
inline |
下标([])运算符重载。它检索由nIndex中基于零的索引指定的单个字节。
| [in] | nIndex | 指定字节字符串中基于零的索引。 |
|
inline |
下标([])运算符重载。它检索由nIndex中零基索引指定的宽字符。
| [in] | nIndex | 指定宽字符串中的零基索引。 |
预缓存。
| [in] | offset | 偏移量。 |
| [in] | nCacheCount | 缓存数量。 |
|
virtual |
从文件中读取数据块
| [in,out] | buffer | 指向接收读取数据的缓冲区的指针 |
| [in] | offset | 从文件开头的字节偏移量 |
| [in] | size | 块的字节数。 |
实现了 IFX_FileStream.
|
pure virtual |
从文件中读取数据块。
| [in,out] | buffer | 指向接收读取数据的缓冲区的指针 |
| [in] | offset | 从文件开头开始的字节偏移量 |
| [in] | size | 块的字节数。 |
在 IFX_ChunkFileStream, IFX_FileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
从流中读取数据块。
| [in,out] | buffer | 指向接收数据的缓冲区的指针。 |
| [in] | offset | 从文件开头的字节偏移量,即读取数据的位置。 |
| [in] | size | 要从流中读取的字节数。 |
实现了 IFX_FileRead.
在 IFX_ChunkFileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
从流中读取数据块。
| [in,out] | buffer | 指向接收数据的缓冲区的指针。 |
| [in] | offset | 从文件开头的字节偏移量,即读取数据的位置。 |
| [in] | size | 要从流中读取的字节数。 |
实现了 IFX_FileStream.
|
inlinevirtual |
从流中读取数据块。
| [in,out] | buffer | 存储数据的缓冲区。 |
| [in] | size | 缓冲区的总大小,以字节为单位。 |
实现了 IFX_StreamRead.
被 IFX_ChunkFileStream, IFX_FileStream , 以及 CFX_CachedFileRead 重载.
|
virtual |
从流中读取数据块。
| [in,out] | buffer | 用于存储数据的缓冲区。 |
| [in] | size | 缓冲区的总大小,以字节为单位。 |
实现了 IFX_FileStream.
|
pure virtual |
从顺序流中读取数据块。
| [in,out] | buffer | 存储数据的缓冲区。 |
| [in] | size | 缓冲区的总大小,以字节为单位。 |
在 IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, CFX_CachedFileRead , 以及 IFX_FileRead 内被实现.
|
pure virtual |
从流中读取数据块。
| [in,out] | buffer | 用于存储数据的缓冲区。 |
| [in] | size | 缓冲区的总大小,以字节为单位。 |
重载 IFX_FileRead .
在 IFX_ChunkFileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
从流中读取数据块。
| [in,out] | buffer | 用于存储数据的缓冲区。 |
| [in] | size | 缓冲区的总大小,以字节为单位。 |
实现了 IFX_FileStream.
|
pure virtual |
从顺序流中读取数据块。
| [in,out] | buffer | 用于存储数据的缓冲区。 |
| [in] | size | 缓冲区的总大小,以字节为单位。 |
实现了 IFX_StreamRead.
读取顺序流中的下一个块。
| [in] | bRestart | 指示从流的开头读取数据。默认值:false。 |
|
protectedvirtual |
|
pure virtual |
释放所有资源时调用。
在 IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, IFX_FileRead , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
释放所有资源时调用
实现了 IFX_StreamRead.
在 IFX_ChunkFileStream, IFX_FileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
|
pure virtual |
|
pure virtual |
销毁当前实例。
|
pure virtual |
| void CFX_ByteString::ReleaseBuffer | ( | FX_STRSIZE | len = -1 | ) |
释放由函数CFX_ByteString::GetBuffer或 CFX_ByteString::LockBuffer获取的缓冲区,并设置修改后字符串的长度。
如果参数len为-1,则假定它是以零结尾的字符串。
| [in] | len | 期望释放到的长度。默认值:-1。 |
| void CFX_WideString::ReleaseBuffer | ( | FX_STRSIZE | len = -1 | ) |
释放由函数CFX_WideString::GetBuffer或 CFX_WideString::LockBuffer获取的缓冲区,并设置修改后字符串的长度。
| [in] | len | 期望释放到的长度。-1表示假定当前字符串是一个以零结尾的字符串。 |
| FX_STRSIZE CFX_ByteString::Remove | ( | FX_CHAR | ch | ) |
删除特定字符的所有出现。
| [in] | ch | 指定要删除的字符。 |
| FX_STRSIZE CFX_WideString::Remove | ( | FX_WCHAR | ch | ) |
移除特定字符的所有出现。
| [in] | ch | 指定要移除的字符。 |
| FX_STRSIZE CFX_ByteString::Replace | ( | FX_BSTR | lpszOld, |
| FX_BSTR | lpszNew | ||
| ) |
将字符串中的所有模式替换为新的子字符串。
| [in] | lpszOld | 指定要在字节字符串中匹配和替换的字符串。 |
| [in] | lpszNew | 指定要替换的字符串。 |
| FX_STRSIZE CFX_WideString::Replace | ( | FX_LPCWSTR | lpszOld, |
| FX_LPCWSTR | lpszNew | ||
| ) |
用新的子字符串替换字符串中的所有模式。
| [in] | lpszOld | 指定要在宽字符串中匹配和替换的字符串。 |
| [in] | lpszNew | 指定要替换的字符串。 |
| void CFX_ByteString::Reserve | ( | FX_STRSIZE | len | ) |
保留可以容纳指定字节数的缓冲区。
此字符串的内容不会改变。这可以在应用程序预期 字符串可能增长多次时使用,在这种情况下,保留更大的缓冲区将支持字符串增长 而无需缓冲区重新分配。
| [in] | len | 期望保留的长度。 |
| void CFX_WideString::Reserve | ( | FX_STRSIZE | len | ) |
保留可容纳指定数量字符的缓冲区。
| [in] | len | 期望保留的长度。 |
|
protectedvirtual |
|
pure virtual |
|
protectedpure virtual |
|
pure virtual |
创建共享实例。
| FX_STRSIZE CFX_ByteString::ReverseFind | ( | FX_CHAR | ch | ) | const |
从字符串末尾查找字符
| [in] | ch | 要在当前字符串中从末尾查找的字符。 |
| CFX_ByteString CFX_ByteString::Right | ( | FX_STRSIZE | count | ) | const |
从此CFX_ByteString对象中提取最后(最右边)count个字节作为子字符串。
| [in] | count | 期望为子字符串提取的字节数。 |
|
inline |
从此CFX_WideStringC对象中提取最后(最右边)count个宽字符作为子字符串。
| [in] | count | 期望为子字符串提取的宽字符数。 |
| CFX_WideString CFX_WideString::Right | ( | FX_STRSIZE | count | ) | const |
从此CFX_WideString对象中提取最后(最右边)count个宽字符作为子字符串。
| [in] | count | 为子字符串期望提取的宽字符数量。 |
| void CFX_ByteString::SetAt | ( | FX_STRSIZE | nIndex, |
| FX_CHAR | ch | ||
| ) |
覆盖由索引号指定的单个字节。
| [in] | nIndex | 指定字节字符串中基于零的索引。 |
| [in] | ch | 单个字符。 |
| void CFX_WideString::SetAt | ( | FX_STRSIZE | nIndex, |
| FX_WCHAR | ch | ||
| ) |
覆写由索引号指定的单个宽字符。
| [in] | nIndex | 指定宽字符串中的零基索引。 |
| [in] | ch | 单个宽字符。 |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
设置访问范围。
| [in] | offset | |
| [in] | size |
| void CFX_ByteString::TrimLeft | ( | ) |
从字节字符串的左侧修剪空白字符。
| void CFX_WideString::TrimLeft | ( | ) |
从宽字符串的左侧修剪空白字符。
| void CFX_ByteString::TrimLeft | ( | FX_BSTR | lpszTargets | ) |
从字节字符串左侧修剪指定字符的连续出现。
| [in] | lpszTargets | 指定的字符。 |
| void CFX_ByteString::TrimLeft | ( | FX_CHAR | chTarget | ) |
从字节字符串左侧修剪指定字符的连续出现。
| [in] | chTarget | 指定的字符。 |
| void CFX_WideString::TrimLeft | ( | FX_LPCWSTR | lpszTargets | ) |
从宽字符串的左侧修剪指定字符集的连续出现。
| [in] | lpszTargets | 指定字符集。 |
| void CFX_WideString::TrimLeft | ( | FX_WCHAR | chTarget | ) |
从宽字符串的左侧修剪指定字符的连续出现。
| [in] | chTarget | 指定字符。 |
| void CFX_ByteString::TrimRight | ( | ) |
从字节字符串的右侧修剪空白字符。
| void CFX_WideString::TrimRight | ( | ) |
从宽字符串的右侧修剪空白字符。
| void CFX_ByteString::TrimRight | ( | FX_BSTR | lpszTargets | ) |
从字节字符串右侧修剪指定字符的连续出现。
| [in] | lpszTargets | 指定的字符。 |
| void CFX_ByteString::TrimRight | ( | FX_CHAR | chTarget | ) |
从字节字符串右侧修剪指定字符的连续出现。
| [in] | chTarget | 指定的字符。 |
| void CFX_WideString::TrimRight | ( | FX_LPCWSTR | lpszTargets | ) |
从宽字符串的右侧修剪指定字符集的连续出现。
| [in] | lpszTargets | 指定字符集。 |
| void CFX_WideString::TrimRight | ( | FX_WCHAR | chTarget | ) |
从宽字符串的右侧修剪指定字符的连续出现。
| [in] | chTarget | 指定字符。 |
| CFX_ByteString CFX_WideString::UTF16LE_Encode | ( | FX_BOOL | bTerminate = true | ) | const |
进行UTF16LE编码。
| [in] | bTerminate |
| CFX_WideString CFX_ByteString::UTF8Decode | ( | ) | const |
解码UTF-8 unicode字符串(假设此字节字符串是UTF-8编码的)。
| CFX_ByteString CFX_WideString::UTF8Encode | ( | ) | const |
进行UTF8编码。
|
pure virtual |
将数据块写入流中。
| [in] | buffer | 指向数据块的指针。 |
| [in] | offset | 从文件开头的字节偏移量,即写入数据的位置。 |
| [in] | size | 缓冲区的长度,以字节为单位。 |
实现了 IFX_FileWrite.
在 IFX_ChunkFileStream , 以及 CFX_CachedFileRead 内被实现.
|
pure virtual |
将数据块写入流中。
| [in] | buffer | 指向数据块的指针。 |
| [in] | offset | 从文件开头的字节偏移量,即写入数据的位置。 |
| [in] | size | 缓冲区的长度,以字节为单位。 |
实现了 IFX_FileStream.
|
inlinevirtual |
将数据块写入当前流的末尾。
| [in] | buffer | 指向数据块的指针。 |
| [in] | size | 缓冲区的长度,以字节为单位。 |
重载 IFX_FileWrite .
被 IFX_ChunkFileStream 重载.
|
inlinevirtual |
将数据块写入当前流的末尾。
| [in] | buffer | 指向数据块的指针。 |
| [in] | size | 缓冲区的长度,以字节为单位。 |
重载 IFX_FileStream .
|
pure virtual |
写入数据块。
| [in] | pData | 数据块。 |
| [in] | offset | 从文件开头开始的字节偏移量 |
| [in] | size | 数据块的字节长度。 |
在 IFX_ChunkFileStream, IFX_FileStream , 以及 CFX_CachedFileRead 内被实现.
|
inlinevirtual |
将数据块写入到末尾。
| [in] | pData | 数据块。 |
| [in] | size | 数据块的字节长度。 |
实现了 IFX_StreamWrite.
被 IFX_ChunkFileStream , 以及 IFX_FileStream 重载.
|
pure virtual |
写入数据块。
| [in] | pData | 数据块。 |
| [in] | size | 数据块的字节长度。 |
在 IFX_FileWrite, IFX_ChunkFileStream , 以及 IFX_FileStream 内被实现.
|
static |
字符串的长度。
| [in] | str | 字符串。 |
| void*(* FXMEM_SystemMgr::Alloc) (struct _FXMEM_SystemMgr *pMgr, size_t size, int flags) |
指向分配函数的指针类型。
函数原型:
void* Alloc(FXMEM_SystemMgr* pMgr, size_t size, int flags);
| [in] | pMgr | 指向FXMEM_SystemMgr对象的指针。 |
| [in] | size | 要分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| void*(* FXMEM_SystemMgr::AllocDebug) (struct _FXMEM_SystemMgr *pMgr, size_t size, int flags, FX_LPCSTR file, int line) |
指向调试模式分配函数的指针类型。
函数原型:
void* AllocDebug(FXMEM_SystemMgr* pMgr, size_t size, int flags, FX_LPCSTR file, int line);
| [in] | pMgr | 指向FXMEM_SystemMgr对象的指针。 |
| [in] | size | 要分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void(* FXMEM_SystemMgr::CollectAll) (struct _FXMEM_SystemMgr *pMgr) |
指向内存收集函数的指针类型。
函数原型:
void CollectAll(FXMEM_SystemMgr* pMgr);
| [in] | pMgr | 指向FXMEM_SystemMgr对象的指针。 |
| FX_HTHREAD(* FX_THREADHANDLER::CreateThread) (FX_LPVOID pUserData, FX_INT32 nPriority, size_t szStack, FX_CALLBACK_ThreadProc lpfThreadProc, FX_LPVOID param) |
创建线程的回调函数。
| [in] | pUserData | 指向用户数据的指针。 |
| [in] | nPriority | 线程优先级,默认设置为0。 |
| [in] | szStack | 线程的堆栈大小,默认设置为0。 |
| [in] | lpfThreadProc | 线程过程的函数地址。 |
| [in] | param | 传递给线程过程的用户参数。 |
从当前线程退出的回调函数。
| [in] | pUserData | 指向用户数据的指针。 |
| void(* FXMEM_SystemMgr::Free) (struct _FXMEM_SystemMgr *pMgr, void *pointer, int flags) |
指向释放函数的指针类型。
函数原型:
void Free(FXMEM_SystemMgr* pMgr, void* pointer, int flags);
| [in] | pMgr | 指向FXMEM_SystemMgr对象的指针。 |
| [in] | pointer | 指向内存块的指针。 |
| [in] | flags | 内存分配属性。 |
| void(* FXMEM_SystemMgr2::Free) (struct _FXMEM_SystemMgr2 *pMgr, void *memory) |
当额外的内存池变为空时调用。
| [in] | pMgr | 指向FXMEM_SystemMgr2对象的指针。 |
| [in] | memory | 指向内存块的指针。 |
获取当前线程句柄的回调函数。
| [in] | pUserData | 指向用户数据的指针。 |
获取线程优先级的回调函数。
| [in] | pUserData | 指向用户数据的指针。 |
| [in] | hThread | 指定要获取优先级的线程句柄。 |
| void*(* FXMEM_SystemMgr::Lock) (struct _FXMEM_SystemMgr *pMgr, void *handle) |
指向锁定函数的指针类型。
函数原型:
void Lock(FXMEM_SystemMgr* pMgr, void* handle);
| [in] | pMgr | 指向FXMEM_SystemMgr对象的指针。 |
| [in] | handle | 内存块的句柄。 |
| void*(* IFX_Allocator::m_Alloc) (struct _IFX_Allocator *pAllocator, size_t size) |
指向分配函数的指针类型。
函数原型为:
void* Alloc(IFX_Allocator* pAllocator, size_t size);
| [in] | pAllocator | 指向IFX_Allocator对象的指针。 |
| [in] | size | 要分配的字节大小。 |
| void*(* IFX_Allocator::m_AllocDebug) (struct _IFX_Allocator *pAllocator, size_t size, FX_LPCSTR file, int line) |
指向调试模式分配函数的指针类型。
函数原型为:
void* AllocDebug(IFX_Allocator* pAllocator, size_t size, FX_LPCSTR filename, int line);
| [in] | pAllocator | 指向IFX_Allocator对象的指针。 |
| [in] | size | 要分配的字节大小。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| FX_CHAR CFX_StringBufTemplate< limit >::m_Buffer[limit] |
固定字符串缓冲区。
| void(* IFX_Allocator::m_Free) (struct _IFX_Allocator *pAllocator, void *p) |
指向释放函数的指针类型。
函数原型为:
void free(IFX_Allocator* pAllocator, void* p);
| [in] | pAllocator | 指向IFX_Allocator对象的指针。 |
| [in] | p | 内存块的地址。 |
| void*(* IFX_Allocator::m_Realloc) (struct _IFX_Allocator *pAllocator, void *p, size_t size) |
指向重分配函数的指针类型。
函数原型为:
void* Realloc(IFX_Allocator* pAllocator, void* p, size_t size);
| [in] | pAllocator | 指向IFX_Allocator对象的指针。 |
| [in] | p | 要重分配的指针。 |
| [in] | size | 要重分配的新字节大小。 |
| void*(* IFX_Allocator::m_ReallocDebug) (struct _IFX_Allocator *pAllocator, void *p, size_t size, FX_LPCSTR file, int line) |
指向调试模式重分配函数的指针类型。
函数原型为:
void* ReallocDebug(IFX_Allocator* pAllocator, void* p, size_t size, FX_LPCSTR filename, int line);
| [in] | pAllocator | 指向IFX_Allocator对象的指针。 |
| [in] | p | 要重分配的指针。 |
| [in] | size | 要重分配的新字节大小。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| FX_BOOL(* FXMEM_SystemMgr2::More) (struct _FXMEM_SystemMgr2 *pMgr, size_t alloc_size, void **new_memory, size_t *new_size) |
当固定内存管理器需要更多内存时调用。
| [in] | pMgr | 指向FXMEM_SystemMgr2对象的指针。 |
| [in] | alloc_size | API尝试分配的大小。 |
| [out] | new_memory | 接收新分配的内存。 |
| [out] | new_size | 接收新分配的大小。新分配的大小应至少为alloc_size + 32。 |
| void(* FXMEM_Debugger::OnAlloc) (FXMEM_FoxitMgr *pMgr, void *p, size_t size, int flags) |
指向分配回调函数的指针类型。
函数原型:
void OnAlloc(FXMEM_FoxitMgr* pMgr, void* p, size_t size, int flags);
| [in] | pMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | p | 分配的内存块地址。 |
| [in] | size | 分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| void(* FXMEM_Debugger::OnAllocDebug) (FXMEM_FoxitMgr *pMgr, void *p, size_t size, int flags, FX_LPCSTR file, int line) |
指向调试模式分配回调函数的指针类型。
函数原型:
void OnAllocDebug(FXMEM_FoxitMgr* pMgr, void* p, size_t size, int flags, FX_LPCSTR file, int line);
| [in] | pMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | p | 分配的内存块地址。 |
| [in] | size | 分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void(* FXMEM_Debugger::OnFree) (FXMEM_FoxitMgr *pMgr, void *p, int flags) |
指向释放回调函数的指针类型。
函数原型:
void OnFree(FXMEM_FoxitMgr* pMgr, void* p, int flags);
| [in] | pMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | p | 要释放的内存块地址。 |
| [in] | flags | 内存分配属性。 |
| void(* FXMEM_Debugger::OnRealloc) (FXMEM_FoxitMgr *pMgr, void *old_p, void *new_p, size_t size, int flags) |
指向重分配回调函数的指针类型。
函数原型:
void OnRealloc(FXMEM_FoxitMgr* pMgr, void* old_p, void* new_p, size_t size, int flags);
| [in] | pMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | old_p | 旧内存块的地址。 |
| [in] | new_p | 新内存块的地址。 |
| [in] | size | 重新分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| void(* FXMEM_Debugger::OnReallocDebug) (FXMEM_FoxitMgr *pMgr, void *old_p, void *new_p, size_t size, int flags, FX_LPCSTR file, int line) |
指向调试模式重分配回调函数的指针类型。
函数原型:
void OnReallocDebug(FXMEM_FoxitMgr* pMgr, void* old_p, void* new_p, size_t size, int flags, FX_LPCSTR file, int line);
| [in] | pMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | old_p | 旧内存块的地址。 |
| [in] | new_p | 新内存块的地址。 |
| [in] | size | 重新分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void(* FXMEM_Debugger::OnTag) (FXMEM_FoxitMgr *pMgr, FX_LPCSTR tag) |
指向标签回调函数的指针类型。
函数原型:
void OnTag(FXMEM_FoxitMgr* pMgr, FX_LPCSTR tag);
| [in] | pMgr | 指向FXMEM_FoxitMgr对象的指针。 |
| [in] | tag | 标签字符串。 |
| void(* FXMEM_SystemMgr::Purge) (struct _FXMEM_SystemMgr *pMgr) |
指向清理函数的指针类型,可用于清理多余的内存而不触及任何使用中的内存。
函数原型:
void Purge(FXMEM_SystemMgr* pMgr);
| [in] | pMgr | 指向FXMEM_SystemMgr对象的指针。 |
| void*(* FXMEM_SystemMgr::Realloc) (struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags) |
指向重分配函数的指针类型。
函数原型:
void* Realloc(FXMEM_SystemMgr* pMgr, void* pointer, size_t size, int flags);
| [in] | pMgr | 指向FXMEM_SystemMgr对象的指针。 |
| [in] | pointer | 指向内存块的指针。 |
| [in] | size | 要重新分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| void*(* FXMEM_SystemMgr::ReallocDebug) (struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags, FX_LPCSTR file, int line) |
指向调试模式重分配函数的指针类型。
函数原型:
void ReallocDebug(FXMEM_SystemMgr* pMgr, void* pointer, size_t size, int flags, FX_LPCSTR file, int line);
| [in] | pMgr | 指向FXMEM_SystemMgr对象的指针。 |
| [in] | pointer | 指向内存块的指针。 |
| [in] | size | 要重新分配的字节大小。 |
| [in] | flags | 内存分配属性。 |
| [in] | file | 当前源文件的名称。 |
| [in] | line | 当前源文件中的行号。 |
| void(* FX_THREADHANDLER::SetThreadPriority) (FX_LPVOID pUserData, FX_HTHREAD hThread, FX_INT32 nPriority) |
设置线程优先级的回调函数。
| [in] | pUserData | 指向用户数据的指针。 |
| [in] | hThread | 指定要设置优先级的线程句柄。 |
| [in] | nPriority | 线程优先级代码。 |
| FX_INT32 FXCRT_DATETIMEZONE::tzHour |
时区的小时,从-12到12。
东时区为正值,西时区为负值。
| void(* FXMEM_SystemMgr::Unlock) (struct _FXMEM_SystemMgr *pMgr, void *handle) |
指向解锁函数的指针类型。
函数原型:
void Unlock(FXMEM_SystemMgr* pMgr, void* handle);
| [in] | pMgr | 指向FXMEM_SystemMgr对象的指针。 |
| [in] | handle | 内存块的句柄。 |
| FX_INT32(* FX_THREADHANDLER::WaitForMultipleThreads) (FX_LPVOID pUserData, const FX_HTHREAD *pThreads, FX_INT32 nCount) |
等待多个线程终止。
| [in] | pUserData | 指向用户数据的指针。 |
| [in] | pThreads | 指向线程句柄数组的指针。 |
| [in] | nCount | 数组中线程的数量。 |
等待单个线程终止。
| [in] | pUserData | 指向用户数据的指针。 |
| [in] | hThread | 指定要等待的线程句柄。 |