19 GB_ERROR SEC_bond_def::fill_translation_table(
const char *from,
const char *to) {
22 for (i = 0; i<256; ++i) {
23 edit4_to_secedit[i] = i;
27 for (i = 0; from[i] && !
error; ++i) {
29 error =
"translate-into is too short (requires one char for each listed EDIT4 helix symbol)";
34 bool alreadyChanged = e2s != from[i];
36 error =
GBS_global_string(
"Duplicate translation for helix symbol '%c' (into '%c' and '%c')",
39 else if (from[i] == to[i]) {
40 error =
GBS_global_string(
"Useless translation from '%c' to '%c'", from[i], to[i]);
48 if (!from[i] && to[i] && !error) {
49 error =
"translate-into is too long (requires exactly one char for each listed EDIT4 helix symbol)";
CONSTEXPR_INLINE unsigned char safeCharIndex(char c)
const char * GBS_global_string(const char *templat,...)
static void error(const char *msg)