~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_wcomp.cc

  • Committer: Monty Taylor
  • Date: 2008-11-16 23:47:43 UTC
  • mto: (584.1.10 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116234743-c38gmv0pa2kdefaj
Broke out cached_item.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Funktions for comparing with wild-cards */
17
17
 
18
 
#include "config.h"
19
 
 
20
 
#include "drizzled/internal/my_sys.h"
21
 
 
22
 
namespace drizzled
23
 
{
24
 
namespace internal
25
 
{
 
18
#include "mysys_priv.h"
26
19
 
27
20
        /* Test if a string is "comparable" to a wild-card string */
28
21
        /* returns 0 if the strings are "comparable" */
29
22
 
30
 
char wild_many='%';
31
 
char wild_one='_';
32
 
char wild_prefix= '\\';
 
23
char wild_many='*';
 
24
char wild_one='?';
 
25
char wild_prefix=0; /* QQ this can potentially cause a SIGSEGV */
33
26
 
34
27
int wild_compare(register const char *str, register const char *wildstr,
35
28
                 bool str_is_pattern)
93
86
  }
94
87
  return (*str != 0);
95
88
} /* wild_compare */
96
 
 
97
 
} /* namespace internal */
98
 
} /* namespace drizzled */