/**
 * @file
 * @ingroup workerframeenc
 * @brief Dicop Project - Character encoding tables for ##NAME##
 *  
 * @english
 *
 * <b>This file has been automatically generated by <code>build/gen_tables.pl</code>.
 * Do not edit, all changes are lost!</b>
 *
 * @endenglish
 *
 * @deutsch
 *
 * <b>Diese Datei wurde automatisch generiert von <code>build/gen_tables.pl</code>.
 * Hier nicht editieren, da alle &Auml;nderungen verloren gehen!</b>
 *
 * @enddeutsch
 *
 * Used: ##VERSION##
 *  
 * @version 0.02 
 * @date ##DATE##
 *  
 * @copydoc copyrighttext
*/

#ifndef DICOP_##SAFENAME##_H
#define DICOP_##SAFENAME##_H

##START##
/** Table to convert Unicode to ##NAME## */
unsigned long encoding_##LCSAFENAME####TABLE##
  };

/** Table to convert ##NAME## to UTF-8 */
unsigned long enc_##LCSAFENAME##[257] = {
  ##TABLE2##
  };

/** Table to convert ##NAME## to Unicode codepoints */
unsigned long cp_##LCSAFENAME##[256] = {
  ##TABLE_CP##
  };

/** Table to convert one character to UPPERCASE */
unsigned char uc_##LCSAFENAME##[256] = {
  ##TABLE_UC##
  };

/** Table to convert one character to lowercase */
unsigned char lc_##LCSAFENAME##[256] = {
  ##TABLE_LC##
  };
##STOP##

##UTF8##
#define UTF_8_FOLLOWERS(cur,i,pwd,input) followers = utf8_followers[cur]; \
  if (followers == -1)\
    {\
    printf (" Error: Unexpected continuation byte 0x%02X at pos %lu in UTF-8 string.\n",\
            cur, (unsigned long)i);\
    return pwdgen_make_string_invalid(pwd, input);\
    }
#define UTF_8_SKIP(cur,i,pwd,input) UTF_8_FOLLOWERS(cur,i,pwd,input); i+=followers+1;
##UTF8##
#endif
