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
manual:chapter3:strings [2017/09/09 20:01]
claudio [Commands for strings]
manual:chapter3:strings [2017/09/09 20:07] (current)
claudio [Commands for strings]
Line 25: Line 25:
 | ''​→NFC''​ | Normalize a string to Unicode NFC | ''"​Hello World" →NFC''​ yields ''"​Hello World"''​| | ''​→NFC''​ | Normalize a string to Unicode NFC | ''"​Hello World" →NFC''​ yields ''"​Hello World"''​|
 | ''​UTF8→''​ | Convert string to list of Unicode Code Points | ''"​abcd"​ UTF8→''​ yields ''​{ #61h #62h #63h #64h }''​ | | ''​UTF8→''​ | Convert string to list of Unicode Code Points | ''"​abcd"​ UTF8→''​ yields ''​{ #61h #62h #63h #64h }''​ |
-| ''​→UTF8''​ | Convert list of Unicode Code Points to a string | ''​{ #61h #62h #63h #64h } →UTF8''​ yields ''"​abcd"''​| +| ''​→UTF8''​ | Convert list of Unicode Code Points to a UTF8 string | ''​{ #61h #62h #63h #64h } →UTF8''​ yields ''"​abcd"''​| 
-| ''​SIZE''​ | Return the number of bytes in a string | ''"​Hello World" SIZE''​ yields ''​11''​|+| ''​SIZE''​ | Return the number of bytes used by UTF8 string | ''"​Hello World" SIZE''​ yields ''​11''​|
 | ''​STRLEN''​ | Returns the length of the string, in characters | ''"​Hello World" STRLEN''​ yields ''​11''​ | | ''​STRLEN''​ | Returns the length of the string, in characters | ''"​Hello World" STRLEN''​ yields ''​11''​ |
-| ''​STRLENCP''​ | Returns the mumber ​of Unicode Code Points in a string | ''"​Hello World" STRLEN''​ yields ''​11''​ |+| ''​STRLENCP''​ | Returns the number ​of Unicode Code Points in a string | ''"​Hello World" STRLEN''​ yields ''​11''​ |
 | ''​POS''​ | Returns the position of a substring within a string (0 if not found) | ''"​Hello World" "​Wor"​ POS''​ yields ''​7''​| | ''​POS''​ | Returns the position of a substring within a string (0 if not found) | ''"​Hello World" "​Wor"​ POS''​ yields ''​7''​|
 | ''​POSREV''​ | Returns the position of the substring counting from end of sting (0 if not found) | ''"​Hello World" "​Wor"​ POSREV''​ yields ''​3''​ | | ''​POSREV''​ | Returns the position of the substring counting from end of sting (0 if not found) | ''"​Hello World" "​Wor"​ POSREV''​ yields ''​3''​ |
-| ''​NPOS''​ | | | +| ''​NPOS''​ | Same as ''​POS'',​ but starting the search from position N | | 
-| ''​NPOSREV''​ | | |+| ''​NPOSREV''​ | Same as ''​POSREV''​ starting at position N | |
 | ''​SREV''​ | Reverse the string | ''"​Hello World" SREV''​ yields ''"​dlroW olleH"''​ | | ''​SREV''​ | Reverse the string | ''"​Hello World" SREV''​ yields ''"​dlroW olleH"''​ |
 | ''​REPL''​ | Replace part of a string with another at the specified position | ''"​Hello World" 7 "​Universe"​ REPL''​ yields ''"​Hello Universe"''​| | ''​REPL''​ | Replace part of a string with another at the specified position | ''"​Hello World" 7 "​Universe"​ REPL''​ yields ''"​Hello Universe"''​|
  • manual/chapter3/strings.1505012518.txt.gz
  • Last modified: 2017/09/09 20:01
  • by claudio