~ubuntu-branches/ubuntu/quantal/genometools/quantal-backports

« back to all changes in this revision

Viewing changes to src/extended/gff3_escaping.h

  • Committer: Package Import Robot
  • Author(s): Sascha Steinbiss
  • Date: 2012-07-09 14:10:23 UTC
  • Revision ID: package-import@ubuntu.com-20120709141023-juuu4spm6chqsf9o
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 2008 Gordon Gremme <gremme@zbh.uni-hamburg.de>
 
3
  Copyright (c) 2008 Center for Bioinformatics, University of Hamburg
 
4
 
 
5
  Permission to use, copy, modify, and distribute this software for any
 
6
  purpose with or without fee is hereby granted, provided that the above
 
7
  copyright notice and this permission notice appear in all copies.
 
8
 
 
9
  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 
10
  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 
11
  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 
12
  ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 
13
  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 
14
  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 
15
  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
16
*/
 
17
 
 
18
#ifndef GFF3_ESCAPING_H
 
19
#define GFF3_ESCAPING_H
 
20
 
 
21
#include "core/str.h"
 
22
 
 
23
/* Escape <unescaped_seq> of given <length> for GFF3 format and append the
 
24
   result to <escaped_seq>. */
 
25
void gt_gff3_escape(GtStr *escaped_seq, const char *unescaped_seq,
 
26
                    unsigned long length);
 
27
 
 
28
/* Unescape GFF3 format <escaped_seq> of given <length> and append the result to
 
29
   <unescaped_seq>. */
 
30
int  gt_gff3_unescape(GtStr *unescaped_seq, const char *escaped_seq,
 
31
                      unsigned long length, GtError*);
 
32
 
 
33
/* Perform unit test of GFF3 format escaping module */
 
34
int  gt_gff3_escaping_unit_test(GtError*);
 
35
 
 
36
#endif