UtfSeek: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
The function returns the byte position at specified character position. | The function returns the byte position at specified character position. | ||
Line 11: | Line 10: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theString:''' The [[string]]. | *'''theString:''' The [[string]]. | ||
*'''position:''' An [[int]] with the specified | *'''position:''' An [[int]] with the specified character position. | ||
===Returns=== | ===Returns=== | ||
Line 21: | Line 20: | ||
local teststring = "Hello World" | local teststring = "Hello World" | ||
local testseek = utfSeek ( teststring, 5 ) | local testseek = utfSeek ( teststring, 5 ) | ||
outputChatBox ( | outputChatBox ( testseek ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> |
Latest revision as of 10:42, 21 May 2023
The function returns the byte position at specified character position.
Syntax
int utfSeek ( string theString, int position )
Required Arguments
Returns
Returns an int if the function was successful, false otherwise.
Example
Click to collapse [-]
Examplelocal teststring = "Hello World" local testseek = utfSeek ( teststring, 5 ) outputChatBox ( testseek )
See Also
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace