manual:chapter3:strings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
manual:chapter3:strings [2017/09/02 12:17]
smartin [Commands for strings]
manual:chapter3:strings [2017/09/02 13:55]
smartin [Commands for strings]
Line 11: Line 11:
 | Command | Purpose | Example | | Command | Purpose | Example |
 | ''→STR'' | Convert to string | ''45,569 →STR'' yields ''"45,569"'' | | ''→STR'' | Convert to string | ''45,569 →STR'' yields ''"45,569"'' |
-| ''STR→'' | Convert from string to implied object| ''"45,569." STR→'' yields ''45.569.'' |+| ''STR→'' | Convert from string to implied object((In this case, ''OBJ→'' can also be used.))| ''"45,569." STR→'' yields ''45.569.'' |
 | ''→NFC'' | Convert to NFC | ''"Hello World" →NFC'' yields ''"Hello World"''| | ''→NFC'' | Convert to NFC | ''"Hello World" →NFC'' yields ''"Hello World"''|
 | ''UTF8→'' | Convert each character in string to Unicode UTF8 object | ''"abcd" UTF8→'' yields ''{ #61h #62h #63h #64h }'' | | ''UTF8→'' | Convert each character in string to Unicode UTF8 object | ''"abcd" UTF8→'' yields ''{ #61h #62h #63h #64h }'' |
 | ''→UTF8'' | Convert list of Unicode UTF8 objects to a string | ''{ #61h #62h #63h #64h } →UTF8'' yields ''"abcd"''| | ''→UTF8'' | Convert list of Unicode UTF8 objects to a string | ''{ #61h #62h #63h #64h } →UTF8'' yields ''"abcd"''|
-| ''SIZE'' | | | +| ''SIZE''Return the number of characters in a string ''"Hello World" SIZE'' yields ''11''
-| ''STRLEN'' | | | +| ''STRLEN''Returns the length of the string, in characters ''"Hello World" STRLEN'' yields ''11'' 
-| ''STRLENCP'' | | | +| ''STRLENCP''Returns the length of the string, in characters ''"Hello World" STRLEN'' yields ''11'' 
-| ''POS'' | | | +| ''POS''Returns the position of a substring within a string (0 if not found) ''"Hello World" "Wor" POS'' yields ''7''
-| ''POSREV'' | | |+| ''POSREV''Returns the position of the substring counting from end of sting (0 if not found) ''"Hello World" "Wor" POSREV'' yields ''3'' |
 | ''NPOS'' | | | | ''NPOS'' | | |
 | ''NPOSREV'' | | | | ''NPOSREV'' | | |
-| ''SREV'' | | | +| ''SREV''Reverse the string ''"Hello World" SREV'' yields ''"dlroW olleH"'' 
-| ''REPL'' | | | +| ''REPL''Replace part of a string with another at the specified position ''"Hello World" 7 "Universe" REPL'' yields ''"Hello Universe"''
-| ''SREPL'' | | |+| ''SREPL''Search and replace a string (return 1 if successful, 0 if not) ''"Hello World" "World" "Universe" SREPL'' yields ''"Hello Universe" 1'' |
 | ''SUB'' | | | | ''SUB'' | | |
 | ''HEAD'' | | | | ''HEAD'' | | |
  • manual/chapter3/strings.txt
  • Last modified: 2017/09/09 20:07
  • by claudio