factor/basis/io/encodings/strict/strict.factor

12 lines
317 B
Factor
Raw Permalink Normal View History

2008-03-21 21:47:16 -04:00
! Copyright (C) 2008 Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license.
2008-07-02 01:20:01 -04:00
USING: io.encodings kernel accessors summary ;
2008-03-21 21:47:16 -04:00
IN: io.encodings.strict
2013-03-24 13:10:45 -04:00
TUPLE: strict-state code ;
2008-03-21 21:47:16 -04:00
2013-03-24 13:10:45 -04:00
C: strict strict-state
2008-03-21 21:47:16 -04:00
2013-03-24 13:10:45 -04:00
M: strict-state decode-char
code>> decode-char dup replacement-char = [ decode-error ] when ;