third_party/inchi/INCHI_BASE/src/ichiprt1.c
void GetSaveOptLetters( unsigned char save_opt_bits, char* let1, char* let2 )
{
    const char a2p[] = "ABCDEFGHIJKLMNOP";
    /* SaveOptBits layout: {unused|unused|Ket|15T|RecMet|FixedH|SUU|SLUUD} */
    *let1 = a2p[(size_t) ( save_opt_bits & 0x0f )];
    *let2 = a2p[(size_t) ( ( save_opt_bits & 0x30 ) >> 4 )];
}
/****************************************************************************
    GetSaveOptLetters

    Get the two letters encoding the saved InChI creation options.

    The first one encodes RecMet/FixedH/SUU/SLUUD options.
    Each of options is a binary switch {ON,OFF}, so it totals to 2*2*2*2=16 values
    which are encoded by capital letters 'A' through 'P'.

    The second character encodes experimental (InChI 1 extension)
    options KET and 15T.
    Each of these options is a binary switch ON/OFF, so there are 2*2=4 combinations,
    currently encoded by 'A' through 'D'.
    Note that anything but 'A' here would indicate "extended" InChI 1
    Also, there is a reservation for future needs: the 2nd memo char
    may accommodate two more ON/OFF
****************************************************************************/
GetSaveOptLetters
Get the two letters encoding the saved InChI creation options.



The second character encodes experimental (InChI 1 extension)
options KET and 15T.
Each of these options is a binary switch ON/OFF, so there are 2*2=4 combinations,
currently encoded by 'A' through 'D'.
Note that anything but 'A' here would indicate "extended" InChI 1
Also, there is a reservation for future needs: the 2nd memo char
may accommodate two more ON/OFF
GetSaveOptLetters Get the two letters encoding the saved InChI creation options . The second character encodes experimental ( InChI 1 extension ) options KET and 15T . Each of these options is a binary switch ON / OFF so there are 2 * 2 = 4 combinations currently encoded by ' A ' through ' D ' . Note that anything but ' A ' here would indicate " extended " InChI 1 Also there is a reservation for future needs : the 2nd memo char may accommodate two more ON / OFF
void GetSaveOptLetters( unsigned char save_opt_bits, char* let1, char* let2 )
{
    const char a2p[] = "ABCDEFGHIJKLMNOP";
    *let1 = a2p[(size_t) ( save_opt_bits & 0x0f )];
    *let2 = a2p[(size_t) ( ( save_opt_bits & 0x30 ) >> 4 )];
}
void GetSaveOptLetters ( unsigned char save_opt_bits , char * let1 , char * let2 ) { const char a2p [ ] = " " ; * let1 = a2p [ ( size_t ) ( save_opt_bits & 0x0f ) ] ; * let2 = a2p [ ( size_t ) ( ( save_opt_bits & 0x30 ) >> 4 ) ] ; }
GetSaveOptLetters
Get the two letters encoding the saved InChI creation options.
GetSaveOptLetters Get the two letters encoding the saved InChI creation options .
/* SaveOptBits layout: {unused|unused|Ket|15T|RecMet|FixedH|SUU|SLUUD} */