ultimatepp/uppdev/MySupport/utils.h
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

19 lines
609 B
C

#ifndef _src_support_utils_h_
#define _src_support_utils_h_
// functions
String pathToString(const char *p, bool last_sep = true);
int StringSearch(const String &string, const String& key);
int CountRecurrence(const String &s, const String &k);
String RemoveQuote(const String &str);
bool IsQuoted(const String &s);
bool isBitSet(int _byte, int _bitno);
void bitSet(int *ptr, int _bitno, bool b=true);
String GetVolumeSn(const String &vol, int len);
unsigned int GetLockNumber(const String& pcID);
String MyKeyReplace(const String& raw, const String& key, const String& value);
#endif