41 lines
674 B
C
41 lines
674 B
C
#pragma once
|
|
#ifndef _SVMUTIL_H_
|
|
#define _SVMUTIL_H_
|
|
/*
|
|
|
|
SVMUTIL.H
|
|
(c) copyright 1998 Microsoft Corp
|
|
|
|
Declarations for shared utility functions
|
|
|
|
Robert Rounthwaite (RobertRo@microsoft.com)
|
|
|
|
*/
|
|
|
|
|
|
inline bool FTimeEmpty(FILETIME &ft)
|
|
{
|
|
return ((ft.dwLowDateTime == 0) && (ft.dwHighDateTime == 0));
|
|
}
|
|
|
|
inline bool FTimeEmpty(CTime &t)
|
|
{
|
|
return (t.GetYear()<=1970);
|
|
}
|
|
|
|
|
|
enum FeatureLocation
|
|
{
|
|
locNil = 0,
|
|
locBody = 1,
|
|
locSubj = 2,
|
|
locFrom = 3,
|
|
locTo = 4,
|
|
locSpecial = 5
|
|
};
|
|
|
|
bool SpecialFeatureUpperCaseWords(char *pszText);
|
|
bool SpecialFeatureNonAlpha(char *pszText);
|
|
bool FWordPresent(char *szText, char *szWord);
|
|
|
|
#endif |