AR_Engine_SDK
Functions | Variables
XSys.lua File Reference
类 XSys 继承关系图:
Inheritance graph
类 BaseStackStringConverter 继承关系图:
Inheritance graph
类 UTF8ToGBConverter 继承关系图:
Inheritance graph
类 GBToUTF8Converter 继承关系图:
Inheritance graph
类 CTextToGBConverter 继承关系图:
Inheritance graph
类 GBToCTextConverter 继承关系图:
Inheritance graph
类 UTF16ToUTF8Converter 继承关系图:
Inheritance graph
类 UTF8ToUTF16Converter 继承关系图:
Inheritance graph
类 WCharToUTF8Converter 继承关系图:
Inheritance graph
类 UTF8ToWCharConverter 继承关系图:
Inheritance graph
类 WCharToCharConverter 继承关系图:
Inheritance graph
类 CharToWCharConverter 继承关系图:
Inheritance graph

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 Documentation

◆ AccessFile()

function XSys AccessFile ( path  ,
mode   
)

XSys_AccessFile00

Parameters
pathstring
modenumber
Returns
number

◆ ChangeFileAttributes()

function XSys ChangeFileAttributes ( szFileName  ,
mode   
)

XSys_ChangeFileAttributes00

Parameters
szFileNamestring
modenumber
Returns
number

◆ CopyDataToPasteboard()

function XSys CopyDataToPasteboard ( pData  )

XSys_CopyDataToPasteboard00

Parameters
pDatastring
Returns
boolean

◆ CopyFile()

function XSys CopyFile ( src  ,
des  ,
bFailIfExists   
)

XSys_CopyFile00

Parameters
srcstring
desstring
bFailIfExistsboolean
Returns
boolean

◆ CPPTextToGB2312()

function XSys CPPTextToGB2312 ( szDest  ,
szSrc  ,
iSrcLen  ,
nDestBufferMaxSize   
)

XSys_CPPTextToGB231200

Parameters
szDeststring
szSrcstring
iSrcLennumber
nDestBufferMaxSizenumber
Returns
number

◆ CreateDirectory()

function XSys CreateDirectory ( szDir  )

创建目录,不会递归创建

Parameters
szDirstring [类型][constchar]目录
Returns
boolean [类型][bool]是否成功

◆ DeleteDirectory()

function XSys DeleteDirectory ( szDir  )

删除目录及其内部的所有文件

Parameters
szDirstring [类型][constchar]目录
Returns
boolean [类型][bool]是否删除成功

◆ DeleteFile()

function XSys DeleteFile ( szFile  )

XSys_DeleteFile00

Parameters
szFilestring
Returns
boolean

◆ Fileno()

function XSys Fileno ( _File  )

XSys_Fileno00

Parameters
_FileFILE
Returns
number

◆ GB2132ToFileNameEncoding()

function XSys GB2132ToFileNameEncoding ( szDest  ,
szSrc  ,
nDestBufferMaxSize   
)

XSys_GB2132ToFileNameEncoding00

Parameters
szDeststring
szSrcstring
nDestBufferMaxSizenumber
Returns
number

◆ GB2312ToCPPText()

function XSys GB2312ToCPPText ( szDest  ,
szSrc  ,
iSrcLen  ,
nDestBufferMaxSize   
)

XSys_GB2312ToCPPText00

Parameters
szDeststring
szSrcstring
iSrcLennumber
nDestBufferMaxSizenumber
Returns
number

◆ GB2312ToUTF8()

function XSys GB2312ToUTF8 ( szDest  ,
szSrc  ,
iSrcLen  ,
nDestBufferMaxSize   
)

XSys_GB2312ToUTF800

Parameters
szDeststring
szSrcstring
iSrcLennumber
nDestBufferMaxSizenumber
Returns
number

◆ GetBaseDirectory()

function XSys GetBaseDirectory ( szBaseDir  )

获取工作目录的绝对路径

Parameters
szBaseDirstring [类型][char]目录
Returns
boolean [类型][bool]是否成功

◆ GetCurGMTime() [1/2]

function XSys GetCurGMTime ( atm  ,
piMilliSec   
)

XSys_GetCurGMTime00

Parameters
atmXTIME
piMilliSecnumber
Returns
void

◆ GetCurGMTime() [2/2]

function XSys GetCurGMTime ( piMilliSec  )

XSys_GetCurGMTime01

Parameters
piMilliSecnumber
Returns
XTIME
void

◆ GetCurLocalTime() [1/2]

