3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
20 * ====================================================================
23 * @file svn_quoprint.h
24 * @brief quoted-printable encoding and decoding functions.
27 #ifndef SVN_QUOPRINT_H
28 #define SVN_QUOPRINT_H
30 #include <apr_pools.h>
32 #include "svn_string.h" /* for svn_strinbuf_t */
33 #include "svn_io.h" /* for svn_stream_t */
37 #endif /* __cplusplus */
39 /** Return a writable generic stream which will encode binary data in
40 * quoted-printable format and write the encoded data to @a output. Be
41 * sure to close the stream when done writing in order to squeeze out
42 * the last bit of encoded data.
45 svn_quoprint_encode(svn_stream_t *output,
48 /** Return a writable generic stream which will decode binary data in
49 * quoted-printable format and write the decoded data to @a output. Be
50 * sure to close the stream when done writing in order to squeeze out
51 * the last bit of encoded data.
54 svn_quoprint_decode(svn_stream_t *output,
58 /** Simpler interface for encoding quoted-printable data assuming we have all
59 * of it present at once. The returned string will be allocated from @a pool.
62 svn_quoprint_encode_string(const svn_stringbuf_t *str,
65 /** Simpler interface for decoding quoted-printable data assuming we have all
66 * of it present at once. The returned string will be allocated from @a pool.
69 svn_quoprint_decode_string(const svn_stringbuf_t *str,
75 #endif /* __cplusplus */
77 #endif /* SVN_QUOPRINT_H */