Sindbad~EG File Manager

Current Path : /usr/home/beeson/MathXpert/Localizer/ISO-Latin1-Originals/german/
Upload File :
Current File : /usr/home/beeson/MathXpert/Localizer/ISO-Latin1-Originals/german/german_2let.c

#define ENGLISH_DLL
/* M. Beeson, for MathXpert.
2.17.98 extracted from symsout.c
5.3.13 changed names of exported functions
*/

#include <string.h>
#include "export.h"   /* Do not translate this or the next 2 lines */
#include "english1.h"

#ifdef XCODE
#define _stricmp strcasecmp
#endif
/*_______________________________________________________________________*/
int German_two_letter_word(char *buffer)
/* return 0 if buffer contains a two-letter word that
occurs in MathXpert's menus or status line text.
Return 1 otherwise.  Buffer is presumed to contain
two characters at least.
*/
{ switch(buffer[0])
    { case 'a':
      case 'A':
         if(!_stricmp(buffer,"ab") ||
            !_stricmp(buffer,"am") ||
            !_stricmp(buffer,"an")
                )
            return 0;
         return 1;
     case 'd':
      case 'D':
         if(!_stricmp(buffer,"da") ||
            !_stricmp(buffer,"de") ||
            !_stricmp(buffer,"du"))
            return 0;  /* occurs in 'de Moivre' */
         return 1;
      case 'e':
      case 'E':
         if(!_stricmp(buffer,"ei") ||
            !_stricmp(buffer,"er") ||
            !_stricmp(buffer,"es"))
            return 0;
         return 1;
      case 'i':
      case 'I':
         if(!_stricmp(buffer,"im") ||
            !_stricmp(buffer,"in"))
            return 0;
         return 1;
      case 'j':
      case 'J':
         if(!_stricmp(buffer,"ja") ||
            !_stricmp(buffer,"je"))
            return 0;
         return 1;
      case 'l':
         if(!_stricmp(buffer,"ln"))
            return 0;
         return 1;
      case 'o':
      case 'O':
         if(!_stricmp(buffer, "ob"))
            return 0;
         return 1;
      case 's':
      case 'S':
         if(!_stricmp(buffer,"so"))
            return 0;
         return 1;
      case 'u':
      case 'U':
         if(!_stricmp(buffer,"um"))
            return 0;
         return 1;
      case 'w':
      case 'W':
         if(!_stricmp(buffer,"wo"))
            return 0;
         return 1;
      case 'z':
      case 'Z':
         if(!_stricmp(buffer,"zu"))
            return 0;
         return 1;
      default:
         return 1;
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists