Diff for /np2/common/milstr.c between versions 1.6 and 1.7

version 1.6, 2004/02/19 11:32:11 version 1.7, 2004/06/19 17:54:19
Line 5 Line 5
 // ---- ANK  // ---- ANK
   
 #if defined(SUPPORT_ANK)  #if defined(SUPPORT_ANK)
   int milank_charsize(const char *str) {
   
           return((str[0] != '\0')?1:0);
   }
   
 int milank_cmp(const char *str, const char *cmp) {  int milank_cmp(const char *str, const char *cmp) {
   
         int             s;          int             s;
Line 100  char *milank_chr(const char *str, int c) Line 105  char *milank_chr(const char *str, int c)
 // ---- Shift-JIS  // ---- Shift-JIS
   
 #if defined(SUPPORT_SJIS)  #if defined(SUPPORT_SJIS)
   int milsjis_charsize(const char *str) {
   
           int             pos;
   
           pos = ((((str[0] ^ 0x20) - 0xa1) & 0xff) < 0x3c)?1:0;
           return((str[pos] != '\0')?(pos+1):0);
   }
   
 int milsjis_cmp(const char *str, const char *cmp) {  int milsjis_cmp(const char *str, const char *cmp) {
   
         int             s;          int             s;
Line 253  char *milsjis_chr(const char *str, int c Line 266  char *milsjis_chr(const char *str, int c
   
 // ---- EUC  // ---- EUC
   
 #if defined(SUPPORT_EUC)  #if defined(SUPPORT_EUC)                // あれ 半角カナ忘れてるぞ?
   int mileuc_charsize(const char *str) {
   
           int             pos;
   
           pos = (((str[0] - 0xa1) & 0xff) < 0x5d)?1:0;
           return((str[pos] != '\0')?(pos+1):0);
   }
   
 int mileuc_cmp(const char *str, const char *cmp) {  int mileuc_cmp(const char *str, const char *cmp) {
   
         int             s;          int             s;

Removed from v.1.6  
changed lines
  Added in v.1.7


RetroPC.NET-CVS <cvs@retropc.net>