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

version 1.4, 2003/11/21 06:51:10 version 1.6, 2004/02/19 11:32:11
Line 78  void milank_ncat(char *dst, const char * Line 78  void milank_ncat(char *dst, const char *
                 dst[i] = '\0';                  dst[i] = '\0';
         }          }
 }  }
   
   char *milank_chr(const char *str, int c) {
   
           int             s;
   
           if (str) {
                   do {
                           s = *str;
                           if (s == c) {
                                   return((char *)str);
                           }
                           str++;
                   } while(s);
           }
           return(NULL);
   }
 #endif  #endif
   
   
Line 212  void milsjis_ncat(char *dst, const char  Line 228  void milsjis_ncat(char *dst, const char 
                 dst[i] = '\0';                  dst[i] = '\0';
         }          }
 }  }
   
   char *milsjis_chr(const char *str, int c) {
   
           int             s;
   
           if (str) {
                   do {
                           s = *str;
                           if (s == c) {
                                   return((char *)str);
                           }
                           if ((((s ^ 0x20) - 0xa1) & 0xff) < 0x3c) {
                                   str++;
                                   s = *str;
                           }
                           str++;
                   } while(s);
           }
           return(NULL);
   }
 #endif  #endif
   
   
Line 346  void mileuc_ncat(char *dst, const char * Line 382  void mileuc_ncat(char *dst, const char *
                 dst[i] = '\0';                  dst[i] = '\0';
         }          }
 }  }
   
   char *mileuc_chr(const char *str, int c) {
   
           int             s;
   
           if (str) {
                   do {
                           s = *str;
                           if (s == c) {
                                   return((char *)str);
                           }
                           if (((s - 0xa1) & 0xff) < 0x5d) {
                                   str++;
                                   s = *str;
                           }
                           str++;
                   } while(s);
           }
           return(NULL);
   }
 #endif  #endif
   
   
Line 387  int milstr_extendcmp(const char *str, co Line 443  int milstr_extendcmp(const char *str, co
         return((s > c)?1:-1);          return((s > c)?1:-1);
 }  }
   
   char *milstr_nextword(const char *str) {
   
           if (str) {
                   while(!(((*str) - 1) & 0xe0)) {
                           str++;
                   }
           }
           return((char *)str);
   }
   
 int milstr_getarg(char *str, char *arg[], int maxarg) {  int milstr_getarg(char *str, char *arg[], int maxarg) {
   
         int             ret = 0;          int             ret = 0;
Line 477  long milstr_solveINT(const char *str) { Line 543  long milstr_solveINT(const char *str) {
         return(ret * s);          return(ret * s);
 }  }
   
   char *milstr_list(const char *lststr, UINT pos) {
   
           if (lststr) {
                   while(pos) {
                           pos--;
                           while(*lststr++ != '\0') {
                           }
                   }
           }
           return((char *)lststr);
   }
   

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


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