By default, there is a Unicode type, but I would like there to be a UTF8 or ASCII type as well.
Without utf8 or ascii conversion.
Code: Select all
;without this circumstance:
Procedure c_str(txt.s) ;or UTF8()
Protected *c.Character = AllocateMemory(MemoryStringLength(@txt))
PokeS(*c, txt, -1, #PB_UTF8)
ProcedureReturn *c
EndProcedure
Example:
Code: Select all
Dim c.i(5) = {1, 2, 3, 4, 5}; //similar