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.

66 lines
2.7 KiB

  1. /* copied from ..\htmed\lexer.cpp */
  2. // Copyright (c)1997-1999 Microsoft Corporation, All Rights Reserved
  3. /*++
  4. Copyright (c) 1995 Microsoft Corporation
  5. File: lexer.h
  6. Abstract:
  7. Nitty gritty lexer stuff
  8. Contents:
  9. History:
  10. 2/14/97 cgomes: Created
  11. --*/
  12. #if !defined __INC_LEXER_H__
  13. #define __INC_LEXER_H__
  14. #include "token.h"
  15. extern CTableSet* g_ptabASP;
  16. extern PSUBLANG g_psublangASP;
  17. extern PTABLESET g_arpTables[CV_MAX+1];
  18. typedef enum tag_COMMENTTYPE
  19. {
  20. CT_NORMAL = 0,
  21. CT_METADATA = -1,
  22. CT_IECOMMENT = 1
  23. } COMMENTTYPE;
  24. HINT GetHint (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  25. HINT GetTextHint (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  26. UINT GetToken (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  27. UINT GetTokenLength (LPCTSTR pchLine, UINT cbLen, UINT cbCur);
  28. UINT FindEndEntity (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  29. COMMENTTYPE IfHackComment (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  30. UINT FindEntityRef (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  31. UINT FindEndComment (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  32. UINT FindServerScript(LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  33. UINT FindValue (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  34. UINT FindEndString (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  35. UINT FindNextToken (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  36. UINT FindTagOpen (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  37. UINT FindEndTag (LPCTSTR pchLine, UINT cbLen, UINT cbCur, DWORD * plxs, TXTB & token);
  38. UINT FindText (LPCTSTR pchLine, UINT cbLen, UINT cbCur, TXTB & token);
  39. BOOL IsUnknownID (LPCTSTR pchLine, UINT cbLen, UINT cbCur, TXTB & token);
  40. BOOL IsNumber (LPCTSTR pchLine, UINT cbLen, UINT cbCur, TXTB & token);
  41. BOOL IsElementName (LPCTSTR pchLine, UINT cbCur, int cbTokLen, TXTB & token);
  42. BOOL IsAttributeName (LPCTSTR pchLine, UINT cbCur, int cbTokLen, TXTB & token);
  43. BOOL IsIdentifier(int iTokenLength, TXTB & token);
  44. int IndexFromElementName(LPCTSTR pszName);
  45. CTableSet * MakeTableSet(CTableSet ** rgpts, RWATT_T att, UINT nIdName);
  46. void SetLanguage(TCHAR * /*const CString & */strDefault, PSUBLANG rgSublang,
  47. PTABLESET pTab, UINT & index, UINT nIdTemplate, CLSID clsid);
  48. CTableSet * FindTable(CTableSet ** rgpts, /*const CString & */TCHAR *strName);
  49. CTableSet * FindTable(CTableSet ** rgpts, CTableSet * pts);
  50. #endif /* __INC_LEXER_H__ */