Post Reply 
newRPL: Adding string processing commands?
08-31-2017, 03:15 AM (This post was last modified: 08-31-2017 03:22 AM by Claudio L..)
Post: #13
RE: newRPL: Adding string processing commands?
(08-31-2017 01:29 AM)smartin Wrote:  It looks like in the latest ROM (0.9-Alpha-Build 849) the following string commands are available:
STR->
->STR
OBJ->
SIZE
POS
REPL
SUB
HEAD
TAIL

But the following (in 50g stock ROM) are not yet there:
NUM
CHR

Are there others that I'm missing? Or is this still an active area of development?

-Steve

String management is complete. Those 2 commands will not be implemented, they are being replaced with →UTF8 and UTF8→. The main reason to rename them is to remind people that you are no longer reading a byte from the string, but decoding/encoding a Unicode code point.
*EDIT*: I just recalled that I renamed them also because CHR creates a DOCHAR object, which doesn't exist in newRPL.
Other commands are:
SREPL
→UTF8
UTF8→
SREV
NTOKENS
NTHTOKEN
NTHTOKENPOS
TRIM
RTRIM
STRLEN
STRLENCP
→NFC
POS
POSREV
NPOS
NPOSREV
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL: Adding string processing commands? - Claudio L. - 08-31-2017 03:15 AM



User(s) browsing this thread: 1 Guest(s)