src/Pure/ML-Systems/proper_int.ML
changeset 52277 2bbeab01c0ea
parent 50801 b8ff6d1ee56c
child 53980 7e6a82c593f4
equal deleted inserted replaced
52276:329c41438154 52277:2bbeab01c0ea
    83       NONE => NONE
    83       NONE => NONE
    84     | SOME (c, d) => SOME (mk_int c, d));
    84     | SOME (c, d) => SOME (mk_int c, d));
    85 end;
    85 end;
    86 
    86 
    87 
    87 
       
    88 (* CharVector *)
       
    89 
       
    90 structure CharVector =
       
    91 struct
       
    92   open CharVector;
       
    93   fun tabulate (a, b) = CharVector.tabulate (dest_int a, b o mk_int);
       
    94 end;
       
    95 
       
    96 
    88 (* Word8VectorSlice *)
    97 (* Word8VectorSlice *)
    89 
    98 
    90 structure Word8VectorSlice =
    99 structure Word8VectorSlice =
    91 struct
   100 struct
    92   open Word8VectorSlice;
   101   open Word8VectorSlice;
   155     | FIX (SOME b) => StringCvt.FIX (SOME (dest_int b))
   164     | FIX (SOME b) => StringCvt.FIX (SOME (dest_int b))
   156     | GEN NONE => StringCvt.GEN NONE
   165     | GEN NONE => StringCvt.GEN NONE
   157     | GEN (SOME b) => StringCvt.GEN (SOME (dest_int b))
   166     | GEN (SOME b) => StringCvt.GEN (SOME (dest_int b))
   158     | SCI NONE => StringCvt.SCI NONE
   167     | SCI NONE => StringCvt.SCI NONE
   159     | SCI (SOME b) => StringCvt.SCI (SOME (dest_int b)));
   168     | SCI (SOME b) => StringCvt.SCI (SOME (dest_int b)));
       
   169   fun padRight a b c = StringCvt.padRight a (dest_int b) c;
       
   170   fun padLeft a b c = StringCvt.padLeft a (dest_int b) c;
   160 end;
   171 end;
   161 
   172 
   162 
   173 
   163 (* Word *)
   174 (* Word *)
   164 
   175