Open
Description
Some blocks I think is needed. Just like:
- power
- binary AND
- binary OR
- binary XOR
- binary INVERT
- repeat a string
- slice of a string
- compare two strings with case sensitivity
- get a character's UTF-8 code value
- replace some string to another string in a string
- convert all letters in string into uppercase/lowercase
And I wish “binary AND” can merge into “<<boolean> and <boolean>>” block, “binary OR” can merge into “<<boolean> or <boolean>>” block, “binary INVERT” can merge into “<not <boolean>>” block.
The other blocks are here for the advice:
- ((number) ^ (number)) {power}
- ((number) XOR (number)) {binary XOR}
- [repeat [string] for (number) times] {repeat a string}
- [get [string] from letter (number) to letter (number)] {slice of a string}
- <[string] == [string]> {compare two strings with case sensitivity}
- (get [string]'s UTF-8 code value) {get a character's UTF-8 code value}
- [replace [string that be replaced] with [string that will replace with] in [current string]] {replace some string to another string in a string}
Some examples of these:
- ((9) ^ (4)) => (6561)
- ((68) XOR (72)) => (12)
- [repeat [Hello!] for (4) times] => [Hello!Hello!Hello!Hello!]
- [get [example-string] from letter (7) to letter (12)] => [e-stri]
- <[Hello] == [hello]> => <false>
- (get [好]'s UTF-8 code value) => (22909)
- [replace [old] with [new] in [a-old-string-with-a-old-word]] => [a-new-string-with-a-new-word]