Position argument added for GetCodepoint, GetCodepointNext and GetCodepointPrevious.

This commit is contained in:
jussi
2024-04-13 18:44:42 +03:00
parent b96960a1f9
commit 1d66edf4f2
11 changed files with 67 additions and 36 deletions

View File

@@ -4151,23 +4151,26 @@ function RL.GetCodepointCount( text ) end
---Get codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
---- Success return int, int
---@param text string
---@param position integer
---@return any codepoint
---@return any codepointSize
function RL.GetCodepoint( text ) end
function RL.GetCodepoint( text, position ) end
---Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
---- Success return int, int
---@param text string
---@param position integer
---@return any codepoint
---@return any codepointSize
function RL.GetCodepointNext( text ) end
function RL.GetCodepointNext( text, position ) end
---Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
---- Success return int, int
---@param text string
---@param position integer
---@return any codepoint
---@return any codepointSize
function RL.GetCodepointPrevious( text ) end
function RL.GetCodepointPrevious( text, position ) end
---Encode one codepoint into UTF-8 byte array
---- Success return string