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.

58 lines
1.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. bltfunc.hxx
  7. header file for all the stand alone functions in the BLT package.
  8. FILE HISTORY:
  9. terryk 8-Apr-1991 creation
  10. terryk 16-Apr-1991 code review changed.
  11. beng 14-May-1991 Made dependent on blt.hxx
  12. */
  13. #ifndef _BLT_HXX_
  14. #error "Don't include this file directly; instead, include it through blt.hxx"
  15. #endif // _BLT_HXX_
  16. #ifndef _BLTFUNC_HXX_
  17. #define _BLTFUNC_HXX_
  18. // forward ref
  19. //
  20. DLL_CLASS NLS_STR;
  21. APIERR BLTDoubleChar( NLS_STR * pnlsStr, TCHAR chSpecChar );
  22. /**********************************************************************
  23. NAME: EscapeSpecialChar
  24. SYNOPSIS: call BLT double character to double the special character
  25. within the string
  26. ENTRY: NLS_STR *pnlsStr - the orginial string
  27. EXIT: it will modified the given string and return either
  28. NERR_Success or API_ERROR
  29. HISTORY:
  30. terryk 8-Apr-1991 creation
  31. terryk 16-Apr-1991 change it to inline
  32. beng 04-Oct-1991 Win32 conversion
  33. **********************************************************************/
  34. #define SPECIAL_CHARACTER TCH('&')
  35. inline APIERR EscapeSpecialChar( NLS_STR *pnlsStr )
  36. {
  37. return( BLTDoubleChar( pnlsStr, SPECIAL_CHARACTER ));
  38. }
  39. #endif // _BLTFUNC_HXX_ - end of file