Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2 KiB

  1. /*****************************************************************/
  2. /** Microsoft Windows for Workgroups **/
  3. /** Copyright (C) Microsoft Corp., 1991-1992 **/
  4. /*****************************************************************/
  5. /*
  6. strupr.cxx
  7. NLS/DBCS-aware string class: strupr method
  8. This file contains the implementation of the strupr method
  9. for the STRING class. It is separate so that clients of STRING which
  10. do not use this operator need not link to it.
  11. FILE HISTORY:
  12. beng 01/18/91 Separated from original monolithic .cxx
  13. beng 02/07/91 Uses lmui.hxx
  14. */
  15. #include "npcommon.h"
  16. extern "C"
  17. {
  18. #include <netlib.h>
  19. }
  20. #if defined(DEBUG)
  21. static const CHAR szFileName[] = __FILE__;
  22. #define _FILENAME_DEFINED_ONCE szFileName
  23. #endif
  24. #include <npassert.h>
  25. #include <npstring.h>
  26. /*******************************************************************
  27. NAME: NLS_STR::strupr
  28. SYNOPSIS: Convert *this lower case letters to upper case
  29. ENTRY:
  30. EXIT:
  31. NOTES:
  32. HISTORY:
  33. johnl 11/26/90 Written
  34. beng 07/23/91 Allow on erroneous string
  35. ********************************************************************/
  36. NLS_STR& NLS_STR::strupr()
  37. {
  38. if (!QueryError())
  39. ::struprf( _pchData );
  40. return *this;
  41. }