ARB
Classes | Macros | Functions
global.h File Reference
#include <arb_assert.h>
#include <arb_defs.h>
#include <arbtools.h>
#include <smartptr.h>
#include <arb_string.h>
#include <arb_global_defs.h>
Include dependency graph for global.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Convaln_exception
 
class  Warnings
 

Macros

#define ca_assert(cond)   arb_assert(cond)
 
#define WORD_SEP   ",.; ?:!)]}"
 
#define lookup_keyword(keyword, table)   ___lookup_keyword(keyword, table, ARRAY_ELEMS(table))
 

Functions

CONSTEXPR_INLINE int min (int t1, int t2)
 
CONSTEXPR_INLINE int max (int t1, int t2)
 
CONSTEXPR_INLINE bool str_equal (const char *s1, const char *s2)
 
CONSTEXPR_INLINE bool str_iequal (const char *s1, const char *s2)
 
CONSTEXPR_INLINE int str0len (const char *str)
 
charstrndup (const char *str, int len)
 
CONSTEXPR_INLINE int count_spaces (const char *str)
 
bool occurs_in (char ch, const char *in)
 
CONSTEXPR_INLINE bool is_end_mark (char ch)
 
CONSTEXPR_INLINE bool is_sequence_terminator (const char *str)
 
bool is_gapchar (char ch)
 
bool is_word_char (char ch)
 
CONSTEXPR_INLINE bool has_no_content (const char *field)
 
CONSTEXPR_INLINE bool has_content (const char *field)
 
charno_content ()
 
bool copy_content (char *&entry, const char *content)
 

Macro Definition Documentation

#define ca_assert (   cond)    arb_assert(cond)
#define WORD_SEP   ",.; ?:!)]}"

Definition at line 117 of file global.h.

Referenced by is_word_char().

#define lookup_keyword (   keyword,
  table 
)    ___lookup_keyword(keyword, table, ARRAY_ELEMS(table))

Definition at line 144 of file global.h.

Referenced by macke_is_genbank_entry_comment().

Function Documentation

CONSTEXPR_INLINE int min ( int  t1,
int  t2 
)

Definition at line 92 of file global.h.

CONSTEXPR_INLINE int max ( int  t1,
int  t2 
)

Definition at line 93 of file global.h.

CONSTEXPR_INLINE bool str_equal ( const char s1,
const char s2 
)
CONSTEXPR_INLINE bool str_iequal ( const char s1,
const char s2 
)

Definition at line 96 of file global.h.

Referenced by ismonth().

CONSTEXPR_INLINE int str0len ( const char str)
char* strndup ( const char str,
int  len 
)
inline

Definition at line 102 of file global.h.

References result.

Referenced by etog_journal(), FINAL_TYPE< SEQTYPE >::get_date(), and strf().

CONSTEXPR_INLINE int count_spaces ( const char str)

Definition at line 109 of file global.h.

Referenced by embl_one_comment_entry().

bool occurs_in ( char  ch,
const char in 
)
inline

Definition at line 111 of file global.h.

References ca_assert.

Referenced by is_word_char(), and parse_key_word().

CONSTEXPR_INLINE bool is_end_mark ( char  ch)

Definition at line 113 of file global.h.

Referenced by get_string(), and partial_mtoe().

CONSTEXPR_INLINE bool is_sequence_terminator ( const char str)

Definition at line 115 of file global.h.

Referenced by embl_origin(), and genbank_origin().

bool is_gapchar ( char  ch)
inline

Definition at line 119 of file global.h.

References GAP::is_import_gap().

Referenced by Seq::count_gaps(), gcg_checksum(), gcg_out_origin(), and to_printable().

bool is_word_char ( char  ch)
inline

Definition at line 120 of file global.h.

References occurs_in(), and WORD_SEP.

CONSTEXPR_INLINE bool has_no_content ( const char field)

Definition at line 122 of file global.h.

Referenced by has_content().

CONSTEXPR_INLINE bool has_content ( const char field)
char* no_content ( )
inline
bool copy_content ( char *&  entry,
const char content 
)
inline