home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / nlsnps.zip / nlsIncludeDBCS.cpp < prev    next >
C/C++ Source or Header  |  1996-09-03  |  329b  |  23 lines

  1. #include <os2.h>
  2. #include "nls.h"
  3.  
  4. BOOL nlsIncludeDBCS(PUCHAR psz)
  5. {  while (*psz != 0)
  6.    {  if (nlsIsDBCS(*psz)) return TRUE;
  7.       else psz++;
  8.    }
  9.  
  10.    return FALSE;
  11. }
  12.  
  13. int nlsCountChar(PUCHAR psz)
  14. {  int cChar = 0;
  15.  
  16.    while (*psz != 0)
  17.    {  cChar++;
  18.       psz = nlsNext(psz);
  19.    }
  20.  
  21.    return cChar;
  22. }
  23.