Leaked source code of windows server 2003
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.

67 lines
1.4 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. rtldowncaseunicodechar.c
  5. Abstract:
  6. This module implements NLS support functions for NT.
  7. Author:
  8. Mark Lucovsky (markl) 16-Apr-1991
  9. Environment:
  10. Kernel or user-mode
  11. Revision History:
  12. 16-Feb-1993 JulieB Added Upcase Rtl Routines.
  13. 08-Mar-1993 JulieB Moved Upcase Macro to ntrtlp.h.
  14. 02-Apr-1993 JulieB Fixed RtlAnsiCharToUnicodeChar to use transl. tbls.
  15. 02-Apr-1993 JulieB Fixed BUFFER_TOO_SMALL check.
  16. 28-May-1993 JulieB Fixed code to properly handle DBCS.
  17. November 30, 2001 JayKrell broken out of nls.c for easier reuse
  18. --*/
  19. WCHAR
  20. RtlDowncaseUnicodeChar(
  21. IN WCHAR SourceCharacter
  22. )
  23. /*++
  24. Routine Description:
  25. This function translates the specified unicode character to its
  26. equivalent downcased unicode chararacter. The purpose for this routine
  27. is to allow for character by character downcase translation. The
  28. translation is done with respect to the current system locale
  29. information.
  30. Arguments:
  31. SourceCharacter - Supplies the unicode character to be downcased.
  32. Return Value:
  33. Returns the downcased unicode equivalent of the specified input character.
  34. --*/
  35. {
  36. RTL_PAGED_CODE();
  37. //
  38. // Note that this needs to reference the translation table !
  39. //
  40. return (WCHAR)NLS_DOWNCASE(SourceCharacter);
  41. }