AR_Engine_SDK
|
Functions | |
function XSys | IsFileExist (szFileName) end |
function XSys | DeleteFile (szFile) end |
function XSys | CopyFile (src, des, bFailIfExists) end |
function XSys | MoveFile (src, des) end |
function XSys | DeleteDirectory (szDir) end |
function XSys | CreateDirectory (szDir) end |
function XSys | GetFilesInDirectory (arrFiles, szDir) end |
function XSys | GetFilesInDirectory (szDir) end |
function XSys | GetDirectoriesInDirectory (arrDirectories, szDir) end |
function XSys | GetDirectoriesInDirectory (szDir) end |
function XSys | GetBaseDirectory (szBaseDir) end |
function XSys | GetDocumentsDirectory (szDocumentDir) end |
function XSys | GetFileTimeStamp (szFileName) end |
function XSys | GetFileSize (szFileName) end |
function XSys | ChangeFileAttributes (szFileName, mode) end |
function XSys | GetVersion (strVersion) end |
function XSys | GetVersion () end |
function XSys | GetMilliSecond () end |
function XSys | GetMicroSecond () end |
function XSys | GetTimeSince1970 () end |
function XSys | GMTime (_time, atm) end |
function XSys | GMTime (_time) end |
function XSys | LocalTime (_time, atm) end |
function XSys | LocalTime (_time) end |
function XSys | TimeGM (atm) end |
function XSys | TimeLocal (atm) end |
function XSys | GetCurGMTime (atm, piMilliSec) end |
function XSys | GetCurGMTime (piMilliSec) end |
function XSys | GetCurLocalTime (atm, piMilliSec) end |
function XSys | GetCurLocalTime (piMilliSec) end |
function XSys | Sleep (nMilliSecond) end |
function XSys | OutputDebug (szDebugInfo) end |
function XSys | MessageBox (pTextKey, pOptionKey, uType, timeout) end |
function XSys | MessageBox_CText (pTextKey, pOptionKey, uType, timeout) end |
function XSys | CopyDataToPasteboard (pData) end |
function XSys | GetPastebordData (data) end |
function XSys | GetPastebordData () end |
function XSys | IsUnicodeSpace (ch) end |
function XSys | IsCJKUnicode (ch) end |
function XSys | IsUnicodeNonBreaking (ch) end |
function XSys | ParseUnicodeFromUTF8Str (szUTF8, pnAdvancedInUtf8Str, nUtf8StrMaxLen) end |
function XSys | ParseUnicodeFromUTF8StrEx (szUTF8, iParsePos, piParsedHeadPos, pnUtf8ByteCounts, nUtf8StrMaxLen) end |
function XSys | UTF16Len (sz16) end |
function XSys | UTF8ToUTF16LE (sz16, sz8) end |
function XSys | UTF16LEToUTF8 (sz8, sz16) end |
function XSys | CPPTextToGB2312 (szDest, szSrc, iSrcLen, nDestBufferMaxSize) end |
function XSys | GB2312ToCPPText (szDest, szSrc, iSrcLen, nDestBufferMaxSize) end |
function XSys | GB2312ToUTF8 (szDest, szSrc, iSrcLen, nDestBufferMaxSize) end |
function XSys | UTF8ToGB2312 (szDest, szSrc, iSrcLen, nDestBufferMaxSize) end |
function XSys | GB2132ToFileNameEncoding (szDest, szSrc, nDestBufferMaxSize) end |
function XSys | UTF8TOUTF32 (szDest, szSrc, iSrcLen, nDestBufferMaxSize) end |
function XSys | AccessFile (path, mode) end |
function XSys | SetFileSize (fd, size) end |
function XSys | XtoInt64 (szString) end |
function XSys | StrCmpNoCase (sz1, sz2) end |
function XSys | Strlwr (str) end |
function XSys | Strupr (str) end |
function XSys | Fileno (_File) end |
function XSys | IsNan (f) end |
Variables | |
XSys = {} | |
function XSys AccessFile | ( | path | , |
mode | |||
) |
XSys_AccessFile00
path | string |
mode | number |
function XSys ChangeFileAttributes | ( | szFileName | , |
mode | |||
) |
XSys_ChangeFileAttributes00
szFileName | string |
mode | number |
function XSys CopyDataToPasteboard | ( | pData | ) |
XSys_CopyDataToPasteboard00
pData | string |
function XSys CopyFile | ( | src | , |
des | , | ||
bFailIfExists | |||
) |
XSys_CopyFile00
src | string |
des | string |
bFailIfExists | boolean |
function XSys CPPTextToGB2312 | ( | szDest | , |
szSrc | , | ||
iSrcLen | , | ||
nDestBufferMaxSize | |||
) |
XSys_CPPTextToGB231200
szDest | string |
szSrc | string |
iSrcLen | number |
nDestBufferMaxSize | number |
function XSys CreateDirectory | ( | szDir | ) |
创建目录,不会递归创建
szDir | string [类型][constchar]目录 |
function XSys DeleteDirectory | ( | szDir | ) |
删除目录及其内部的所有文件
szDir | string [类型][constchar]目录 |
function XSys DeleteFile | ( | szFile | ) |
XSys_DeleteFile00
szFile | string |
function XSys Fileno | ( | _File | ) |
XSys_Fileno00
_File | FILE |
function XSys GB2132ToFileNameEncoding | ( | szDest | , |
szSrc | , | ||
nDestBufferMaxSize | |||
) |
XSys_GB2132ToFileNameEncoding00
szDest | string |
szSrc | string |
nDestBufferMaxSize | number |
function XSys GB2312ToCPPText | ( | szDest | , |
szSrc | , | ||
iSrcLen | , | ||
nDestBufferMaxSize | |||
) |
XSys_GB2312ToCPPText00
szDest | string |
szSrc | string |
iSrcLen | number |
nDestBufferMaxSize | number |
function XSys GB2312ToUTF8 | ( | szDest | , |
szSrc | , | ||
iSrcLen | , | ||
nDestBufferMaxSize | |||
) |
XSys_GB2312ToUTF800
szDest | string |
szSrc | string |
iSrcLen | number |
nDestBufferMaxSize | number |
function XSys GetBaseDirectory | ( | szBaseDir | ) |
获取工作目录的绝对路径
szBaseDir | string [类型][char]目录 |
function XSys GetCurGMTime | ( | atm | , |
piMilliSec | |||
) |
XSys_GetCurGMTime00
atm | XTIME |
piMilliSec | number |
function XSys GetCurGMTime | ( | piMilliSec | ) |
XSys_GetCurGMTime01
piMilliSec | number |
function XSys GetCurLocalTime | ( | atm | , |
piMilliSec | |||
) |
XSys_GetCurLocalTime00
atm | XTIME |
piMilliSec | number |
function XSys GetCurLocalTime | ( | piMilliSec | ) |
XSys_GetCurLocalTime01
piMilliSec | number |
function XSys GetDirectoriesInDirectory | ( | arrDirectories | , |
szDir | |||
) |
遍历目录, 输出其中的文件夹名称, 输入文件夹结尾没有斜杠,返回的文件夹中不包含路径,不包含.和..
arrDirectories | string[] |
szDir | string |
function XSys GetDirectoriesInDirectory | ( | szDir | ) |
XSys_GetDirectoriesInDirectory01
szDir | string |
function XSys GetDocumentsDirectory | ( | szDocumentDir | ) |
获取可以写入文档的目录,ios 上并不是所有目录下都能写文件的
szDocumentDir | string [类型][char]目录 |
function XSys GetFilesInDirectory | ( | arrFiles | , |
szDir | |||
) |
遍历目录, 输入文件夹结尾没有斜杠,返回的文件名中不包含路径
arrFiles | string[] [类型][XArray<XString>]获取到的文件名数组 |
szDir | string |
function XSys GetFilesInDirectory | ( | szDir | ) |
XSys_GetFilesInDirectory01
szDir | string |
function XSys GetFileSize | ( | szFileName | ) |
XSys_GetFileSize00
szFileName | string |
function XSys GetFileTimeStamp | ( | szFileName | ) |
获取文件改动的时间戳
szFileName | string |
function XSys GetMicroSecond | ( | ) |
XSys_GetMicroSecond00
function XSys GetMilliSecond | ( | ) |
XSys_GetMilliSecond00
function XSys GetPastebordData | ( | data | ) |
XSys_GetPastebordData00
data | string |
function XSys GetPastebordData | ( | ) |
XSys_GetPastebordData01
function XSys GetTimeSince1970 | ( | ) |
XSys_GetTimeSince197000
function XSys GetVersion | ( | strVersion | ) |
XSys_GetVersion00
strVersion | string |
function XSys GetVersion | ( | ) |
XSys_GetVersion01
function XSys GMTime | ( | _time | , |
atm | |||
) |
XSys_GMTime00
_time | number |
atm | XTIME |
function XSys GMTime | ( | _time | ) |
XSys_GMTime01
_time | number |
function XSys IsCJKUnicode | ( | ch | ) |
XSys_IsCJKUnicode00
ch | number |
function XSys IsFileExist | ( | szFileName | ) |
XSys_IsFileExist00
szFileName | string |
function XSys IsNan | ( | f | ) |
XSys_IsNan00
f | number |
function XSys IsUnicodeNonBreaking | ( | ch | ) |
XSys_IsUnicodeNonBreaking00
ch | number |
function XSys IsUnicodeSpace | ( | ch | ) |
XSys_IsUnicodeSpace00
ch | number |
function XSys LocalTime | ( | _time | , |
atm | |||
) |
XSys_LocalTime00
_time | number |
atm | XTIME |
function XSys LocalTime | ( | _time | ) |
XSys_LocalTime01
_time | number |
function XSys MessageBox | ( | pTextKey | , |
pOptionKey | , | ||
uType | , | ||
timeout | |||
) |
XSys_MessageBox00
pTextKey | string |
pOptionKey | string |
uType | number |
timeout | number |
function XSys MessageBox_CText | ( | pTextKey | , |
pOptionKey | , | ||
uType | , | ||
timeout | |||
) |
XSys_MessageBox_CText00
pTextKey | string |
pOptionKey | string |
uType | number |
timeout | number |
function XSys MoveFile | ( | src | , |
des | |||
) |
XSys_MoveFile00
src | string |
des | string |
function XSys OutputDebug | ( | szDebugInfo | ) |
输出信息到调试窗口
szDebugInfo | string |
function XSys ParseUnicodeFromUTF8Str | ( | szUTF8 | , |
pnAdvancedInUtf8Str | , | ||
nUtf8StrMaxLen | |||
) |
XSys_ParseUnicodeFromUTF8Str00
szUTF8 | string |
pnAdvancedInUtf8Str | number |
nUtf8StrMaxLen | number |
function XSys ParseUnicodeFromUTF8StrEx | ( | szUTF8 | , |
iParsePos | , | ||
piParsedHeadPos | , | ||
pnUtf8ByteCounts | , | ||
nUtf8StrMaxLen | |||
) |
XSys_ParseUnicodeFromUTF8StrEx00
szUTF8 | string |
iParsePos | number |
piParsedHeadPos | number |
pnUtf8ByteCounts | number |
nUtf8StrMaxLen | number |
XSys_SetFileSize00
fd | number |
size | number |
function XSys Sleep | ( | nMilliSecond | ) |
让当前线程睡眠
nMilliSecond | number |
function XSys StrCmpNoCase | ( | sz1 | , |
sz2 | |||
) |
XSys_StrCmpNoCase00
sz1 | string |
sz2 | string |
function XSys Strlwr | ( | str | ) |
XSys_Strlwr00
str | string |
function XSys Strupr | ( | str | ) |
XSys_Strupr00
str | string |
function XSys TimeGM | ( | atm | ) |
XSys_TimeGM00
atm | XTIME |
function XSys TimeLocal | ( | atm | ) |
XSys_TimeLocal00
atm | XTIME |
function XSys UTF16Len | ( | sz16 | ) |
XSys_UTF16Len00
sz16 | number |
function XSys UTF16LEToUTF8 | ( | sz8 | , |
sz16 | |||
) |
XSys_UTF16LEToUTF800
sz8 | string |
sz16 | number |
function XSys UTF8ToGB2312 | ( | szDest | , |
szSrc | , | ||
iSrcLen | , | ||
nDestBufferMaxSize | |||
) |
XSys_UTF8ToGB231200
szDest | string |
szSrc | string |
iSrcLen | number |
nDestBufferMaxSize | number |
function XSys UTF8ToUTF16LE | ( | sz16 | , |
sz8 | |||
) |
XSys_UTF8ToUTF16LE00
sz16 | number |
sz8 | string |
function XSys UTF8TOUTF32 | ( | szDest | , |
szSrc | , | ||
iSrcLen | , | ||
nDestBufferMaxSize | |||
) |
XSys_UTF8TOUTF3200
szDest | number |
szSrc | string |
iSrcLen | number |
nDestBufferMaxSize | number |
function XSys XtoInt64 | ( | szString | ) |
XSys_XtoInt6400
szString | string |
XSys = {} |