function XSys GetCurLocalTime ( atm  ,
piMilliSec   
)

XSys_GetCurLocalTime00

Parameters
atmXTIME
piMilliSecnumber
Returns
void

◆ GetCurLocalTime() [2/2]

function XSys GetCurLocalTime ( piMilliSec  )

XSys_GetCurLocalTime01

Parameters
piMilliSecnumber
Returns
XTIME
void

◆ GetDirectoriesInDirectory() [1/2]

function XSys GetDirectoriesInDirectory ( arrDirectories  ,
szDir   
)

遍历目录, 输出其中的文件夹名称, 输入文件夹结尾没有斜杠,返回的文件夹中不包含路径,不包含.和..

Parameters
arrDirectoriesstring[]
szDirstring
Returns
boolean

◆ GetDirectoriesInDirectory() [2/2]

function XSys GetDirectoriesInDirectory ( szDir  )

XSys_GetDirectoriesInDirectory01

Parameters
szDirstring
Returns
string[]
boolean

◆ GetDocumentsDirectory()

function XSys GetDocumentsDirectory ( szDocumentDir  )

获取可以写入文档的目录,ios 上并不是所有目录下都能写文件的

Parameters
szDocumentDirstring [类型][char]目录
Returns
boolean [类型][bool]是否成功

◆ GetFilesInDirectory() [1/2]

function XSys GetFilesInDirectory ( arrFiles  ,
szDir   
)

遍历目录, 输入文件夹结尾没有斜杠,返回的文件名中不包含路径

Parameters
arrFilesstring[] [类型][XArray<XString>]获取到的文件名数组
szDirstring
Returns
boolean

◆ GetFilesInDirectory() [2/2]

function XSys GetFilesInDirectory ( szDir  )

XSys_GetFilesInDirectory01

Parameters
szDirstring
Returns
string[]
boolean

◆ GetFileSize()

function XSys GetFileSize ( szFileName  )

XSys_GetFileSize00

Parameters
szFileNamestring
Returns
number

◆ GetFileTimeStamp()

function XSys GetFileTimeStamp ( szFileName  )

获取文件改动的时间戳

Parameters
szFileNamestring
Returns
number [类型][xuint32]时间戳

◆ GetMicroSecond()

function XSys GetMicroSecond ( )

XSys_GetMicroSecond00

Returns
number

◆ GetMilliSecond()

function XSys GetMilliSecond ( )

XSys_GetMilliSecond00

Returns
number

◆ GetPastebordData() [1/2]

function XSys GetPastebordData ( data  )

XSys_GetPastebordData00

Parameters
datastring
Returns
boolean

◆ GetPastebordData() [2/2]

function XSys GetPastebordData ( )

XSys_GetPastebordData01

Returns
string
boolean

◆ GetTimeSince1970()

function XSys GetTimeSince1970 ( )

XSys_GetTimeSince197000

Returns
number

◆ GetVersion() [1/2]

function XSys GetVersion ( strVersion  )

XSys_GetVersion00

Parameters
strVersionstring
Returns
boolean

◆ GetVersion() [2/2]

function XSys GetVersion ( )

XSys_GetVersion01

Returns
string
boolean

◆ GMTime() [1/2]

function XSys GMTime ( _time  ,
atm   
)

XSys_GMTime00

Parameters
_timenumber
atmXTIME
Returns
void

◆ GMTime() [2/2]

function XSys GMTime ( _time  )

XSys_GMTime01

Parameters
_timenumber
Returns
XTIME
void

◆ IsCJKUnicode()

function XSys IsCJKUnicode ( ch  )

XSys_IsCJKUnicode00

Parameters
chnumber
Returns
boolean

◆ IsFileExist()

function XSys IsFileExist ( szFileName  )

XSys_IsFileExist00

Parameters
szFileNamestring
Returns
boolean

◆ IsNan()

function XSys IsNan ( )

XSys_IsNan00

Parameters
fnumber
Returns
boolean

◆ IsUnicodeNonBreaking()

function XSys IsUnicodeNonBreaking ( ch  )

XSys_IsUnicodeNonBreaking00

Parameters
chnumber
Returns
boolean

◆ IsUnicodeSpace()

function XSys IsUnicodeSpace ( ch  )

XSys_IsUnicodeSpace00

Parameters
chnumber
Returns
boolean

◆ LocalTime() [1/2]

function XSys LocalTime ( _time  ,
atm   
)

XSys_LocalTime00

Parameters
_timenumber
atmXTIME
Returns
void

