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