All pastes #85269 Raw Edit

a

public text v1 · immutable
·published 2006-07-11 20:28 UTC
rendered paste body
alias gay {
  var %x 1
  while (%x <= $len($1-)) {
    if ($asc($mid($1-,%x,1)) == 32) {
      set %fm %fm $+ $chr(160)
      inc %x
      continue
    }
    elseif ($isbit(%x,1)) { set %fm %fm $+ $upper($mid($1-,%x,1)) }
    else { set %fm %fm $+ $mid($1-,%x,1) }
    inc %x
  }
  msg $active $replace(%fm,$chr(160),$chr(32))
  unset %fm
}