◆ LocalTime() [2/2]

function XSys LocalTime ( _time  )

XSys_LocalTime01

Parameters
_timenumber
Returns
XTIME
void

◆ MessageBox()

function XSys MessageBox ( pTextKey  ,
pOptionKey  ,
uType  ,
timeout   
)

XSys_MessageBox00

Parameters
pTextKeystring
pOptionKeystring
uTypenumber
timeoutnumber
Returns
number

◆ MessageBox_CText()

function XSys MessageBox_CText ( pTextKey  ,
pOptionKey  ,
uType  ,
timeout   
)

XSys_MessageBox_CText00

Parameters
pTextKeystring
pOptionKeystring
uTypenumber
timeoutnumber
Returns
number

◆ MoveFile()

function XSys MoveFile ( src  ,
des   
)

XSys_MoveFile00

Parameters
srcstring
desstring
Returns
boolean

◆ OutputDebug()

function XSys OutputDebug ( szDebugInfo  )

输出信息到调试窗口

Parameters
szDebugInfostring
Returns
void

◆ ParseUnicodeFromUTF8Str()

function XSys ParseUnicodeFromUTF8Str ( szUTF8  ,
pnAdvancedInUtf8Str  ,
nUtf8StrMaxLen   
)

XSys_ParseUnicodeFromUTF8Str00

Parameters
szUTF8string
pnAdvancedInUtf8Strnumber
nUtf8StrMaxLennumber
Returns
number

◆ ParseUnicodeFromUTF8StrEx()

function XSys ParseUnicodeFromUTF8StrEx ( szUTF8  ,
iParsePos  ,
piParsedHeadPos  ,
pnUtf8ByteCounts  ,
nUtf8StrMaxLen   
)

XSys_ParseUnicodeFromUTF8StrEx00

Parameters
szUTF8string
iParsePosnumber
piParsedHeadPosnumber
pnUtf8ByteCountsnumber
nUtf8StrMaxLennumber
Returns
number

◆ SetFileSize()

function XSys SetFileSize ( fd  ,
size   
)

XSys_SetFileSize00

Parameters
fdnumber
sizenumber
Returns
number

◆ Sleep()

function XSys Sleep ( nMilliSecond  )

让当前线程睡眠

Parameters
nMilliSecondnumber
Returns
void

◆ StrCmpNoCase()

function XSys StrCmpNoCase ( sz1  ,
sz2   
)

XSys_StrCmpNoCase00

Parameters
sz1string
sz2string
Returns
number

◆ Strlwr()

function XSys Strlwr ( str  )

XSys_Strlwr00

Parameters
strstring
Returns
string

◆ Strupr()

function XSys Strupr ( str  )

XSys_Strupr00

Parameters
strstring
Returns
string

◆ TimeGM()

function XSys TimeGM ( atm  )

XSys_TimeGM00

Parameters
atmXTIME
Returns
number

◆ TimeLocal()

function XSys TimeLocal ( atm  )

XSys_TimeLocal00

Parameters
atmXTIME
Returns
number

◆ UTF16Len()

function XSys UTF16Len ( sz16  )

XSys_UTF16Len00

Parameters
sz16number
Returns
number

◆ UTF16LEToUTF8()

function XSys UTF16LEToUTF8 ( sz8  ,
sz16   
)

XSys_UTF16LEToUTF800

Parameters
sz8string
sz16number
Returns
number

◆ UTF8ToGB2312()

function XSys UTF8ToGB2312 ( szDest  ,
szSrc  ,
iSrcLen  ,
nDestBufferMaxSize   
)

XSys_UTF8ToGB231200

Parameters
szDeststring
szSrcstring
iSrcLennumber
nDestBufferMaxSizenumber
Returns
number

◆ UTF8ToUTF16LE()

function XSys UTF8ToUTF16LE ( sz16  ,
sz8   
)

XSys_UTF8ToUTF16LE00

Parameters
sz16number
sz8string
Returns
number

◆ UTF8TOUTF32()

function XSys UTF8TOUTF32 ( szDest  ,
szSrc  ,
iSrcLen  ,
nDestBufferMaxSize   
)

XSys_UTF8TOUTF3200

Parameters
szDestnumber
szSrcstring
iSrcLennumber
nDestBufferMaxSizenumber
Returns
number

◆ XtoInt64()

function XSys XtoInt64 ( szString  )

XSys_XtoInt6400

Parameters
szStringstring
Returns
number

Variable Documentation

◆ XSys

XSys = {}