Character Spellings

Character Spellings — Macros di caratteri speciali

Stability Level

Unstable, unless otherwise indicated

Synopsis

#include <mlib.h>

#define             _and_
#define             _and_eq_
#define             _bitand_
#define             _or_
#define             _or_eq_
#define             _bitor_
#define             _not_
#define             _not_eq_
#define             _xor_
#define             _xor_eq_
#define             _compl_
#define             _equal_
#define             _greater_
#define             _less_
#define             _greater_eq_
#define             _less_eq_
#define             _round_brackets_open_
#define             _round_brackets_close_
#define             _square_brackets_open_
#define             _square_brackets_close_
#define             _curly_brackets_open_
#define             _curly_brackets_close_
#define             _xml_amp_
#define             _xml_lt_
#define             _xml_gt_
#define             _xml_apos_
#define             _xml_quot_

Description

MLib offre delle macros da utilizzare in sostituzione di caratteri speciali, che potrebbero creare degli errori in alcune letture, come ad esempio nel parsing di file in formato xml.

Details

_and_

#define _and_                 &&


_and_eq_

#define _and_eq_              &=


_bitand_

#define _bitand_              &


_or_

#define _or_                  ||


_or_eq_

#define _or_eq_               |=


_bitor_

#define _bitor_               |


_not_

#define _not_                 !


_not_eq_

#define _not_eq_              !=


_xor_

#define _xor_                 ^


_xor_eq_

#define _xor_eq_              ^=


_compl_

#define _compl_               ~


_equal_

#define _equal_               ==


_greater_

#define _greater_             >


_less_

#define _less_                <


_greater_eq_

#define _greater_eq_          >=


_less_eq_

#define _less_eq_             <=


_round_brackets_open_

#define _round_brackets_open_         (


_round_brackets_close_

#define _round_brackets_close_        )


_square_brackets_open_

#define _square_brackets_open_        [


_square_brackets_close_

#define _square_brackets_close_       ]


_curly_brackets_open_

#define _curly_brackets_open_         {


_curly_brackets_close_

#define _curly_brackets_close_        }


_xml_amp_

#define _xml_amp_         &amp;		/* (&) */


_xml_lt_

#define _xml_lt_          &lt;		/* (<) */


_xml_gt_

#define _xml_gt_          &gt;		/* (>) */


_xml_apos_

#define _xml_apos_        &apos;		/* (') */


_xml_quot_

#define _xml_quot_        &quot;		/* (") */