Sindbad~EG File Manager

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

#define ENGLISH_DLL
/* M. Beeson, for MathXpert.
6.16.99  last modified
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 French_two_letter_word(char *buffer)
/* return 0 if buffer contains a two-letter French 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,"au"))
            return 0;
         return 1;
      case 'b':
      case 'B':
         return 1;
      case 'c':
      case 'C':
         if(!_stricmp(buffer,"ci"))
            return 0;
         if(!_stricmp(buffer,"ce"))
            return 0;
         return 1;
      case 'd':
      case 'D':
         if(!_stricmp(buffer,"de"))
            return 0;  /* occurs in 'de Moivre' */
         if(!_stricmp(buffer,"du"))
            return 0;
         return 1;
      case 'e':
      case 'E':
         if(!_stricmp(buffer,"en"))
            return 0;
         if(!_stricmp(buffer,"et"))
            return 0;
         return 1;
      case 'g':
      case 'G':
         return 1;
      case 'i':
      case 'I':
         if(!_stricmp(buffer,"il"))
            return 0;
         return 1;
      case 'l':
      case 'L':
         if(!_stricmp(buffer,"ln"))
            return 0;
         if(!_stricmp(buffer,"la") ||
            !_stricmp(buffer,"le")
           )
            return 0;
         return 1;
      case 'n':
      case 'N':
         if(!_stricmp(buffer,"ni"))
            return 0;
         if(!_stricmp(buffer,"ne"))
            return 0;
         return 1;
      case 'o':
      case 'O':
         if(!_stricmp(buffer,"ou") ||
            !_stricmp(buffer,"on") ||
            !_stricmp(buffer,"o�")
           )
            return 0;
         return 1;
      case 's':
      case 'S':
         if(!_stricmp(buffer,"se"))
            return 0;
         if(!_stricmp(buffer,"si"))
            return 0;
         return 1;
      case 't':
      case 'T':
         return 1;
      case 'u':
      case 'U':
         if(!_stricmp(buffer,"un"))
            return 0;
         return 1;
      case 'w':
      case 'W':
         return 1;
      default:
         return 1;
    }
}

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