00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 */ 00004 00005 #ifndef __STR_PARSING__H_ 00006 #define __STR_PARSING__H_ 00007 00008 inline BOOL fsStrIsDivider (char c) 00009 { 00010 if (c == ' ' || c == '\n' || c == '\r' || c == '\t') 00011 return TRUE; 00012 00013 return FALSE; 00014 } 00015 00016 inline LPCSTR fsStrSkipDividers (LPCSTR psz) 00017 { 00018 while (fsStrIsDivider (*psz)) 00019 psz ++; 00020 00021 return psz; 00022 } 00023 00024 inline const char* fsStrSkipSpaces (const char* psz) 00025 { 00026 while (*psz == ' ') 00027 psz ++; 00028 00029 return psz; 00030 } 00031 00032 extern LPCSTR fsStrStrNoCase(LPCSTR pszIn, LPCSTR pszWhat); 00033 00034 extern LPCSTR fsStrGetStrUpToChar (LPCSTR pszFrom, LPCSTR pszCharTo, LPSTR* ppszResult); 00035 00036 #endif
1.5.6