Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /smlnj-lib/trunk/Util/base64-sig.sml
ViewVC logotype

Diff of /smlnj-lib/trunk/Util/base64-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3742, Mon Jul 2 17:57:29 2012 UTC revision 3761, Mon Sep 24 13:21:03 2012 UTC
# Line 11  Line 11 
11  signature BASE64 =  signature BASE64 =
12    sig    sig
13    
14      val encodeVec : Word8Vector.vector -> string    (* return true if a character is in the base64 alphabet *)
15      val encodeVecSlice : Word8VectorSlice.slice -> string      val isBase64 : char -> bool
16    
17        val encode : Word8Vector.vector -> string
18        val encodeSlice : Word8VectorSlice.slice -> string
19    
20      (* raised if a Base64 string does not end in a complete encoding quantum (i.e., 4
21       * characters including padding characters).
22       *)
23        exception Incomplete
24    
25      (* raised if an invalid Base64 character is encountered during decode.  The int
26       * is the position of the character and the char is the invalid character.
27       *)
28        exception Invalid of (int * char)
29    
30      (* decode functions that ignore whitespace *)
31        val decode : string -> Word8Vector.vector
32        val decodeSlice : substring -> Word8Vector.vector
33    
34      (* strict decode functions that only accept the base64 characters *)
35        val decodeStrict : string -> Word8Vector.vector
36        val decodeSliceStrict : substring -> Word8Vector.vector
37    
38    end    end

Legend:
Removed from v.3742  
changed lines
  Added in v.3761

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0