//C++ change to override syntaxforEach line { if (and (contains cs "virtual") (not (endsWith cs "0;"))) { findRemove cs "virtual " findRemove cs ";" append " override;" }}
+
class Foo : public Base { virtual void foo() = 0; virtual void bar(); void baz();};
V
class Foo : public Base { virtual void foo() = 0; void bar() override; void baz();};
//C++ add const qualifiers if referenceforEach line { select (between cs "(" ")") { forEachSplitAt cs "," { if (and (contains cs "&") (not (contains cs "const"))) { select (before cs "&") { append " const" } } } }}
+
void foo(int i, Baz& baz, const Bar);void bar(Car& c, Dog const& d);void baz(double d, Struct s, Window& w);
V
void foo(int i, Baz const& baz, const Bar);void bar(Car const& c, Dog const& d);void baz(double d, Struct s, Window const& w);
//cleanup of duplicates and sortingremoveEmptyLinesremoveAnyDupe linesort line cs//stylingforEach line { select (firstN char 1) { toUpper } prepend "[ ] "}
+
milkpizzadog foodcat foodmilkapplesbananasdog foodwatermilk
V
[ ] Apples[ ] Bananas[ ] Cat food[ ] Dog food[ ] Milk[ ] Pizza[ ] Water
Action: Define what should happen with the text
acos
acos
+
0.5
>
1.0471975511965979
acosh
acosh
+
1.5
>
0.9624236501192069
alignLinesAtLeft
string
alignLinesAtLeft "="
+
double d = 4.0;int i = 3;FooBarBaz fooBarBaz = nullptr;
>
double d = 4.0;int i = 3;FooBarBaz fooBarBaz = nullptr;
alignLinesAtNthWordLeft
int
alignLinesAtNthWordLeft 1
+
let's alignratherlongword ishello world
>
let's alignratherlongword ishello world
alignLinesAtNthWordRight
int
alignLinesAtNthWordRight 1
+
let's alignratherlongword ishello world
>
let's alignratherlongword is hello world
alignLinesAtRight
string
alignLinesAtRight "="
+
double d = 4.0;int i = 3;FooBarBaz fooBarBaz = nullptr;
>
double d = 4.0; int i = 3;FooBarBaz fooBarBaz = nullptr;
alignTo
int
forEach line {alignTo 3}
+
hello world hello moon hello sun
>
hello world hello moon hello sun
append
string
append " world"
+
hello
>
hello world
appendLine
appendLine
+
hello world
>
hello world
asin
asin
+
0.5
>
0.5235987755982989
asinh
asinh
+
0.5
>
0.48121182505960347
atan
atan
+
0.5
>
0.4636476090008061
atanh
atanh
+
0.5
>
0.5493061443340549
collapseLines
collapseLines
+
hello worldsecond line
>
hello world second line
collapseWords
collapseWords
+
hello worldsecond line
>
helloworldsecondline
copyNthBwdBy
target int int
copyNthBwdBy word 3 1
+
hello dear world and moon
>
hello dear and world and moon
copyNthFwdBy
target int int
copyNthFwdBy word 1 2
+
hello dear world and moon
>
hello dear world and dear moon
cos
cos
+
2
>
-0.4161468365471424
cosh
cosh
+
0.5
>
1.1276259652063807
drop
target int
drop char 3
+
hello world
>
lo world
dropRange
target int int
dropRange char 1 3
+
hello world
>
ho world
dropRight
target int
dropRight char 3
+
hello world
>
hello wo
enumerate
target string int
enumerate char "-" 2
+
abcdefg
>
2-a3-b4-c5-d6-e7-f8-g
filter
target (condition)
filter char (number)
+
ab12c3d4
>
1234
findRemove
caseSensitivity string
findRemove cs "world"
+
hello my world
>
hello my
findReplaceAll
caseSensitivity string string
findReplaceAll cs "world" "moon"
+
hello world my world
>
hello moon my moon
findReplaceFirst
caseSensitivity string string
findReplaceFirst cs "world" "moon"
+
hello world my world
>
hello moon my world
findReplaceLast
caseSensitivity string string
findReplaceLast cs "world" "moon"
+
hello world my world
>
hello world my moon
forEach
target {actions}
forEach char {append "-"}
+
hello
>
h-e-l-l-o-
forEachBlock
{actions}
forEachBlock {append "x"}
+
hello worldgoodbye moonhowdy sun
>
hello worldgoodbye moonxhowdy sunx
forEachIndexed
target [int] {actions}
forEachIndexed char [2 4 5 6] {toUpper}
+
someverylongword
>
soMeVERylongword
forEachIndexedSplitAt
caseSensitivity string [int] {actions}
forEachIndexedSplitAt cs "," [2 3 6 8] {toUpper}
+
so,m,e,v,e,ryl,ong,wo,r,d
>
so,m,E,V,e,ryl,ONG,wo,R,d
forEachNth
target int int {actions}
forEachNth char 2 3 {toUpper}
+
someverylongword
>
somEvErYlOnGwOrD
forEachNthSplitAt
caseSensitivity string int int {actions}
forEachNthSplitAt cs "," 2 3 {toUpper}
+
so,m,e,v,e,ryl,ong,wo,r,d
>
so,m,e,V,e,RYL,ong,WO,r,D
forEachSplitAt
caseSensitivity string {actions}
forEachSplitAt ci "D" {append "x"}
+
hello worldgoodbye moon
>
hello worlxdgooxdbye moonx
if
(condition) {actions}
forEach word { if (contains cs "a") {toUpper} }
+
aa cat dog aaa
>
AA CAT dog AAA
ifAll
target (condition) {actions}
forEach word { ifAll char (upper) {toLower} }
+
Cat dOG HOUSE
>
Cat dOG house
ifAny
target (condition) {actions}
forEach word { ifAny char (upper) {toUpper} }
+
cat dOg house
>
cat DOG house
ifElse
(condition) {actions} {actions}
forEach word { ifElse (contains cs "a") {toUpper} {remove} }
+
aa cat dog aaa
>
AA CAT AAA
ifElseAll
target (condition) {actions} {actions}
forEach word { ifElseAll char (upper) {toLower} {remove} }
+
Cat dOG HOUSE
>
house
ifElseAny
target (condition) {actions} {actions}
forEach word { ifElseAny char (upper) {toUpper} {remove} }
+
cat dOg house
>
DOG
ifElseSelection
(selector) (condition) {actions} {actions}
forEach word { ifElseSelection (nth char 0) (upper) {toUpper} {toLower} }
+
heLLo wOrld Hello MoOn
>
hello world HELLO MOON
ifSelection
(selector) (condition) {actions}
forEach word { ifSelection (nth char 0) (upper) {toUpper} }
+
hello world Hello moon
>
hello world HELLO moon
indent
int
indent 3
+
hello world
>
hello world
intercalate
target string
intercalate word "_"
+
hello worldsecond line
>
hello_world_second_line
keepRange
target int int
keepRange char 1 3
+
hello world
>
ell
moveNthBwdBy
target int int
moveNthBwdBy word 3 1
+
hello dear world and moon
>
hello dear and world moon
moveNthFwdBy
target int int
moveNthFwdBy word 1 2
+
hello dear world and moon
>
hello world and dear moon
multiply
double
multiply 2.4
+
3.1
>
7.4399999999999995
permute
target [int]
permute char [0 3]
+
hello world
>
hl
prepend
string
prepend "hello "
+
world
>
hello world
prependLine
prependLine
+
hello world
>
hello world
removeAnyDupe
target
removeAnyDupe char
+
hello world
>
helo wrd
removeAnyDupeAdjacent
target
removeAnyDupeAdjacent char
+
hello world
>
helo world
removeDupe
string
removeDupe "world"
+
hello world world hello world
>
hello world hello
removeDupeAdjacent
string
removeDupeAdjacent "world"
+
hello world worldworld hello world
>
hello world world hello world
removeEmptyLines
removeEmptyLines
+
helloworld
>
helloworld
repeat
string int
repeat "--" 3
+
hello
>
hello--hello--hello
replace
string
replace "world"
+
hello
>
world
reverse
target
reverse char
+
hello world
>
dlrow olleh
select
(selector) {actions}
select (after cs "a") {toUpper}
+
It rains cats and dogs
>
It raINS CATS AND DOGS
sinh
sinh
+
0.5
>
0.5210953054937474
sort
target caseSensitivity
sort char cs
+
HeLlo wOrld
>
HLOdellorw
sortDesc
target caseSensitivity
sortDesc char ci
+
HeLlo wOrld
>
wrOollLHed
spacesToTabs
int
spacesToTabs 3
+
hello world hello
>
hello world hello
subtractBy
double
subtractBy 1.2
+
5.1
>
3.8999999999999995
subtractFrom
double
subtractFrom 5.1
+
1.2
>
3.8999999999999995
surround
string
surround "*"
+
hello world
>
*hello world*
surround2
string string
surround2 "(" ")"
+
hello world
>
(hello world)
switchCase
switchCase
+
HellO WorLD
>
hELLo wORld
tabsToSpaces
int
tabsToSpaces 3
+
hello world hello
>
hello world hello
take
target int
take char 3
+
hello world
>
hel
takeRight
target int
takeRight char 3
+
hello world
>
rld
tanh
tanh
+
0.5
>
0.46211715726000974
toLower
toLower
+
HellO WorLD
>
hello world
toUpper
toUpper
+
HellO WorLD
>
HELLO WORLD
trimBoth
target int
trimBoth char 2
+
hello world
>
llo wor
trimEnd
target int
trimEnd char 2
+
hello world
>
hello wor
trimSpaceBoth
trimSpaceBoth
+
hello world
>
hello world
trimSpaceEnd
trimSpaceEnd
+
hello world
>
hello world
trimSpaceStart
trimSpaceStart
+
hello world
>
hello world
trimStart
target int
trimStart char 2
+
hello world
>
llo world
unindent
int
unindent 3
+
hello world
>
hello world
Condition: Can be used in if statements to introduce branching
all
[(condition)]
forEach word { if (all [(startsWith cs "a") (endsWith cs "c")]) {toUpper} }
+
hellc agga aggac olo
>
hellc agga AGGAC olo
and
condition condition
forEach word { if (and (startsWith cs "a") (endsWith cs "c")) {toUpper} }
+
hellc agga aggac olo
>
hellc agga AGGAC olo
any
[(condition)]
forEach word { if (any [(startsWith cs "a") (endsWith cs "c")]) {toUpper} }
+
hellc agga aggac olo
>
HELLC AGGA AGGAC olo
contains
caseSensitivity string
forEach word { if (contains cs "a") {toUpper} }
+
aa cat dog aaa
>
AA CAT dog AAA
containsExact
caseSensitivity string int
forEach word { if (containsExact cs "a" 1) {toUpper} }
+
aa cat dog aaa
>
aa CAT dog aaa
containsMax
caseSensitivity string int
forEach word { if (containsMax cs "a" 2) {toUpper} }
+
aa cat dog aaa
>
AA CAT DOG aaa
containsMin
caseSensitivity string int
forEach word { if (containsMin cs "a" 2) {toUpper} }
+
aa cat dog aaa
>
AA cat dog AAA
containsNumber
forEach word { if (containsNumber) {toUpper} }
+
oneCat twoCat 3Cat
>
oneCat twoCat 3CAT
endsWith
caseSensitivity string
forEach word { if (endsWith cs "a") {toUpper} }
+
aa cat doga
>
AA cat DOGA
equal
double
forEach word { if (not (equal 2.0)) {remove} }
+
oneCat twoCat 1.0 2.0 3.1 1.9
>
2.0
even
forEach word { if (not (even)) {remove} }
+
oneCat twoCat 3Cat 11.2 12.3 42 43
>
42
greater
double
forEach word { if (not (greater 2.0)) {remove} }
+
oneCat twoCat 1.0 2.0 3.1 1.9
>
3.1
greaterEqual
double
forEach word { if (not (greaterEqual 2.0)) {remove} }
+
oneCat twoCat 1.0 2.0 3.1 1.9
>
2.0 3.1
is
caseSensitivity string
forEach word { if (is ci "aBc") {toUpper} }
+
abC ab abcd Abc ab
>
ABC ab abcd ABC ab
less
double
forEach word { if (not (less 2.0)) {remove} }
+
oneCat twoCat 1.0 2.0 3.1 1.9
>
1.0 1.9
lessEqual
double
forEach word { if (not (lessEqual 2.0)) {remove} }
+
oneCat twoCat 1.0 2.0 3.1 1.9
>
1.0 2.0 1.9
lower
forEach word { if (lower) {append "1"} }
+
abc abC ABC
>
abc1 abC ABC
nExact
target int
forEach word { if (nExact char 2) {toUpper} }
+
aa cat doga
>
AA cat doga
nMax
target int
forEach word { if (nMax char 3) {toUpper} }
+
aa cat doga
>
AA CAT doga
nMin
target int
forEach word { if (nMin char 3) {toUpper} }
+
aa cat doga
>
aa CAT DOGA
negative
forEach word { if (not (negative)) {remove} }
+
oneCat twoCat 3Cat -11.2 12.3 -42 43
>
-11.2 -42
neither
condition condition
forEach word { if (neither (startsWith cs "a") (endsWith cs "c")) {toUpper} }
+
hellc agga aggac olo
>
hellc agga aggac OLO
none
[(condition)]
forEach word { if (none [(startsWith cs "a") (endsWith cs "c")]) {toUpper} }
+
hellc agga aggac olo
>
hellc agga aggac OLO
not
condition
forEach word { if (not (containsNumber)) {toUpper} }
+
oneCat twoCat 3Cat
>
ONECAT TWOCAT 3Cat
number
forEach word { if (number) {remove} }
+
oneCat twoCat 3Cat 43
>
oneCat twoCat 3Cat
odd
forEach word { if (not (odd)) {remove} }
+
oneCat twoCat 3Cat 11.2 12.3 42 43
>
43
or
condition condition
forEach word { if (or (startsWith cs "a") (endsWith cs "c")) {toUpper} }
+
hellc agga aggac olo
>
HELLC AGGA AGGAC olo
positive
forEach word { if (not (positive)) {remove} }
+
oneCat twoCat 3Cat -11.2 12.3 -42 43
>
12.3 43
startsWith
caseSensitivity string
forEach word { if (startsWith cs "a") {toUpper} }
+
aa cat doga
>
AA cat doga
upper
forEach word { if (upper) {append "1"} }
+
abc abC ABC
>
abc abC ABC1
xor
condition condition
forEach word { if (xor (startsWith cs "a") (endsWith cs "c")) {toUpper} }
+
hellc agga aggac olo
>
HELLC AGGA aggac olo