@startuml !function $upper($a) !$len = %strlen($a) !$pos = 0 !$z = "" !while ($len-$pos) > 0 !$x = %substr($a, $pos, 1) !if $x == "a" !$x = "A" !elseif $x == "b" !$x = "B" !elseif $x == "c" !$x = "C" !elseif $x == "d" !$x = "D" !elseif $x == "e" !$x = "E" !elseif $x == "f" !$x = "F" !elseif $x == "g" !$x = "G" !elseif $x == "h" !$x = "H" !elseif $x == "i" !$x = "I" !elseif $x == "j" !$x = "J" !elseif $x == "k" !$x = "K" !elseif $x == "l" !$x = "L" !elseif $x == "m" !$x = "M" !elseif $x == "n" !$x = "N" !elseif $x == "o" !$x = "O" !elseif $x == "p" !$x = "P" !elseif $x == "q" !$x = "Q" !elseif $x == "r" !$x = "R" !elseif $x == "s" !$x = "S" !elseif $x == "t" !$x = "T" !elseif $x == "u" !$x = "U" !elseif $x == "v" !$x = "V" !elseif $x == "w" !$x = "W" !elseif $x == "x" !$x = "X" !elseif $x == "y" !$x = "Y" !elseif $x == "z" !$x = "Z" !endif !if %substr("-" + $a, $pos, 2) == "\n" !$x = "n" John -> Sally : I found a "\n" at position $pos! !endif !$z = $z + $x !$pos = $pos + 1 !endwhile !return $z !endfunction John -> Sally : $upper("hello") John -> Sally : $upper("\hello") John -> Sally : $upper("\nhello") John -> Sally : $upper("a\nhello") John -> Sally : $upper("ab\nhello") Sally --> John : $upper("If music be the food of love, play on;\nGive me excess of it, that, surfeiting,\nThe appetite may sicken, and so die.") John -> Sally : $upper("a1b2c3d4...z26") @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
Pure Javascript
PNG
SVG
ASCII Art