~canonical-dx-team/nux/nux.fix-702538

« back to all changes in this revision

Viewing changes to Nux/Validator.h

  • Committer: Jay Taoko
  • Date: 2011-01-04 03:57:29 UTC
  • mfrom: (157.1.13 nux-holidays)
  • Revision ID: jay.taoko@canonical.com-20110104035729-0xh3iabo7e7dk371
* Added support to copy a texture from the current render target
* Blur, Color matrix, Exponent shaders
* Gaussian blur
* Bug fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef VALIDATOR_H
24
24
#define VALIDATOR_H
25
25
 
 
26
#if defined (NUX_OS_WINDOWS)
 
27
  #include "pcre/pcre.h"
 
28
#else
 
29
  #include <pcre.h>
 
30
#endif
 
31
 
26
32
namespace nux
27
33
{
28
34
 
41
47
 
42
48
    virtual Validator *Clone()  const = 0; //Virtual Constructor Idiom
43
49
 
44
 
    virtual Validator::State Validate (const TCHAR *str) const = 0;
 
50
    virtual Validator::State Validate (const TCHAR *str) const;
45
51
    virtual void Alternative (const TCHAR *str) {}
46
52
 
 
53
  protected:
 
54
    bool InitRegExp ();
 
55
    NString _regexp_str;
 
56
    pcre *_regexp;
47
57
  };
48
58
}
49
59