Does this look safe for Windows and Mac funny characters? Those will always be > 126 ascii decimal correct?

function isPrint pChar
  set the useUnicode to false
  get charToNum(pChar)
  if (it < 32) or (it > 126) then return false
  return true
end isPrint

function printableCharString pString
 local tRes, c
 repeat for each character c in pString
   if isPrint(c) then put c after tRes
 end repeat
 return tRes
end printableCharString


Alex Rice <[EMAIL PROTECTED]> | Mindlube Software | <http://mindlube.com>


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to