Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -199,6 +199,18 @@ |
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
| 203 | + * Gets the regexp case modifier to use, i.e. i or nothing, to be used if |
| 204 | + * one is using MagicWord::getBaseRegex(), otherwise it'll be included in |
| 205 | + * the complete expression |
| 206 | + */ |
| 207 | + function getRegexCase() { |
| 208 | + if ( $this->mRegex === '' ) |
| 209 | + $this->initRegex(); |
| 210 | + |
| 211 | + return $this->mCaseSensitive ? '' : 'i'; |
| 212 | + } |
| 213 | + |
| 214 | + /** |
203 | 215 | * Gets a regex matching the word, if it is at the string start |
204 | 216 | */ |
205 | 217 | function getRegexStart() { |