Page MenuHomePhabricator (Chris)

No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/util/funcs.h b/util/funcs.h
index 37d13b1b..c7594770 100644
--- a/util/funcs.h
+++ b/util/funcs.h
@@ -1,50 +1,52 @@
#ifndef _funcs_h
#define _funcs_h
#include <stdlib.h>
#include <vector>
#include <string>
+#include "regex.h"
+
namespace Util{
extern const double pi;
// int rnd( int q );
inline int rnd( int q ){
if ( q <= 0 ) return 0;
return (int)( rand() % q );
}
std::vector< std::string > getFiles( const std::string & dataPath, const std::string & find );
double radians(double degree);
std::string getDataPath2();
void setDataPath( const std::string & str );
bool exists( const std::string & file );
/* return a random number + some range between min/max */
int rnd( int q, int min, int max );
int max(int a, int b);
int min(int a, int b);
/* return a number between min/max */
int rnd( int min, int max );
void blend_palette( int * pal, int mp, int sc, int ec );
void rest( int x );
std::string trim(const std::string & str);
std::string upcase(std::string str);
int levenshtein(const std::string & str1, const std::string & str2);
int getPipe(int files[2]);
}
#endif
diff --git a/util/regex.cpp b/util/regex.cpp
new file mode 100644
index 00000000..1748a128
--- /dev/null
+++ b/util/regex.cpp
@@ -0,0 +1,8 @@
+#include <string>
+#include "regex.h"
+
+using namespace std;
+
+bool Util::matchRegex(const string & str, const string & regex){
+ return false;
+}
diff --git a/util/regex.h b/util/regex.h
new file mode 100644
index 00000000..ee01e950
--- /dev/null
+++ b/util/regex.h
@@ -0,0 +1,10 @@
+#ifndef _paintown_regex_h
+#define _paintown_regex_h
+
+#include <string>
+
+namespace Util{
+ bool matchRegex(const std::string & str, const std::string & regex);
+}
+
+#endif

File Metadata

Mime Type
text/x-diff
Expires
Thu, Jun 11, 1:35 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69272
Default Alt Text
(1 KB)

Event Timeline