~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/charset.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 09:51:02 UTC
  • mto: This revision was merged to the branch mainline in revision 2447.
  • Revision ID: olafvdspek@gmail.com-20111024095102-jj62tzw3ro28ai9s
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
  /* Fill state_map with states to get a faster parser */
99
99
  for (int i= 0; i < 256; i++)
100
100
  {
101
 
    if (my_isalpha(cs,i))
 
101
    if (cs->isalpha(i))
102
102
      state_map[i]= MY_LEX_IDENT;
103
 
    else if (my_isdigit(cs,i))
 
103
    else if (cs->isdigit(i))
104
104
      state_map[i]= MY_LEX_NUMBER_IDENT;
105
 
    else if (my_mbcharlen(cs, i)>1)
 
105
    else if (my_mbcharlen(cs, i) > 1)
106
106
      state_map[i]= MY_LEX_IDENT;
107
 
    else if (my_isspace(cs,i))
 
107
    else if (cs->isspace(i))
108
108
      state_map[i]= MY_LEX_SKIP;
109
109
    else
110
110
      state_map[i]= MY_LEX_CHAR;