* gets the table corresponding to the char passed */
| 174 | * gets the table corresponding to the char passed |
| 175 | */ |
| 176 | static Table GetTable(char t) |
| 177 | { |
| 178 | switch (t) { |
| 179 | case 'L': return Table::LOWER; |
| 180 | case 'P': return Table::PUNCT; |
| 181 | case 'M': return Table::MIXED; |
| 182 | case 'D': return Table::DIGIT; |
| 183 | case 'B': return Table::BINARY; |
| 184 | case 'U': |
| 185 | default: return Table::UPPER; |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | /** |
| 190 | * Gets the character (or string) corresponding to the passed code in the given table |