Changeset 785 for ccr/trunk/p/C0CXPATH.m


Ignore:
Timestamp:
May 25, 2010, 1:45:29 PM (14 years ago)
Author:
George Lilly
Message:

encoutners

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CXPATH.m

    r728 r785  
    324324 Q
    325325 ;
    326 CLEAN(STR) ; extrinsic function; returns string
     326CLEAN(STR,TR) ; extrinsic function; returns string
    327327 ;; Removes all non printable characters from a string.
    328328 ;; STR by Value
     329 ;; TR IS OPTIONAL TO IMPROVE PERFORMANCE
    329330 N TR,I
    330  F I=0:1:31 S TR=$G(TR)_$C(I)
    331  S TR=TR_$C(127)
     331 I '$D(TR) D  ;
     332 . F I=0:1:31 S TR=$G(TR)_$C(I)
     333 . S TR=TR_$C(127)
    332334 QUIT $TR(STR,TR)
    333335 ;
Note: See TracChangeset for help on using the changeset viewer.