AndroMeta  2.0.0
AndroMeta/include/AndroMeta/MRegex.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2009-2012 AndroMeta LLC. All rights reserved.
00003  *
00004  * AndroMeta LLC retains all intellectual property and proprietary 
00005  * rights to this software and related documentation and any modifications 
00006  * thereto.  Any use, reproduction, disclosure, or distribution of this 
00007  * software and related documentation without an express license agreement 
00008  * from AndroMeta LLC is strictly prohibited.
00009  * 
00010  */
00011 
00018 #ifndef ANDROMETA_M_REGEX_H
00019 #define ANDROMETA_M_REGEX_H
00020 
00021 #include <AndroMeta/MVar.h>
00022 
00023 namespace Meta{
00024   
00029   class MRegex{
00030   public:
00031     
00035     static const uint32_t IgnoreCase = 0x00000001;
00036     static const uint32_t DotExcludesNewline = 0x00000002;
00037     
00055     static bool basicMatch(const mstr& pattern,
00056                            const char* text,
00057                            mvec& vmatch,
00058                            uint32_t flags=0);
00059 
00063     static bool basicMatch(const mstr& pattern,
00064                            const char* text,
00065                            uint32_t flags=0);
00066   };
00067   
00068 } // end namespace Meta
00069 
00070 #endif // ANDROMETA_M_REGEX_H